I have three fasta files and basically all i want is to get is the consensus or union of three fasta files. I mean, i want to pull out all the sequences that are common among three files and put them in a separate fasta file. The three fasta files were generated differently and have different headers but the sequences are identical among three files. Is there a tool or script that does this?
Sorry if i didn't explained my question well. Here is what i wanted...
I have three fasta files
seq1 ATGATG seq2 GATAGATA seq3 TGGTGG
m1 GATAGATA m2 TGGTGG m3 AGGAGG
seq1 gene1 ATGATG seq3 gene3 TGGTGG seq4 gene4 AGTGTG
And what i wanted is basically a final fasta file containing the below
As you can see this sequence is represented in all fasta files but the header i got is from fasa1
I am currently using a lengthy process to achieve this.
First blast fasta1 to fasta2 and take all the hits and use those hits to blasta fasta3.
Thought it should work it is lengthy and i though if somebody has done something like this before i can use their script/tools