Question: Sensitivity and specificity in trimLRpatterns
gravatar for learoser
9 days ago by
learoser0 wrote:

Hello BioC,

I am running some tests to compare trimLRpatterns vs other trimming tools (Skewer, cutadapt, AdapterRemoval).

I've generated simulated data using ART ( In particular, there's a modified version of the program from the authors of Skewer that allows to simulate the contamination with adapters (

For my simulations, I've created reads of 150 bp for a coverage of 20x, and a fragment size of 200 bp +- 50 bp, to simulate the contamination with adapters in those reads with small fragment size. The quality profiles were taken from actual MiSeq E. coli Fastq files.

Most of the programs achieve a sensitivity/specificity of 99%. trimLRpatterns is showing high specificity (99%) but a very low sensitivity (max. 16%), having problems to remove the adapters globally. I've changed different parameters, but I can't improve the value.

In this repository:, you can find a test script for a portion of the simulated data (also included in the same folder), where I'm varying max.Rmismatch from 1 to 50.

I know exactly the length of the true trimmed reads, the location in the genome is in the bed file of the repository. So, the width can be compared with the output of the program. I'm using the same statistics of the AdapterRemoval paper.

Any advice in relation to this?


biostrings • 62 views
ADD COMMENTlink modified 8 days ago • written 9 days ago by learoser0

Just an improvement to the test script: I have added the trimAdapter function of girafe. It reaches a compromise between sensitivity/specificity of 89%/82%, using default values.

I also corrected a bug in my trimLRpatterns call, dividing by 100 the value I used for max.Rmismatch, to compute an error rate in [0, 1]. The program is showing 91% sensitivity, 71% specificity using default values.

ADD REPLYlink modified 5 days ago • written 8 days ago by learoser0
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 271 users visited in the last hour