how to use python to only read sequences from fasta files
0
0
Entering edit mode
3.6 years ago
szp770 ▴ 10

Hi, I have a file like this: """

>chr1:875558-875877
ATGTAAAAATCCTCCTTTTT
>chr1:935274-935972
TGTCTGGGGTCCGGCTGGCGCT

""" I want to extract the seqences only but not the line with ">", how to do this?

sequencing python genome fasta • 449 views
ADD COMMENT
0
Entering edit mode

refer to SeqIO and SeqIO.parse from biopython.

ADD REPLY

Login before adding your answer.

Traffic: 1713 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6