Hello
I am in need of some help again.
I have a set of contigs (in a multifasta file), and I need to align them against several references. So I need to obtain a MSA where one of the species/sequences is the contig sequences and the rest are the references (genomes). I tried MUGSY, but for some reason is not aligning part of the sequences. MUMmer has been suggested, any ideas? , other software that can be useful?
Thanks in advance.
3 answers
I often use 'bwa mem' to align a set of contigs to a reference genome. 'bwa' is able to read its input either from FASTQ or from FASTA files. Thus you can simply feed a set of contigs into 'bwa' instead of a set of sequencing reads:
bwa mem reference.fasta contigs.fasta > output.samIf your contigs are spread over several files, you can pipe them into 'bwa' (the trailing '-' causes 'bwa' to read from stdin):
cat contig*.fasta | bwa mem reference.fasta - > output.samNote, that 'bwa mem' does a local alignment, it only aligns the best matching parts of your contigs while the remainder is clipped off. Technically, it is also possible to put several reference genomes into 'reference.fasta', thus aligning the contigs to several reference genomes in one run. But since it is a local alignment, the result will most likely be very confusing.
Hi again. I have used QUAST to analyze my contigs against a reference, and one of the results is an image (svg) of the alignment of my contigs and the reference. Does anyone knows if I can retrieve such alignment in a fasta format? Thanks a lot.
Thanks, I've been trying your suggestions, with no success.
Does anyone knows if MITObim can be used with contigs? (align contigs to a reference genome), or only reads in fastq can be used?
Thanks
Log in to answer this question.
Maybe Mauve?