Mapping contigs & scaffolds to ref genome?
4
0
Entering edit mode
7.1 years ago
YOUSEUFS ▴ 30

Noob here,

I'm trying to map a file of contigs and scaffolds onto a reference genome but bowtie keeps outputting the same error:

bowtie2 -f -x wmel_genome -U ~/Aa23/ref/assemblies/wMelPopPGYP.finalassembly-alt.fasta

terminate called after throwing an instance of 'std::bad_alloc'

what(): std::bad_alloc

(ERR): bowtie2-align died with signal 6 (ABRT)

I edited my file from a non-fasta so that every contig/scaffold sequence began with ">scaffold/contig-name". There are over 15 separated sequences in the file. Some of the sequences contain "n" character I'm guessing for uncertain/missing nucleotides.

mapping Assembly bowtie2 • 5.0k views
ADD COMMENT
3
Entering edit mode
7.1 years ago
Sej Modha 5.3k

Bowtie2 is a short read mapper and is not suitable for such application, BLAT or MUMMER would be more suitable in such cases.

ADD COMMENT
3
Entering edit mode
7.1 years ago

I find bwa mem is useful for this case and have used it many times. Bowtie2 is not suitable.

I would use samtools, not picard, for the SAM-> bam conversion, as Picard gets messed up by very long MD strings from long contigs

ADD COMMENT
1
Entering edit mode
6.6 years ago
cschu181 ★ 2.8k

You can also try gmap, I find that works quite well.

ADD COMMENT
1
Entering edit mode
6.6 years ago

Minimap2 should also be able to do this job.

ADD COMMENT

Login before adding your answer.

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