How to create a Fasta file using info from a Excel file
1
0
Entering edit mode
4.2 years ago
2822462298 ▴ 120

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 • 12k views
ADD COMMENT
0
Entering edit mode

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

ADD REPLY
4
Entering edit mode
4.2 years ago
Mensur Dlakic ★ 27k

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

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

Login before adding your answer.

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