Hi;
I have a file that looks like this:
>title 1
AAATTTGGGCCCATA...
TTAACAAGTTAAAT…
>title 2
AAATTTAAACCC…
ATATATATA…
…
I wrote the following to count the As, Cs, Gs anTs for each title I wrote the
following
import sys
file = open('file.fna')
data=file.readlines()
for line in data:
li
Please help. I have been search the internet to understand how to write a
simple program/script with python, and I did not do anything.
I have a file that look like this
>ID 1
agtcgtacgt…
>ID 2
acccttcc
.
.
.
in other words, it contains several IDs each one has a sequence of 'acgt'
le