Code:
kcompress.sh in=file.fq out=kmers.fa minprob=0 mincount=1 maxcount=1 bbduk.sh in=file.fq out=filtered.fq ref=kmers.fa k=31 mm=f
You are currently viewing the SEQanswers forums as a guest, which limits your access. Click here to register now, and join the discussion
kcompress.sh in=file.fq out=kmers.fa minprob=0 mincount=1 maxcount=1 bbduk.sh in=file.fq out=filtered.fq ref=kmers.fa k=31 mm=f
Usage: dedupe.sh in=<file or stdin> out=<file or stdout> An example of running Dedupe for clustering short reads: dedupe.sh in=x.fq am ac fo c rnc=f mcs=4 mo=100 s=1 pto cc qin=33 csf=stats.txt pattern=cluster_%.fq dot=graph.dot Input may be stdin or a fasta, fastq, or sam file, compressed or uncompressed. Output may be stdout or a file. With no output parameter, data will be written to stdout. If 'out=null', there will be no output, but statistics will still be printed. You can also use 'dedupe <infile> <outfile>' without the 'in=' and 'out='.
[root@g300-149-b0 bbmap]# ./dedupe.sh Um57.sam Um57_nodups.sam Max memory cannot be determined. Attempting to use 3200 MB. If this fails, please add the argument -Xmx29g (adjusted to roughly 85 percent of physical RAM). java -Djava.library.path=/app/bbmap/jni/ -ea -Xmx3200m -Xms3200m -cp /app/bbmap/current/ jgi.Dedupe Um57.sam Um57_nodups.sam Executing jgi.Dedupe [Um57.sam, Um57_nodups.sam] Initial: Memory: free=3182m, used=34m Exception in thread "Thread-3" java.lang.ClassCastException: stream.SamLine cannot be cast to jgi.Dedupe$Unit at jgi.Dedupe$HashThread.processRead(Dedupe.java:3067) at jgi.Dedupe$HashThread.processReadOuter(Dedupe.java:3045) at jgi.Dedupe$HashThread.run(Dedupe.java:2980) Exception in thread "Thread-14" java.lang.ClassCastException: stream.SamLine cannot be cast to jgi.Dedupe$Unit at jgi.Dedupe$HashThread.processRead(Dedupe.java:3067) at jgi.Dedupe$HashThread.processReadOuter(Dedupe.java:3045) at jgi.Dedupe$HashThread.run(Dedupe.java:2980) Exception in thread "Thread-13" java.lang.ClassCastException: stream.SamLine cannot be cast to jgi.Dedupe$Unit at jgi.Dedupe$HashThread.processRead(Dedupe.java:3067) at jgi.Dedupe$HashThread.processReadOuter(Dedupe.java:3045) at jgi.Dedupe$HashThread.run(Dedupe.java:2980) Exception in thread "Thread-11" java.lang.ClassCastException: stream.SamLine cannot be cast to jgi.Dedupe$Unit at jgi.Dedupe$HashThread.processRead(Dedupe.java:3067) at jgi.Dedupe$HashThread.processReadOuter(Dedupe.java:3045) at jgi.Dedupe$HashThread.run(Dedupe.java:2980) Exception in thread "Thread-12" java.lang.ClassCastException: stream.SamLine cannot be cast to jgi.Dedupe$Unit at jgi.Dedupe$HashThread.processRead(Dedupe.java:3067) at jgi.Dedupe$HashThread.processReadOuter(Dedupe.java:3045) at jgi.Dedupe$HashThread.run(Dedupe.java:2980) Exception in thread "Thread-10" java.lang.ClassCastException: stream.SamLine cannot be cast to jgi.Dedupe$Unit at jgi.Dedupe$HashThread.processRead(Dedupe.java:3067) at jgi.Dedupe$HashThread.processReadOuter(Dedupe.java:3045) at jgi.Dedupe$HashThread.run(Dedupe.java:2980) Exception in thread "Thread-9" java.lang.ClassCastException: stream.SamLine cannot be cast to jgi.Dedupe$Unit at jgi.Dedupe$HashThread.processRead(Dedupe.java:3067) at jgi.Dedupe$HashThread.processReadOuter(Dedupe.java:3045) at jgi.Dedupe$HashThread.run(Dedupe.java:2980) Exception in thread "Thread-8" java.lang.ClassCastException: stream.SamLine cannot be cast to jgi.Dedupe$Unit at jgi.Dedupe$HashThread.processRead(Dedupe.java:3067) at jgi.Dedupe$HashThread.processReadOuter(Dedupe.java:3045) at jgi.Dedupe$HashThread.run(Dedupe.java:2980) Exception in thread "Thread-7" java.lang.ClassCastException: stream.SamLine cannot be cast to jgi.Dedupe$Unit at jgi.Dedupe$HashThread.processRead(Dedupe.java:3067) at jgi.Dedupe$HashThread.processReadOuter(Dedupe.java:3045) at jgi.Dedupe$HashThread.run(Dedupe.java:2980) Exception in thread "Thread-5" java.lang.ClassCastException: stream.SamLine cannot be cast to jgi.Dedupe$Unit at jgi.Dedupe$HashThread.processRead(Dedupe.java:3067) at jgi.Dedupe$HashThread.processReadOuter(Dedupe.java:3045) at jgi.Dedupe$HashThread.run(Dedupe.java:2980) Exception in thread "Thread-4" java.lang.ClassCastException: stream.SamLine cannot be cast to jgi.Dedupe$Unit at jgi.Dedupe$HashThread.processRead(Dedupe.java:3067) at jgi.Dedupe$HashThread.processReadOuter(Dedupe.java:3045) at jgi.Dedupe$HashThread.run(Dedupe.java:2980) Exception in thread "Thread-6" java.lang.ClassCastException: stream.SamLine cannot be cast to jgi.Dedupe$Unit at jgi.Dedupe$HashThread.processRead(Dedupe.java:3067) at jgi.Dedupe$HashThread.processReadOuter(Dedupe.java:3045) at jgi.Dedupe$HashThread.run(Dedupe.java:2980) Found 0 duplicates. Finished exact matches. Time: 0.072 seconds. Memory: free=2930m, used=286m Found 0 contained sequences. Finished containment. Time: 0.006 seconds. Memory: free=2712m, used=504m Removed 0 invalid entries. Finished invalid removal. Time: 0.001 seconds. Memory: free=2712m, used=504m Input: 12 reads 3295 bases. Duplicates: 0 reads (0.00%) 0 bases (0.00%) 0 collisions. Containments: 0 reads (0.00%) 0 bases (0.00%) 0 collisions. Result: 0 reads (0.00%) 3295 bases (100.00%) Printed output. Time: 0.003 seconds. Memory: free=2695m, used=521m Time: 0.089 seconds. Reads Processed: 12 0.14k reads/sec Bases Processed: 3295 0.04m bases/sec [root@g300-149-b0 bbmap]
BBMap version 34.94 Retaining first best site only for ambiguous mappings. Executing dna.FastaToChromArrays2 [/data/U.maydis/GCA_000328475.2_Umaydis521_2.0_genomic.fna, 1, writeinthread=false, genscaffoldinfo=true, retain, waitforwriting=false, gz=true, maxlen=536670912, writechroms=false, minscaf=1, midpad=300, startpad=8000, stoppad=8000, nodisk=true] Set genScaffoldInfo=true Set genome to 1 Loaded Reference: 0.005 seconds. Loading index for chunk 1-1, build 1 Indexing threads started for block 0-1 Indexing threads finished for block 0-1 Generated Index: 1.753 seconds. Analyzed Index: 3.196 seconds. Started output stream: 0.018 seconds. Cleared Memory: 0.180 seconds. Processing reads in paired-ended mode. Started read stream. Started 12 mapping threads. Detecting finished threads: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ------------------ Results ------------------ Genome: 1 Key Length: 13 Max Indel: 16000 Minimum Score Ratio: 0.56 Mapping Mode: normal Reads Used: 10712672 (2767819477 bases) Mapping: 2375.634 seconds. Reads/sec: 4509.39 kBases/sec: 1165.09 Pairing data: pct reads num reads pct bases num bases mated pairs: 95.9222% 5137917 95.9216% 2654935852 bad pairs: 0.3883% 20798 0.4112% 11380974 insert size avg: 457.71 Read 1 data: pct reads num reads pct bases num bases mapped: 97.7238% 5234416 97.8595% 1353706554 unambiguous: 96.7062% 5179910 96.8763% 1340106299 ambiguous: 1.0176% 54506 0.9832% 13600255 low-Q discards: 0.0474% 2537 0.0064% 88795 perfect best site: 62.2963% 3336797 61.0063% 843909803 semiperfect site: 62.3484% 3339588 61.0594% 844644584 rescued: 0.0469% 2511 Match Rate: NA NA 97.9361% 1345904929 Error Rate: 36.1452% 1892020 2.0011% 27499816 Sub Rate: 35.0788% 1836199 0.4172% 5733414 Del Rate: 2.4959% 130648 1.4962% 20562060 Ins Rate: 1.7790% 93120 0.0876% 1204342 N Rate: 0.4722% 24718 0.0629% 863869 Read 2 data: pct reads num reads pct bases num bases mapped: 96.5932% 5173855 96.6576% 1338226877 unambiguous: 95.5860% 5119909 95.6852% 1324764021 ambiguous: 1.0071% 53946 0.9724% 13462856 low-Q discards: 0.0478% 2561 0.0067% 92659 perfect best site: 28.1750% 1509145 24.9411% 345310812 semiperfect site: 28.2006% 1510517 24.9662% 345657705 rescued: 0.0547% 2932 Match Rate: NA NA 96.0340% 1307794049 Error Rate: 70.7813% 3662191 3.9015% 53130664 Sub Rate: 70.3060% 3637596 2.0494% 27908811 Del Rate: 2.8907% 149564 1.7313% 23576787 Ins Rate: 2.7860% 144147 0.1208% 1645066 N Rate: 0.5726% 29628 0.0645% 878951 Total time: 2381.122 seconds.
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by SEQadmin2, 07-31-2026, 02:55 AM
|
0 responses
18 views
0 reactions
|
Last Post
by SEQadmin2
07-31-2026, 02:55 AM
|
||
|
Started by SEQadmin2, 07-24-2026, 12:17 PM
|
0 responses
15 views
0 reactions
|
Last Post
by SEQadmin2
07-24-2026, 12:17 PM
|
||
|
Started by SEQadmin2, 07-23-2026, 11:41 AM
|
0 responses
14 views
0 reactions
|
Last Post
by SEQadmin2
07-23-2026, 11:41 AM
|
||
|
Started by SEQadmin2, 07-20-2026, 11:10 AM
|
0 responses
25 views
0 reactions
|
Last Post
by SEQadmin2
07-20-2026, 11:10 AM
|
Leave a comment: