option to remove too short reads

184 views
Skip to first unread message

Zhuofei Xu

unread,
Sep 24, 2015, 5:39:25 AM9/24/15
to kneaddata users
Hi,

firstly many thanks for providing the nice tool for the sequencing data from microbial community!

I have a question if any option in kneaddata allows to remove all too short reads. I thought -a "SLIDINGWINDOW:4:15 MINLEN:75" can work but failed.

u0097639@GBW-P-SCI01:/mnt/nfs/data/zhuofei/test/metaphlan2/input/mouse$ kneaddata --input test.fq --threads 16 -a "SLIDINGWINDOW:4:15 MINLEN:75" -db /mnt/nfs/data/database/mouse/genome/ucsc/bowtie2/mm10 -o test
2015-09-24 11:28:33,223 INFO: Initial number of reads: test.fq: 25000
2015-09-24 11:28:33,224 INFO: Trimming...
2015-09-24 11:28:33,320 CRITICAL: Trimmomatic exited with exit status 1
2015-09-24 11:28:33,321 CRITICAL: Trimmomatic stderr:
TrimmomaticSE: Started with arguments: -threads 1 -phred33 test.fq /mnt/nfs/data/zhuofei/test/metaphlan2/input/mouse/test/test_kneaddata.trimmed.fastq SLIDINGWINDOW:4:15 MINLEN:75
Exception in thread "main" java.lang.NumberFormatException: For input string: "15 MINLEN"
        at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1250)
        at java.lang.Float.parseFloat(Float.java:452)
        at org.usadellab.trimmomatic.trim.SlidingWindowTrimmer.<init>(SlidingWindowTrimmer.java:15)
        at org.usadellab.trimmomatic.trim.TrimmerFactory.makeTrimmer(TrimmerFactory.java:42)
        at org.usadellab.trimmomatic.TrimmomaticSE.run(TrimmomaticSE.java:282)
        at org.usadellab.trimmomatic.Trimmomatic.main(Trimmomatic.java:40)


I also try the following option --trimlen 75
kneaddata --input test.fq --threads 16 --trimlen 75 -a "SLIDINGWINDOW:4:15" -db /mnt/nfs/data/database/mouse/genome/ucsc/bowtie2/mm10 -o test

The program run well and the output files are available. However, I can see some reads less than 75 nt are still there.

I'm wondering if it has an option to remove too short reads in the current version kneaddata v0.4.5.

Thanks in advance!

Zhuofei


Andy Shi

unread,
Sep 25, 2015, 2:53:50 PM9/25/15
to kneaddata users
Hi Zhuofei,

Can you check the user manual? It's linked on the KneadData home page and is available here:


Check the "Specifying Additional Arguments" section. 

You need to do -a "SLIDINGWINDOW:4:20" -a "MINLEN:75" for this to work. 

The --trimlen argument is depreciated and doesn't work anymore. I will remove it in the next version. 

Zhuofei Xu

unread,
Sep 28, 2015, 10:21:44 AM9/28/15
to Andy Shi, kneaddata users
Thank you! It works

--
You received this message because you are subscribed to the Google Groups "kneaddata users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kneaddata-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kneaddata-users/bed9e3b6-05ee-4b9d-abe1-6b9f05e86450%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Reply all
Reply to author
Forward
0 new messages