# HG changeset patch
# User devteam
# Date 1441995412 14400
# Node ID da0203c3461a278ac6572b39b81262087bb391a4
# Parent 3aa48bcbc599131965aae30196eea3ed3ecbd616
planemo upload commit 9c291d7ad7c82e6051fe3e5ddffbe7a5edf6f006
diff -r 3aa48bcbc599 -r da0203c3461a macros.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/macros.xml Fri Sep 11 14:16:52 2015 -0400
@@ -0,0 +1,70 @@
+
+
+
+ samtools
+
+
+
+
+
+
+ @misc{SAM_def,
+ title={Definition of SAM/BAM format},
+ url = {https://samtools.github.io/hts-specs/SAMv1.pdf},}
+
+ 10.1093/bioinformatics/btp352
+ 10.1093/bioinformatics/btr076
+ 10.1093/bioinformatics/btr509
+
+ @misc{Danecek_et_al,
+ Author={Danecek, P., Schiffels, S., Durbin, R.},
+ title={Multiallelic calling model in bcftools (-m)},
+ url = {http://samtools.github.io/bcftools/call-m.pdf},}
+
+
+ @misc{Durbin_VCQC,
+ Author={Durbin, R.},
+ title={Segregation based metric for variant call QC},
+ url = {http://samtools.github.io/bcftools/rd-SegBias.pdf},}
+
+
+ @misc{Li_SamMath,
+ Author={Li, H.},
+ title={Mathematical Notes on SAMtools Algorithms},
+ url = {http://www.broadinstitute.org/gatk/media/docs/Samtools.pdf},}
+
+
+ @misc{SamTools_github,
+ title={SAMTools GitHub page},
+ url = {https://github.com/samtools/samtools},}
+
+
+
+
+ samtools --version | head -n 1 | awk '{ print $2 }'
+
+
+
+
+
+
+
+-----
+
+.. class:: warningmark
+
+**No options available? How to re-detect metadata**
+
+If you see a "No options available" within the "**Select references (chromosomes and contigs) you would like to restrict bam to**" drop down, you need to re-detect metadata for the dataset you are trying to process. To do this follow these steps:
+
+1. Click on the **pencil** icon adjacent to the dataset in the history
+2. A new menu will appear in the center pane of the interface
+3. Click **Datatype** tab
+4. Set **New Type** to **BAM**
+5. Click **Save**
+
+The medatada will be re-detected and you will be able to see the list of reference sequences in the "**Select references (chromosomes and contigs) you would like to restrict bam to**" drop-down.
+
+
+
+
diff -r 3aa48bcbc599 -r da0203c3461a samtools_mpileup.xml
--- a/samtools_mpileup.xml Wed Mar 12 12:53:30 2014 -0400
+++ b/samtools_mpileup.xml Fri Sep 11 14:16:52 2015 -0400
@@ -1,9 +1,13 @@
-
- SNP and indel caller
-
- samtools
-
-
+ call variants
+
+ macros.xml
+
+
+
+
+
+ "$output_mpileup" 2> "$output_log"
- ]]>
-
-
-
+ --output "$output_mpileup" 2> "$output_log"
+ ]]>
+
-
-
-
+
+
+
-
-
+
+
-
+
-
+
-
-
-
-
+
+
+
-
+
-
-
-
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
-
-
+
+
-
-
+
+
-
-
+
+
-
+
@@ -158,7 +185,7 @@
-
+
@@ -175,121 +202,75 @@
-
-
-
-
+
+
+
+
-
+
-
+
-
-
+
+
-
+
-
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-#set pasted_data = ''
-#if str( $advanced_options.advanced_options_selector ) == "advanced":
- #if str( $advanced_options.exclude_read_group.exclude_read_groups ) == "paste":
- #set regex=re.compile("\\s+")
- #set pasted_data = '\t'.join( regex.split( str( $advanced_options.exclude_read_group['read_groups'] ) ) )
- #end if
-#end if
-${pasted_data}
-]]>
-
-
-
-#set pasted_data = ''
-#if str( $advanced_options.advanced_options_selector ) == "advanced":
- #if str( $advanced_options.limit_by_region.limit_by_regions ) == "paste":
- #set regex=re.compile("\\s+")
- #set pasted_data = '\t'.join( regex.split( str( $advanced_options.limit_by_region['region_paste'] ) ) )
- #end if
-#end if
-${pasted_data}
-]]>
-
-
-
+
-
+
+
-
+
-
-
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -298,204 +279,94 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
diff -r 3aa48bcbc599 -r da0203c3461a test-data/phiX.bam
Binary file test-data/phiX.bam has changed
diff -r 3aa48bcbc599 -r da0203c3461a test-data/phiX_1.bam
Binary file test-data/phiX_1.bam has changed
diff -r 3aa48bcbc599 -r da0203c3461a test-data/samtools/mpileup/samtools_mpileup_out_1.log
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/samtools/mpileup/samtools_mpileup_out_1.log Fri Sep 11 14:16:52 2015 -0400
@@ -0,0 +1,2 @@
+[mpileup] 1 samples in 1 input files
+ Set max per-file depth to 8000
diff -r 3aa48bcbc599 -r da0203c3461a test-data/samtools/mpileup/samtools_mpileup_out_1.pileup
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/samtools/mpileup/samtools_mpileup_out_1.pileup Fri Sep 11 14:16:52 2015 -0400
@@ -0,0 +1,43 @@
+phiX174 1411 A 1 ^P. $
+phiX174 1412 G 3 .^D.^F. "$$
+phiX174 1413 C 5 ...^D.^F. """$$
+phiX174 1414 G 6 .....^F. #####$
+phiX174 1415 C 7 ......^F. %%%%%%&
+phiX174 1416 C 8 .......^F. $$$$$$$$
+phiX174 1417 G 9 ........^F. "#######$
+phiX174 1418 T 10 .........^F. """""""""$
+phiX174 1419 G 10 .......... """""'&'%$
+phiX174 1420 G 10 .......... """"""""""
+phiX174 1421 A 10 .......... """"""""""
+phiX174 1422 T 10 .......... """"""""""
+phiX174 1423 G 10 .......... """""""""#
+phiX174 1424 C 10 ..A.AAAAAA %"""""""""
+phiX174 1425 C 10 .......... $$$"""""""
+phiX174 1426 T 10 .......... #####"""""
+phiX174 1427 G 10 .......... ######""""
+phiX174 1428 A 10 .......... """"""""""
+phiX174 1429 C 10 .......... ((((((&(""
+phiX174 1430 C 10 .......... $$$$$$$$$"
+phiX174 1431 G 10 .......... ##########
+phiX174 1432 T 10 .......... """"""""""
+phiX174 1433 A 10 .......... ##########
+phiX174 1434 C 10 .......... ((((((&(%$
+phiX174 1435 C 10 .......... $$$$$$$$$$
+phiX174 1436 G 10 .......... ##########
+phiX174 1437 A 10 .......... """""""""!
+phiX174 1438 G 10 .......... """""####!
+phiX174 1439 G 10 .......... """""""""!
+phiX174 1440 C 10 .......... """""""""!
+phiX174 1441 T 10 .......... """"""""#!
+phiX174 1442 A 10 .......... $$$%%%&&%!
+phiX174 1443 A 10 .-1C.-1C..-1C...... """""""""!
+phiX174 1444 C 10 **.*...... &%"!"""""!
+phiX174 1445 C 10 .......... &%&!%%%&%!
+phiX174 1446 C 10 .......... """!"""""!
+phiX174 1447 T 10 .$..$....... #"#!"""""!
+phiX174 1448 A 8 .$..$..... #!#%%$$!
+phiX174 1449 A 6 .$.$.... !""""!
+phiX174 1450 T 4 .$... """!
+phiX174 1451 G 3 .$.. #"!
+phiX174 1452 A 2 .$. "!
+phiX174 1453 G 1 .$ !
diff -r 3aa48bcbc599 -r da0203c3461a test-data/samtools/mpileup/samtools_mpileup_out_2.bcf
Binary file test-data/samtools/mpileup/samtools_mpileup_out_2.bcf has changed
diff -r 3aa48bcbc599 -r da0203c3461a test-data/samtools_mpileup_in_3.bam
Binary file test-data/samtools_mpileup_in_3.bam has changed
diff -r 3aa48bcbc599 -r da0203c3461a test-data/samtools_mpileup_out_1.pileup
--- a/test-data/samtools_mpileup_out_1.pileup Wed Mar 12 12:53:30 2014 -0400
+++ b/test-data/samtools_mpileup_out_1.pileup Fri Sep 11 14:16:52 2015 -0400
@@ -1,43 +1,43 @@
-phiX174 1411 A 0 P 1
-phiX174 1412 G 0 PDF 2,1,1
-phiX174 1413 C 0 PDFDF 3,2,2,1,1
-phiX174 1414 G 0 PDFDFF 4,3,3,2,2,1
-phiX174 1415 C 0 PDFDFFF 5,4,4,3,3,2,1
-phiX174 1416 C 0 PDFDFFFF 6,5,5,4,4,3,2,1
-phiX174 1417 G 0 PDFDFFFFF 7,6,6,5,5,4,3,2,1
-phiX174 1418 T 0 PDFDFFFFFF 8,7,7,6,6,5,4,3,2,1
-phiX174 1419 G 0 PDFDFFFFFF 9,8,8,7,7,6,5,4,3,2
-phiX174 1420 G 0 PDFDFFFFFF 10,9,9,8,8,7,6,5,4,3
-phiX174 1421 A 0 PDFDFFFFFF 11,10,10,9,9,8,7,6,5,4
-phiX174 1422 T 0 PDFDFFFFFF 12,11,11,10,10,9,8,7,6,5
-phiX174 1423 G 0 PDFDFFFFFF 13,12,12,11,11,10,9,8,7,6
-phiX174 1424 C 0 PDFDFFFFFF 14,13,13,12,12,11,10,9,8,7
-phiX174 1425 C 0 PDFDFFFFFF 15,14,14,13,13,12,11,10,9,8
-phiX174 1426 T 0 PDFDFFFFFF 16,15,15,14,14,13,12,11,10,9
-phiX174 1427 G 0 PDFDFFFFFF 17,16,16,15,15,14,13,12,11,10
-phiX174 1428 A 0 PDFDFFFFFF 18,17,17,16,16,15,14,13,12,11
-phiX174 1429 C 0 PDFDFFFFFF 19,18,18,17,17,16,15,14,13,12
-phiX174 1430 C 0 PDFDFFFFFF 20,19,19,18,18,17,16,15,14,13
-phiX174 1431 G 0 PDFDFFFFFF 21,20,20,19,19,18,17,16,15,14
-phiX174 1432 T 0 PDFDFFFFFF 22,21,21,20,20,19,18,17,16,15
-phiX174 1433 A 0 PDFDFFFFFF 23,22,22,21,21,20,19,18,17,16
-phiX174 1434 C 0 PDFDFFFFFF 24,23,23,22,22,21,20,19,18,17
-phiX174 1435 C 0 PDFDFFFFFF 25,24,24,23,23,22,21,20,19,18
-phiX174 1436 G 0 PDFDFFFFFF 26,25,25,24,24,23,22,21,20,19
-phiX174 1437 A 0 PDFDFFFFFF 27,26,26,25,25,24,23,22,21,20
-phiX174 1438 G 0 PDFDFFFFFF 28,27,27,26,26,25,24,23,22,21
-phiX174 1439 G 0 PDFDFFFFFF 29,28,28,27,27,26,25,24,23,22
-phiX174 1440 C 0 PDFDFFFFFF 30,29,29,28,28,27,26,25,24,23
-phiX174 1441 T 0 PDFDFFFFFF 31,30,30,29,29,28,27,26,25,24
-phiX174 1442 A 0 PDFDFFFFFF 32,31,31,30,30,29,28,27,26,25
-phiX174 1443 A 0 PDFDFFFFFF 33,32,32,31,31,30,29,28,27,26
-phiX174 1444 C 0 PDFDFFFFFF 34,33,33,32,32,31,30,29,28,27
-phiX174 1445 C 0 PDFDFFFFFF 34,33,34,32,33,32,31,30,29,28
-phiX174 1446 C 0 PDFDFFFFFF 35,34,35,33,34,33,32,31,30,29
-phiX174 1447 T 0 PDFDFFFFFF 36,35,36,34,35,34,33,32,31,30
-phiX174 1448 A 0 DDFFFFFF 36,35,36,35,34,33,32,31
-phiX174 1449 A 0 DFFFFF 36,36,35,34,33,32
-phiX174 1450 T 0 FFFF 36,35,34,33
-phiX174 1451 G 0 FFF 36,35,34
-phiX174 1452 A 0 FF 36,35
-phiX174 1453 G 0 F 36
+phiX174 1411 A 0 1
+phiX174 1412 G 0 2,1,1
+phiX174 1413 C 0 3,2,2,1,1
+phiX174 1414 G 0 4,3,3,2,2,1
+phiX174 1415 C 0 5,4,4,3,3,2,1
+phiX174 1416 C 0 6,5,5,4,4,3,2,1
+phiX174 1417 G 0 7,6,6,5,5,4,3,2,1
+phiX174 1418 T 0 8,7,7,6,6,5,4,3,2,1
+phiX174 1419 G 0 9,8,8,7,7,6,5,4,3,2
+phiX174 1420 G 0 10,9,9,8,8,7,6,5,4,3
+phiX174 1421 A 0 11,10,10,9,9,8,7,6,5,4
+phiX174 1422 T 0 12,11,11,10,10,9,8,7,6,5
+phiX174 1423 G 0 13,12,12,11,11,10,9,8,7,6
+phiX174 1424 C 0 14,13,13,12,12,11,10,9,8,7
+phiX174 1425 C 0 15,14,14,13,13,12,11,10,9,8
+phiX174 1426 T 0 16,15,15,14,14,13,12,11,10,9
+phiX174 1427 G 0 17,16,16,15,15,14,13,12,11,10
+phiX174 1428 A 0 18,17,17,16,16,15,14,13,12,11
+phiX174 1429 C 0 19,18,18,17,17,16,15,14,13,12
+phiX174 1430 C 0 20,19,19,18,18,17,16,15,14,13
+phiX174 1431 G 0 21,20,20,19,19,18,17,16,15,14
+phiX174 1432 T 0 22,21,21,20,20,19,18,17,16,15
+phiX174 1433 A 0 23,22,22,21,21,20,19,18,17,16
+phiX174 1434 C 0 24,23,23,22,22,21,20,19,18,17
+phiX174 1435 C 0 25,24,24,23,23,22,21,20,19,18
+phiX174 1436 G 0 26,25,25,24,24,23,22,21,20,19
+phiX174 1437 A 0 27,26,26,25,25,24,23,22,21,20
+phiX174 1438 G 0 28,27,27,26,26,25,24,23,22,21
+phiX174 1439 G 0 29,28,28,27,27,26,25,24,23,22
+phiX174 1440 C 0 30,29,29,28,28,27,26,25,24,23
+phiX174 1441 T 0 31,30,30,29,29,28,27,26,25,24
+phiX174 1442 A 0 32,31,31,30,30,29,28,27,26,25
+phiX174 1443 A 0 33,32,32,31,31,30,29,28,27,26
+phiX174 1444 C 0 34,33,33,32,32,31,30,29,28,27
+phiX174 1445 C 0 34,33,34,32,33,32,31,30,29,28
+phiX174 1446 C 0 35,34,35,33,34,33,32,31,30,29
+phiX174 1447 T 0 36,35,36,34,35,34,33,32,31,30
+phiX174 1448 A 0 36,35,36,35,34,33,32,31
+phiX174 1449 A 0 36,36,35,34,33,32
+phiX174 1450 T 0 36,35,34,33
+phiX174 1451 G 0 36,35,34
+phiX174 1452 A 0 36,35
+phiX174 1453 G 0 36
diff -r 3aa48bcbc599 -r da0203c3461a test-data/samtools_mpileup_out_2.bcf
--- a/test-data/samtools_mpileup_out_2.bcf Wed Mar 12 12:53:30 2014 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,33 +0,0 @@
-##fileformat=VCFv4.1
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##FORMAT=
-##FORMAT=
-##FORMAT=
-##FORMAT=
-##FORMAT=
-##FORMAT=
-##FORMAT=
-#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT
diff -r 3aa48bcbc599 -r da0203c3461a test-data/samtools_mpileup_out_2.vcf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/samtools_mpileup_out_2.vcf Fri Sep 11 14:16:52 2015 -0400
@@ -0,0 +1,22 @@
+##fileformat=VCFv4.2
+##FILTER=
+##samtoolsVersion=1.1+htslib-1.1
+##samtoolsCommand=samtools mpileup --VCF --uncompressed -f /tmp/tmpId8vOP/tmp3bubIE/database/files/000/dataset_735.dat -g -e 20 -h 100 -L 250 -m 1 --open-prob 40 -F 0.002 -e 40 --output /tmp/tmpId8vOP/tmp3bubIE/database/files/000/dataset_736.dat /tmp/tmpId8vOP/tmp3bubIE/database/files/000/dataset_734.dat
+##reference=file:///tmp/tmpId8vOP/tmp3bubIE/database/files/000/dataset_735.dat
+##contig=
+##ALT=
+##INFO=
+##INFO=
+##INFO=
+##INFO=
+##INFO=
+##INFO=
+##INFO=
+##INFO=
+##INFO=
+##INFO=
+##INFO=
+##INFO=
+##INFO=
+##FORMAT=
+#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT /tmp/tmpId8vOP/tmp3bubIE/database/files/000/dataset_734.dat
diff -r 3aa48bcbc599 -r da0203c3461a test-data/samtools_mpileup_out_4.bcf
--- a/test-data/samtools_mpileup_out_4.bcf Wed Mar 12 12:53:30 2014 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,33 +0,0 @@
-##fileformat=VCFv4.1
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##INFO=
-##FORMAT=
-##FORMAT=
-##FORMAT=
-##FORMAT=
-##FORMAT=
-##FORMAT=
-##FORMAT=
-#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT
diff -r 3aa48bcbc599 -r da0203c3461a test-data/samtools_mpileup_out_4.log
Binary file test-data/samtools_mpileup_out_4.log has changed
diff -r 3aa48bcbc599 -r da0203c3461a test-data/samtools_mpileup_out_4.vcf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/samtools_mpileup_out_4.vcf Fri Sep 11 14:16:52 2015 -0400
@@ -0,0 +1,22 @@
+##fileformat=VCFv4.2
+##FILTER=
+##samtoolsVersion=1.1+htslib-1.1
+##samtoolsCommand=samtools mpileup --VCF --uncompressed -f /var/galaxy/workspace/CleanGalaxy/tool-data/phiX/sam_indexes/phiX/phiX.fa -C 0 -d 200 -E -q 0 -Q 43 -g -e 20 -h 100 -L 250 -m 1 --open-prob 40 -F 0.002 -e 40 --output /tmp/tmp5TzrZC/tmpDtGVov/database/files/000/dataset_756.dat /tmp/tmp5TzrZC/tmpDtGVov/database/files/000/dataset_755.dat
+##reference=file:///var/galaxy/workspace/CleanGalaxy/tool-data/phiX/sam_indexes/phiX/phiX.fa
+##contig=
+##ALT=
+##INFO=
+##INFO=
+##INFO=
+##INFO=
+##INFO=
+##INFO=
+##INFO=
+##INFO=
+##INFO=
+##INFO=
+##INFO=
+##INFO=
+##INFO=
+##FORMAT=
+#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT /tmp/tmp5TzrZC/tmpDtGVov/database/files/000/dataset_755.dat
diff -r 3aa48bcbc599 -r da0203c3461a tool_dependencies.xml
--- a/tool_dependencies.xml Wed Mar 12 12:53:30 2014 -0400
+++ b/tool_dependencies.xml Fri Sep 11 14:16:52 2015 -0400
@@ -1,6 +1,6 @@
-
-
+
+