convert csv to fasta format using python
0
0
Entering edit mode
4 weeks ago

i have a tsv file and i want to convert it to fasta please help

Moderator edit note: I have removed the link as it provided a direct link to an archive download and could present a risk.

Example data should be provided as a text snippet

python • 404 views
ADD COMMENT
1
Entering edit mode

Please include a short sample from your input and desired output.

ADD REPLY
0
Entering edit mode
ADD REPLY
0
Entering edit mode

SeqIO.convert doesn't work with TSV's. I would recommend removing the tabs via iteration then joining the lists together in a new fasta file.

Hope this helps.

ADD REPLY
0
Entering edit mode

SeqIO can read and write tab-delimited sequence files and it is my understanding that a TSV file is a tab-delimited file so I'm not sure what the issue would be

ADD REPLY

Login before adding your answer.

Traffic: 925 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