Repository 'bctools_extract_barcodes'
hg clone https://toolshed.g2.bx.psu.edu/repos/iuc/bctools_extract_barcodes

Changeset 0:ce2477cd3d95 (2017-11-14)
Next changeset 1:c30fc94e6611 (2018-04-18)
Commit message:
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit ae3b9baaf7040ed8b165d17466b8b2fe016d3d48
added:
extract_bcs.xml
macros.xml
test-data/converted_bcs.fastq
test-data/extracted_bcs.fastq
test-data/merged_pcr_dupes.bed
test-data/merged_pcr_dupes_clnts.bed
test-data/merged_pcr_dupes_spurious.bed
test-data/merged_pcr_dupes_spurious_filtered_thresh05.bed
test-data/pcr_dupes_randomdict.fastq
test-data/pcr_dupes_sorted_2.bed
test-data/reads.fastq
test-data/readswithtail.fastq
test-data/readswithtailremoved.fastq
test-data/result_original_head.fastq
test-data/twomates.sam
test-data/tworeads_aln_ends.bed
b
diff -r 000000000000 -r ce2477cd3d95 extract_bcs.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/extract_bcs.xml Tue Nov 14 05:53:20 2017 -0500
[
@@ -0,0 +1,48 @@
+<tool id="bctools_extract_barcodes" name="Extract barcodes" version="@VERSION@">
+    <description>according to pattern</description>
+    <macros>
+        <import>macros.xml</import>
+    </macros>
+    <expand macro="requirements"/>
+    <command detect_errors="exit_code"><![CDATA[
+        extract_bcs.py
+        '$reads'
+        #if $barcode_pattern and $barcode_pattern is not None:
+            '$barcode_pattern'
+        #end if
+        --bcs '$extracted_barcodes'
+        > '$reads_cleaned'
+    ]]></command>
+    <inputs>
+        <param name="reads" type="data" format="fastq" label="Barcoded sequences" />
+        <param name="barcode_pattern" type="text" label="Pattern for extracting barcode nucleotides" help="Starting at 5'-end. X positions will be moved to a separate file, N positions will be kept.">
+            <sanitizer invalid_char="N">
+                <valid initial="none">
+                    <add value="X"/>
+                    <add value="N"/>
+                </valid>
+            </sanitizer>
+        </param>
+    </inputs>
+    <outputs>
+        <data name="reads_cleaned" format="fastq"/>
+        <data name="extracted_barcodes" format="fastq"/>
+    </outputs>
+    <tests>
+        <test>
+            <param name="reads" value="reads.fastq"/>
+            <param name="barcode_pattern" value="XXXNNXXX"/>
+            <output name="reads_cleaned" file="result_original_head.fastq"/>
+            <output name="extracted_barcodes" file="extracted_bcs.fastq"/>
+        </test>
+    </tests>
+    <help><![CDATA[
+
+bctools - Extract barcodes according to pattern
+===============================================
+
+Exract barcodes from a FASTQ file according to a user-specified pattern and write them to a separate FASTQ file.
+
+    ]]></help>
+    <expand macro="citations"/>
+</tool>
b
diff -r 000000000000 -r ce2477cd3d95 macros.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/macros.xml Tue Nov 14 05:53:20 2017 -0500
b
@@ -0,0 +1,13 @@
+<macros>
+    <xml name="requirements">
+        <requirements>
+            <requirement type="package" version="@VERSION@">bctools</requirement>
+        </requirements>
+    </xml>
+    <token name="@VERSION@">0.2.1</token>
+    <xml name="citations">
+        <citations>
+            <citation type="doi">10.1016/j.molcel.2013.07.001</citation>
+        </citations>
+    </xml>
+</macros>
b
diff -r 000000000000 -r ce2477cd3d95 test-data/converted_bcs.fastq
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/converted_bcs.fastq Tue Nov 14 05:53:20 2017 -0500
b
@@ -0,0 +1,400 @@
+@UID0
+NYYRRY
++
+#0<FFF
+@UID1
+RRYRYR
++
+BBBFFF
+@UID2
+RYYRRY
++
+B<BF<B
+@UID3
+YRYRYR
++
+BBBFFF
+@UID4
+NRRRRY
++
+#0<FFF
+@UID5
+RRRRRY
++
+BBBFFF
+@UID6
+YRRRYR
++
+BBBFFF
+@UID7
+NYYRRY
++
+#0<FFF
+@UID8
+RYRRRY
++
+BBBFFF
+@UID9
+RRRRRY
++
+BBBFFF
+@UID10
+NRRRRY
++
+#0<FFF
+@UID11
+NYRRYR
++
+#0<FFF
+@UID12
+NRYRRY
++
+#0<FFF
+@UID13
+NRRRRY
++
+#0<FFF
+@UID14
+YYRRYR
++
+BBBFFF
+@UID15
+YYRRRY
++
+BBBFFF
+@UID16
+YYYRYR
++
+BBBFFF
+@UID17
+YRRRYR
++
+BBBFFF
+@UID18
+RYYRRY
++
+BBBFFF
+@UID19
+RYYYYY
++
+BBBFFF
+@UID20
+RYRRYR
++
+BBBFFF
+@UID21
+RYRRYR
++
+BBBFFF
+@UID22
+YYRRYR
++
+BBBFFF
+@UID23
+YYYRYR
++
+BBBFFF
+@UID24
+YRRRYR
++
+BBBFFF
+@UID25
+RRYYRR
++
+BBBFFF
+@UID26
+YYRRRY
++
+BBBFFB
+@UID27
+RYYRRY
++
+BBBFFF
+@UID28
+RYYRYR
++
+BBBFFF
+@UID29
+NYYRYR
++
+#0<FFF
+@UID30
+NYRRYR
++
+#0<FFF
+@UID31
+YRYRRY
++
+BBBFFF
+@UID32
+YRYRRY
++
+BBBFFF
+@UID33
+RYYRRY
++
+BBBFFF
+@UID34
+RRRRYR
++
+BBBFFF
+@UID35
+NYYRRY
++
+#0<FFF
+@UID36
+YYRRYR
++
+BBBFFF
+@UID37
+RRRRRY
++
+BBBFFF
+@UID38
+RRRRRY
++
+BBBFFF
+@UID39
+YYRRRY
++
+BBBFFF
+@UID40
+YYRRRY
++
+BBBFFF
+@UID41
+RYYRYR
++
+BBBFFF
+@UID42
+YRYRYR
++
+BBBFFF
+@UID43
+RRRRYR
++
+BBBFFF
+@UID44
+RYRRYR
++
+BBBFFF
+@UID45
+NYYRRY
++
+#0<FBF
+@UID46
+YYYRYR
++
+BBBFFF
+@UID47
+RRRRRY
++
+BBBFFF
+@UID48
+RYRRRY
++
+BBBFFF
+@UID49
+RYRRYR
++
+BBBFFF
+@UID50
+RYYRRY
++
+BBBFFF
+@UID51
+YRYYRR
++
+BBBFFF
+@UID52
+RYRRRY
++
+BBBFFF
+@UID53
+RRRRRY
++
+BBBF<F
+@UID54
+YYRRRY
++
+BBBFFF
+@UID55
+RYYRRY
++
+BBBFFF
+@UID56
+YYYRRY
++
+BBBFFF
+@UID57
+NYYYRY
++
+#0BFFF
+@UID58
+NRRRRY
++
+#0<FFF
+@UID59
+NYRRRY
++
+#0<FFF
+@UID60
+RRYRRY
++
+BB<FFF
+@UID61
+RRRRYR
++
+BBBFFF
+@UID62
+YRRRRY
++
+BBBFFF
+@UID63
+RRRRRY
++
+BBBFFF
+@UID64
+YRRRYR
++
+BBBFFF
+@UID65
+RRYRYR
++
+BBBFFF
+@UID66
+RRRRRY
++
+BBBFFF
+@UID67
+RRYRYR
++
+BB<FFF
+@UID68
+NYYRRY
++
+#00FFF
+@UID69
+YYRRRY
++
+BBBFFF
+@UID70
+YYYRYR
++
+BBBFFF
+@UID71
+RRRRYR
++
+BBBFFF
+@UID72
+RRRRYR
++
+BBBFFF
+@UID73
+NRYRYR
++
+#0<BFF
+@UID74
+YYYRYY
++
+BBBFFF
+@UID75
+YYRRRY
++
+BBBFFF
+@UID76
+YRRRRY
++
+BBBFFF
+@UID77
+NRYRYR
++
+#0<FFF
+@UID78
+NRRRRY
++
+#0<FFF
+@UID79
+YYYRRY
++
+BBBFFF
+@UID80
+RYYRRY
++
+BBBFFF
+@UID81
+NYYRYR
++
+#0<FFF
+@UID82
+NRRRRY
++
+#0<FFF
+@UID83
+NYRRRY
++
+#0<FFF
+@UID84
+NRRRRY
++
+#0<FFF
+@UID85
+RYRRRY
++
+BBBFFF
+@UID86
+RRRRRY
++
+BBBFFF
+@UID87
+NRYRRY
++
+#0<FFF
+@UID88
+NRRRRY
++
+#0<FFF
+@UID89
+NYRRRY
++
+#0<FFF
+@UID90
+NRYRRY
++
+#0<FFF
+@UID91
+RRRRYR
++
+BBBFFF
+@UID92
+RRRRYR
++
+BBBFFF
+@UID93
+YRYRRY
++
+BBBFFF
+@UID94
+RRYRYR
++
+BBBFFF
+@UID95
+RYRRYR
++
+BBBFFF
+@UID96
+NYRRRY
++
+#0<FFF
+@UID97
+NYYRRY
++
+#0<FFF
+@UID98
+YYRRRY
++
+BBBFFF
+@UID99
+YRYRYR
++
+BBBFFF
b
diff -r 000000000000 -r ce2477cd3d95 test-data/extracted_bcs.fastq
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/extracted_bcs.fastq Tue Nov 14 05:53:20 2017 -0500
b
@@ -0,0 +1,400 @@
+@UID0
+NCTAAT
++
+#0<FFF
+@UID1
+GGTACG
++
+BBBFFF
+@UID2
+GCTAAT
++
+B<BF<B
+@UID3
+CATACG
++
+BBBFFF
+@UID4
+NAAAAT
++
+#0<FFF
+@UID5
+AAGAAT
++
+BBBFFF
+@UID6
+CAAACG
++
+BBBFFF
+@UID7
+NCCGGT
++
+#0<FFF
+@UID8
+ACAAAT
++
+BBBFFF
+@UID9
+AAGAAT
++
+BBBFFF
+@UID10
+NAAAAT
++
+#0<FFF
+@UID11
+NCAACG
++
+#0<FFF
+@UID12
+NGCAAT
++
+#0<FFF
+@UID13
+NAGAAT
++
+#0<FFF
+@UID14
+TCAACG
++
+BBBFFF
+@UID15
+TCGAAT
++
+BBBFFF
+@UID16
+CCCGCG
++
+BBBFFF
+@UID17
+CAAGCG
++
+BBBFFF
+@UID18
+ACCAAT
++
+BBBFFF
+@UID19
+ACTCTT
++
+BBBFFF
+@UID20
+GCAACG
++
+BBBFFF
+@UID21
+ACGACG
++
+BBBFFF
+@UID22
+TCAGCG
++
+BBBFFF
+@UID23
+TTCACG
++
+BBBFFF
+@UID24
+TAAACG
++
+BBBFFF
+@UID25
+GATTGA
++
+BBBFFF
+@UID26
+TCAGGT
++
+BBBFFB
+@UID27
+ACTAAT
++
+BBBFFF
+@UID28
+ACTACG
++
+BBBFFF
+@UID29
+NTTGCG
++
+#0<FFF
+@UID30
+NCAACG
++
+#0<FFF
+@UID31
+CACAAT
++
+BBBFFF
+@UID32
+CACAAT
++
+BBBFFF
+@UID33
+GCCAAT
++
+BBBFFF
+@UID34
+AGAACG
++
+BBBFFF
+@UID35
+NTTAAT
++
+#0<FFF
+@UID36
+CTAGCG
++
+BBBFFF
+@UID37
+GAGAAT
++
+BBBFFF
+@UID38
+AGGAAT
++
+BBBFFF
+@UID39
+CCAAAT
++
+BBBFFF
+@UID40
+CCAAAT
++
+BBBFFF
+@UID41
+ACTGCG
++
+BBBFFF
+@UID42
+TACGCG
++
+BBBFFF
+@UID43
+GGGACG
++
+BBBFFF
+@UID44
+GCAACG
++
+BBBFFF
+@UID45
+NCTAAT
++
+#0<FBF
+@UID46
+CCCGCG
++
+BBBFFF
+@UID47
+AAGAAT
++
+BBBFFF
+@UID48
+ATAAAT
++
+BBBFFF
+@UID49
+ACAGCG
++
+BBBFFF
+@UID50
+ACTGGT
++
+BBBFFF
+@UID51
+CACTGA
++
+BBBFFF
+@UID52
+GCGAAT
++
+BBBFFF
+@UID53
+GAAAAT
++
+BBBF<F
+@UID54
+CCAAAT
++
+BBBFFF
+@UID55
+ACCAAT
++
+BBBFFF
+@UID56
+TCCAAT
++
+BBBFFF
+@UID57
+NCCCAC
++
+#0BFFF
+@UID58
+NAGAAT
++
+#0<FFF
+@UID59
+NTAAAT
++
+#0<FFF
+@UID60
+GACAAT
++
+BB<FFF
+@UID61
+GGGGCG
++
+BBBFFF
+@UID62
+CAAAAT
++
+BBBFFF
+@UID63
+AAAAAT
++
+BBBFFF
+@UID64
+TAGACG
++
+BBBFFF
+@UID65
+AGCACG
++
+BBBFFF
+@UID66
+AGGAAT
++
+BBBFFF
+@UID67
+AACACG
++
+BB<FFF
+@UID68
+NCCAAT
++
+#00FFF
+@UID69
+CTGGGT
++
+BBBFFF
+@UID70
+TCTACG
++
+BBBFFF
+@UID71
+AAAACG
++
+BBBFFF
+@UID72
+GGAATA
++
+BBBFFF
+@UID73
+NACGCG
++
+#0<BFF
+@UID74
+TCTACC
++
+BBBFFF
+@UID75
+CCAAAT
++
+BBBFFF
+@UID76
+TGAAAT
++
+BBBFFF
+@UID77
+NGTACG
++
+#0<FFF
+@UID78
+NAAAAT
++
+#0<FFF
+@UID79
+TTTAAT
++
+BBBFFF
+@UID80
+ACCAAT
++
+BBBFFF
+@UID81
+NCCACG
++
+#0<FFF
+@UID82
+NAGAAT
++
+#0<FFF
+@UID83
+NTAAAT
++
+#0<FFF
+@UID84
+NAAAAT
++
+#0<FFF
+@UID85
+ACAAAT
++
+BBBFFF
+@UID86
+AAGAAT
++
+BBBFFF
+@UID87
+NATAAT
++
+#0<FFF
+@UID88
+NAAAAT
++
+#0<FFF
+@UID89
+NCGAAT
++
+#0<FFF
+@UID90
+NGCAAT
++
+#0<FFF
+@UID91
+AAGGCG
++
+BBBFFF
+@UID92
+AAGACG
++
+BBBFFF
+@UID93
+CATAAT
++
+BBBFFF
+@UID94
+AATACG
++
+BBBFFF
+@UID95
+GCAACG
++
+BBBFFF
+@UID96
+NCAAAT
++
+#0<FFF
+@UID97
+NCCAAT
++
+#0<FFF
+@UID98
+CCAAAT
++
+BBBFFF
+@UID99
+TATGCG
++
+BBBFFF
b
diff -r 000000000000 -r ce2477cd3d95 test-data/merged_pcr_dupes.bed
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/merged_pcr_dupes.bed Tue Nov 14 05:53:20 2017 -0500
b
@@ -0,0 +1,3 @@
+chr1 10 20 readid_11 10 +
+chr1 10 20 readid_0 5 -
+chrX 20 30 readid_10 7 +
b
diff -r 000000000000 -r ce2477cd3d95 test-data/merged_pcr_dupes_clnts.bed
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/merged_pcr_dupes_clnts.bed Tue Nov 14 05:53:20 2017 -0500
b
@@ -0,0 +1,3 @@
+chr1 9 10 readid_11 10 +
+chr1 20 21 readid_0 5 -
+chrX 19 20 readid_10 7 +
b
diff -r 000000000000 -r ce2477cd3d95 test-data/merged_pcr_dupes_spurious.bed
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/merged_pcr_dupes_spurious.bed Tue Nov 14 05:53:20 2017 -0500
b
@@ -0,0 +1,12 @@
+chr1 10 20 AAAAA 1 +
+chr1 10 20 AAAAA 2 +
+chr1 10 20 AAAAA 3 +
+chr1 10 20 AAAAA 4 +
+chr1 10 20 AAAAA 5 +
+chr1 10 20 AAAAA 10 +
+chr1 10 20 AAAAA 100 +
+chr1 10 20 AAAAA 3 -
+chr1 10 20 AAAAA 5 -
+chr1 10 20 AAAAA 4 -
+chr1 10 20 AAAAA 5 -
+chrX 20 30 TTTTT 7 +
b
diff -r 000000000000 -r ce2477cd3d95 test-data/merged_pcr_dupes_spurious_filtered_thresh05.bed
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/merged_pcr_dupes_spurious_filtered_thresh05.bed Tue Nov 14 05:53:20 2017 -0500
b
@@ -0,0 +1,6 @@
+chr1 10 20 AAAAA 5 -
+chr1 10 20 AAAAA 5 -
+chr1 10 20 AAAAA 4 -
+chr1 10 20 AAAAA 3 -
+chr1 10 20 AAAAA 100 +
+chrX 20 30 TTTTT 7 +
b
diff -r 000000000000 -r ce2477cd3d95 test-data/pcr_dupes_randomdict.fastq
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/pcr_dupes_randomdict.fastq Tue Nov 14 05:53:20 2017 -0500
b
@@ -0,0 +1,88 @@
+@readid_0
+AAAAA
++
+BBBBB
+@readid_1
+AAAAA
++
+BBBBB
+@readid_2
+AAAAA
++
+BBBBB
+@readid_3
+TTTTT
++
+BBBBB
+@readid_4
+AAAAA
++
+BBBBB
+@readid_5
+AAAAA
++
+BBBBB
+@readid_6
+AAAAA
++
+BBBBB
+@readid_7
+TTTTT
++
+BBBBB
+@readid_8
+AAAAA
++
+BBBBB
+@readid_9
+AAAAA
++
+BBBBB
+@readid_10
+TTTTT
++
+BBBBB
+@readid_11
+AAAAA
++
+BBBBB
+@readid_12
+TTTTT
++
+BBBBB
+@readid_13
+TTTTT
++
+BBBBB
+@readid_14
+TTTTT
++
+BBBBB
+@readid_15
+AAAAA
++
+BBBBB
+@readid_16
+AAAAA
++
+BBBBB
+@readid_17
+AAAAA
++
+BBBBB
+@readid_18
+AAAAA
++
+BBBBB
+@readid_19
+AAAAA
++
+BBBBB
+@readid_20
+TTTTT
++
+BBBBB
+@readid_21
+AAAAA
++
+BBBBB
b
diff -r 000000000000 -r ce2477cd3d95 test-data/pcr_dupes_sorted_2.bed
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/pcr_dupes_sorted_2.bed Tue Nov 14 05:53:20 2017 -0500
b
@@ -0,0 +1,22 @@
+chr1 10 20 readid_0 0 -
+chr1 10 20 readid_1 0 -
+chr1 10 20 readid_2 0 +
+chr1 10 20 readid_4 0 +
+chr1 10 20 readid_5 0 +
+chr1 10 20 readid_6 0 -
+chr1 10 20 readid_8 0 +
+chr1 10 20 readid_9 0 -
+chr1 10 20 readid_11 0 +
+chr1 10 20 readid_15 0 +
+chr1 10 20 readid_16 0 +
+chr1 10 20 readid_17 0 -
+chr1 10 20 readid_18 0 +
+chr1 10 20 readid_19 0 +
+chr1 10 20 readid_21 0 +
+chrX 20 30 readid_3 0 +
+chrX 20 30 readid_7 0 +
+chrX 20 30 readid_10 0 +
+chrX 20 30 readid_12 0 +
+chrX 20 30 readid_13 0 +
+chrX 20 30 readid_14 0 +
+chrX 20 30 readid_20 0 +
b
diff -r 000000000000 -r ce2477cd3d95 test-data/reads.fastq
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/reads.fastq Tue Nov 14 05:53:20 2017 -0500
b
b"@@ -0,0 +1,400 @@\n+@UID0\n+NCTAGAATGAAAAATGTATGCTTGTGACCAATAAATATAAAAGGTTAAGATCGGAAGAGCACACGTCTG\n++\n+#0<FFFFFFFFFFFFIFIIIIIIIIIIIIIIFIIIIIIFIIIIIIIIIIIIIIIIIIIIIIIIIIIIII\n+@UID1\n+GGTTAACGCCAGTTGGTCCGAGTGTTGTGGGTTATTGTTAACTAAGATCGGAAGAGCACACGTCTGAAC\n++\n+BBBFFFFFFFFFFIIIIIIIFFFFFIIIIIIFIFIIIIIIIIIFFIFIIIIFFIIFFFFFFFFFFFBFB\n+@UID2\n+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CAGATCGGAAGAGCACACGTC\n++\n+BBBFFFFFFFFFFIIFIIIIIIIIIIIIIIIIIIIIIIIIIIIIIFIIFFFFFFFFBFFFBFFBFFFFF\n'
b
diff -r 000000000000 -r ce2477cd3d95 test-data/readswithtail.fastq
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/readswithtail.fastq Tue Nov 14 05:53:20 2017 -0500
b
@@ -0,0 +1,8 @@
+@longenough
+ACTAGAAT
++
+F0<FFFFF
+@tooshort
+GGTTAAC
++
+AAAFFFF
b
diff -r 000000000000 -r ce2477cd3d95 test-data/readswithtailremoved.fastq
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/readswithtailremoved.fastq Tue Nov 14 05:53:20 2017 -0500
b
@@ -0,0 +1,8 @@
+@longenough
+A
++
+F
+@tooshort
+N
++
+B
b
diff -r 000000000000 -r ce2477cd3d95 test-data/result_original_head.fastq
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/result_original_head.fastq Tue Nov 14 05:53:20 2017 -0500
b
b"@@ -0,0 +1,400 @@\n+@UID0\n+AGGAAAAATGTATGCTTGTGACCAATAAATATAAAAGGTTAAGATCGGAAGAGCACACGTCTG\n++\n+FFFFFFFFFIFIIIIIIIIIIIIIIFIIIIIIFIIIIIIIIIIIIIIIIIIIIIIIIIIIIII\n+@UID1\n+TACCAGTTGGTCCGAGTGTTGTGGGTTATTGTTAACTAAGATCGGAAGAGCACACGTCTGAAC\n++\n+FFFFFFFIIIIIIIFFFFFIIIIIIFIFIIIIIIIIIFFIFIIIIFFIIFFFFFFFFFFFBFB\n+@UID2\n+AGCCTTTTCCTTTGCCCTGATCTTGTCGAGATCGGAAGAGCACACGTCTGAACTCCAGTCACT\n++\n+<BFBFBFIFFFBFFFFFFFBBB0BBFFFBB<FB707'BFF0FFB'<B<BF#############\n+@UID3\n+TCTGGTTGGCGTTTGGTGTGTGGCTGTTTCTGCTCATTGATAGATCGGAAGAGCACACGTCTG\n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IIIIIIIIIIIIIIIIIIIFFFFFFFFFFFFFFBFFFFBFFFFFFFF\n+@UID93\n+AGAATTGATAGATCGGAAGAGCACACGTCTTGTAGCAGATCGGAAGAGCACACGTCTGAACTC\n++\n+FFFFFFFIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIFIIIIIIIIIIFFFFFFF\n+@UID94\n+TCCAAAATAGAAGTCCTGATAGCCCAGACAACTGAGATCGGAAGAGCACACGTCTGAACTCCA\n++\n+FFFFFFFFFFFFFBFFIFFFFFFBBFFFFFIBFFBFFFFIFFFBBBFBFBFFBFFF<B<FFFF\n+@UID95\n+TCACTCATCCTCTATGGACATTGGAGTTTTTCATTATGTGCATGGATCAAGATCGGAAGAGCA\n++\n+FFFFFFFIIIIIIIIIIIIIIIIIIIFIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIF\n+@UID96\n+AGCACTGAATCCAGCGATCCGAGTTCTGTCAAGATCGGAAGAGCACACGTCTGAACTCCAGTC\n++\n+FFFFFFFIIIIIIIIIIIIIIFIFFIIIIIIIIIIIIIIIIIIIIIIIIIIIIFFFFFFFFFF\n+@UID97\n+AGCCTTTCACATGTATAAGGTGGCTCCATAGCTTACTGAGATCGGAAGACACACGTCTGAACT\n++\n+FFFFFFFIIIIIIIIIIIIIFIIIIIIIIIIIIIIIIIFFIIIIIIIIIIIIIIIIIIIIIII\n+@UID98\n+AGCCGCGTGGTGGCATGTGCCTGTGGTCCCAGATAGCAGATCGGAAGAGCACACGTCTGAACT\n++\n+FFFFFFFFIIFFIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIFFFFFFFFFFFFF\n+@UID99\n+CGAGAACGCATAAATCTTTCGCCTTTTACTAAAGATTTGTGGCAGATCGGAAGAGCACACGTC\n++\n+FFFFFFFIIFIIIIIIIIIIIIIIIIIIIIIIIIIIIIIFIIFFFFFFFFBFFFBFFBFFFFF\n'
b
diff -r 000000000000 -r ce2477cd3d95 test-data/twomates.sam
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/twomates.sam Tue Nov 14 05:53:20 2017 -0500
b
@@ -0,0 +1,5 @@
+@HD VN:1.0 SO:unsorted
+@SQ SN:chr1 LN:249250621
+@PG ID:bowtie2 PN:bowtie2 VN:2.2.0 CL:"/usr/local/user/bowtie2/bowtie2-2.2.0/bowtie2-align-s --wrapper basic-0 --very-sensitive --end-to-end --no-mixed --no-discordant --fr --omit-sec-seq --minins=0 --maxins=200 --threads 24 --time -x ../genome/hg19/hg19 --passthrough -1 /tmp/10410.inpipe1 -2 /tmp/10410.inpipe2"
+39V34V1:167:HAWHUADXX:1:1101:19513:10724 99 chr1 45244081 40 41M = 45244081 -41 GTCCAGTTCTGCTACCGACAGTAAGTGAAGATAAAGTGTGT FFFIIIFIIIIIIFIIIIIIIFIIIBFFIIIIIIIIFFFFF AS:i:-6 XN:i:0 XM:i:1 XO:i:0 XG:i:0 NM:i:1 MD:Z:15T25 YS:i:-6 YT:Z:CP
+39V34V1:167:HAWHUADXX:1:1101:19513:10724 147 chr1 45244081 40 41M = 45244081 -41 GTCCAGTTCTGCTACCGACAGTAAGTGAAGATAAAGTGTGT IFIIFIIIFIIIIIIIIIIIIIIIIIIIIIIIIFFFFFFFF AS:i:-6 XN:i:0 XM:i:1 XO:i:0 XG:i:0 NM:i:1 MD:Z:15T25 YS:i:-6 YT:Z:CP
b
diff -r 000000000000 -r ce2477cd3d95 test-data/tworeads_aln_ends.bed
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/tworeads_aln_ends.bed Tue Nov 14 05:53:20 2017 -0500
b
@@ -0,0 +1,1 @@
+chr1 45244080 45244121 39V34V1:167:HAWHUADXX:1:1101:19513:10724 2 +