randomreads.sh simulated reads dont map to genome
0
0
Entering edit mode
5.8 years ago

I have simulated "error-free" reads from the transcriptome using randomreads.sh from BBMap suit, but when I map them back to the genome using STAR I get just 88% of unique mapping, and around 11% of unmapped reads.

The command for simulation is

randomreads.sh \
ref=cglab_transcriptome.fa \
out1=reads1.fastq \
build=1 \
length=100 \
reads=500000 \
replacenoref=t \
simplenames=t \
seed=-1 \
paired=f \
metagenome=f \
addpairnum=t \
snprate=0 \
midq=35 \
maxq=39 \
minq=30 \
maxsnps=0 \
maxinss=0 \
maxdels=0 \
maxsubs=0 \
maxns=0

So I assume that it should produce ideal reads without snps/snvs. However, I see that its not the case when I align the non mapped read against the corresponding transcript.

Any suggestions what's going on? Do I miss any parameter of randomreads.sh ?

bbmap • 1.3k views
ADD COMMENT
0
Entering edit mode

You're simulating based on the transcriptome and aligning it back to the genome, right? Maybe the two references don't share a 100% overlap?

ADD REPLY
0
Entering edit mode

Good point, but I get the transcriptome from the genome using gffread.

ADD REPLY
0
Entering edit mode

All aligners have some fuzziness built into them. They all depend on an initial match that gets extended out.

Have you tried to use bbmap.sh to align the reads? Some of them could also be multi-mapping and depending on how many STAR reports by default some alignments may get left out.

ADD REPLY
0
Entering edit mode

Re multimappings, so I wouldn't have been surprised to see mulitmappers, but they constitute to just <1%. 10% are not mapped because of short alignments (in STAR terminology). And I don't have experience with BBmap to be honest. Is it comparable with STAR in sense of speed and accuracy?

ADD REPLY
0
Entering edit mode

Proof is in the pudding. Try it out yourself :-)

ADD REPLY
0
Entering edit mode

indeed, but old friends and old wine are the best:)

ADD REPLY
0
Entering edit mode

Try bbmap.sh out. You would not regret it.

ADD REPLY

Login before adding your answer.

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