combining fasta files
1
5
Entering edit mode
7.7 years ago
br.tania ▴ 50

I have downloaded the assembly fasta files for all chromosomes for an organism from NCBI. Now I want to map my unique data (WGS) to the genome. How to combine the chromosome-wise fasta files to give a fasta file for the whole genome? This needs to be done to run BWA, right?

alignment • 7.9k views
ADD COMMENT
0
Entering edit mode

Thanks a lot. That was useful.

ADD REPLY
0
Entering edit mode

How to combine the chromosome-wise fasta files to give a fasta file for the whole genome? what was the answer to this question?

ADD REPLY
1
Entering edit mode

This question has been asked multiple times. You can simply do cat chr*.fa > genome.fa. (replace chr* with whatever names you have). If the names follow no pattern then do cat file1.fa file2.fa ... file_last.fa > genome.fa.

ADD REPLY
0
Entering edit mode

Which software is recommended for this task?

ADD REPLY
0
Entering edit mode

genomax posted the command you would use in your command line.

ADD REPLY
0
Entering edit mode

I m using Windows 10, where i have to put these commands?

ADD REPLY
0
Entering edit mode

Do you have Ubuntu bash for Windows 10 installed? Otherwise you may be able to do copy file1 file2 > final in a windows command prompt. You can't get much done with plain Windows 10 in terms of NGS data analysis (unless you use one of the commercial software packages).

ADD REPLY
6
Entering edit mode
7.7 years ago

cat *.fa > genome.fa

You'll need to index that with bwa or whatever aligner you plan to use then.

ADD COMMENT
1
Entering edit mode

As far as I remember bwa index -p myindex *.fa would also work.

ADD REPLY

Login before adding your answer.

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