Entering edit mode
7.6 years ago
bandanaschapagain
▴
40
Hi all, I am using Bowtie2 to align my reads to the respective references. I have three reference genomes. For three reference genomes from Bowtie2 I used -f option to give three reference index. I want to concatenate all the three reference genomes and create the index instead of giving three files. I did use cat to concatenate all the files. Is this the right way to concatenate the reference genomes into one? Does this works for bowtie2 alignment?
Thank you
From the Bowtie2 manual:
edit: but be sure there are no duplicated contig / scaffold / chromosome names.
Can you give me the idea about concatenating the fasta files for aligning the reads to the reference genomes?
What about reading the manual? It is long, but it will pay off:
edit: or do you mean concatenating the input files which will be mapped? Tip: search for
-1
and-2
.I read the manual but I am not sure if that I can concatenate the three reference files and then used as one file to build the index.. Can you please provide me information on that?
It is a different question then, it is not "how I do this".
You want to know if it is sensible concatenating multiple reference genomes for mapping with Bowtie2. To answer that, we need to know why you want to use three genomes as reference, how close or distant are these genomes, do you expect to have the three genomes on your samples, etc.
This is a good point. With combined references you risk reads from one sample (species?) Mapping to a different reference. In theory you could use strict mapping, throw out multimappers and only use alignments that correspond to the proper reference. I'm not sure why you'd want to unless the samples are pooled or something. But if this is a way to avoid running several alignments I wouldn't recommend it.
Just inquisitiveness: What is the need to combine multiple references?