How to create a Fasta file using info from a Excel file
1
0
Entering edit mode
4.8 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 • 14k 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.8 years ago
Mensur Dlakic ★ 28k

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: 2348 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