This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to create a Fasta file using info from a Excel file

I have an excel file which looks like this:

Genex AAAAA
Geney TTTTT
Genez GGGGG

How to convert it into a fasta file like:

>Genex
AAAAA
>Geney
TTTTT
>Genez
GGGGG
rna rna-seq fasta

What have you tried so far? Please do not expect ready made answers.

1 answer

Save your Excel file as comma-delimited, say sequences.csv.

awk -F , '{print ">"$1"\n"$2}' sequences.csv > sequences.fas

Log in to answer this question.