Entering edit mode
3.3 years ago
USER
•
0
I am trying to transform Multifasta - with many sequences fasta to a csv table. But I got the following error
is there any solution to convert a fasta file to csv?
What on earth is a multi-folder file? Given that your header is in a custom format, you're going to have to parse it using custom code.
Multifasta - with many sequences fasta. I'm going to edit sorry. Is there any solution?
You're halfway there.
re.id + redescription
should give you the whole header, make sure of that. Once you have it, you can split by|
and then spit each element of that by:
into key value pairs. Then, these key value pairs along withre.seq
will give you the columns for eachre
. Write these attributes separated by,
and you'll have your CSV.Thanks!!!