# HG changeset patch
# User urgi-team
# Date 1447162378 18000
# Node ID 74980f9f1ccc4c1e7e2048e7f41ae179fbc5ff0e
Uploaded
diff -r 000000000000 -r 74980f9f1ccc mapQfilter_wrapper.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mapQfilter_wrapper.xml Tue Nov 10 08:32:58 2015 -0500
@@ -0,0 +1,83 @@
+
+ Filters reads on quality, and remove both members of the pair
+
+ samtools
+ picard
+
+
+ samtools view -b -h -f 0x2 -F 0x100 -o tmpBAM.BAM -q $mapQ $input1
+ &&
+ samtools view tmpBAM.BAM | cut -f 1 | sort | uniq -c | grep ' 1 ' | cut -f8 -d ' ' > min30.list
+ &&
+ java -jar \$JAVA_JAR_PATH/picard.jar FilterSamReads I=tmpBAM.BAM FILTER=excludeReadList RLF=min30.list OUTPUT="${output1}" VALIDATION_STRINGENCY=LENIENT QUIET=true VERBOSITY=ERROR
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1<1EFGGGG//E>GGBFFEG11E@@GG1CCFCFFG@@GG0D@>EGC0FG0;=@G@@0CGGCGGG>GGGF1=G>E1GGGF@GFFC@:C1BB@GFFFE>GFFGGFGCFBCCGBC@1BFEF1FGGGGGE1GGGGGGGB>ABBBA NM:i:7 MD:Z:0G4A36A0T9G1C21A18 AS:i:65 XS:i:80
+HWI-D00381:238:C5V3UANXX:4:1101:12349:79395 97 Contig_22 594669 0 100M = 287814 -306787 ATTAGGGTCCTTAATTTAGCAACCCTACTATAACTAAACCTAAGATAATAGAGATACAGGTAGGATATAGGCGTCTCCTGCTCTCTTATACTACTATATT CCCCCGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG NM:i:3 MD:Z:6A1T47T43 AS:i:86 XS:i:85
+HWI-D00381:238:C5V3UANXX:4:1101:12643:50485 321 Contig_22 628627 0 69H31M = 309172 -319456 ATTAAGTATTTAACTATTTAGTAGAGTAGTA FGGGGGGGGGGGGGGGGGGGGBGGGGDGGGG NM:i:0 MD:Z:31 AS:i:31 XS:i:31 SA:Z:Contig_20,753418,+,73M27S,5,3; XA:Z:Contig_20,-60185,31M69S,0;Contig_20,-657698,31M69S,0;
+
+
+output bam (sam):
+-----------------
+
+HWI-D00381:238:C5V3UANXX:4:1101:10239:22220 99 Contig_20 437303 60 100M = 437511 308 AGTAATCCGGCTTGTCATCGAAGCGGAGGGAACGAGTGTAATTGAGGTAGATGGCGAACTCGTTGGGGAAGCCACGGCAGAGCACCTCGGTGGGCGTCGT BCCCBGGGGGGGGGFGFGGGFGGGGGBEBGGGGGGGFGGGFGGGGGGGGGGEGGGGGDGEGGGBFBGGGGGGGEGGGGGGGGGGGEGGGGCGGGGGGGDC NM:i:0 MD:Z:100 AS:i:100 XS:i:0
+HWI-D00381:238:C5V3UANXX:4:1101:10239:22220 147 Contig_20 437511 60 100M = 437303 -308 CTCCATGTCGTCACGGCGGGATTGTTCTAGTCAAGTAAGCTACTGCACATCATTTGCAATCGGGCTACTTACCGACACCCAGGTGAGTGTTGATACTGGC GCDGGGGFGGGDGAGGGGGGGGEFFGGGGGGGGGGGGGCEGGGGGGGGGGGGDGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGCCCCB NM:i:0 MD:Z:100 AS:i:100 XS:i:0
+
+-----
+
+**reference :**
+Li H., Handsaker B., Wysoker A., Fennell T., Ruan J., Homer N., Marth G., Abecasis G., Durbin R. and 1000 Genome Project Data Processing Subgroup (2009) The Sequence alignment/map (SAM) format and SAMtools. Bioinformatics, 25, 2078-9. [PMID: 19505943]
+samtools: http://www.htslib.org/
+picard tools: http://broadinstitute.github.io/picard/
+
+]]>
+
+
diff -r 000000000000 -r 74980f9f1ccc test-data/inputMapqfilter.bam
Binary file test-data/inputMapqfilter.bam has changed
diff -r 000000000000 -r 74980f9f1ccc test-data/outputMapqfilter.bam
Binary file test-data/outputMapqfilter.bam has changed
diff -r 000000000000 -r 74980f9f1ccc tool_dependencies.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tool_dependencies.xml Tue Nov 10 08:32:58 2015 -0500
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+