making a multi-fasta file out of 9 separate fasta file
2
1
Entering edit mode
7.0 years ago

Hi

I want to do a python task which involves extracting the sequence from a multi-fasta file using a file of IDs for Mycosphaerella graminicola genome. I do not have data(multi-fasta file) for this task. Therefore, I downloaded from ENA using the following link. https://www.ebi.ac.uk/ena/data/search?query=Mycosphaerella+graminicola. Now I have 9 separate fasta files containing Mycosphaerella chr 3,chr 4,chr 5, chr 6, chr 10, chr 12, chr 13, chr 15, chr 19,chr 21 whole genome short gun sequencing.

My question 1)how to make a single multi-fasta file using these separate 9 fasta files. 2) Is the multi-fasta file available on web straightway?

Any Help would be highly appreciated! Thanks

sequence • 7.0k views
ADD COMMENT
0
Entering edit mode

Thanks genomax cpad0112 for your help

ADD REPLY
0
Entering edit mode

Thanks genomax and cpad0112 for your help.

ADD REPLY
9
Entering edit mode
7.0 years ago
h.mon 35k

1) how to make a single multi-fasta file using these separate 9 fasta files.

cat *.fasta > Mgraminicola.fasta

But why don't you use GCA_000219625.1, it seems the assembly is at chromosome level, with 21 chromosomes.

ADD COMMENT
2
Entering edit mode

May be better to do cat chr*.fasta > Mgraminicola.fasta.

ADD REPLY
0
Entering edit mode

Thanks h.mon for your help

ADD REPLY
2
Entering edit mode

If an answer was helpful you should upvote it, if the answer resolved your question you should mark it as accepted. Upvote|Bookmark|Accept

ADD REPLY
1
Entering edit mode
7.0 years ago

May be this also works:

$ awk "1" chr*.fa > out.fa
ADD COMMENT

Login before adding your answer.

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