# HG changeset patch # User iuc # Date 1632845621 0 # Node ID fe34990e5ce752987b2ea729a76287bda24b1fc0 # Parent 22970df7a40eee99acd9bcf3a53e8783ad5ed1ed "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_flagstat commit 0f75269223c0821c6c82acf98fde947d0f816f2b" diff -r 22970df7a40e -r fe34990e5ce7 macros.xml --- a/macros.xml Fri Sep 06 11:22:29 2019 -0400 +++ b/macros.xml Tue Sep 28 16:13:41 2021 +0000 @@ -5,10 +5,16 @@ - 1.9 - #set $flags = sum(map(int, str($filter).split(','))) + 1.13 + 20.05 + + + + + + @HELP@ + + + + + + + + + + + + + + + + + + + + + + @HELP@ + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - + + + + + + + + + + + + + - + tabulate descriptive stats for BAM datset @@ -10,21 +10,46 @@ '$output1' + samtools flagstat -@ \$addthreads + #if $output_fmt != 'txt' + --output-fmt $output_fmt + #end if + '$input1' + > '$output1' ]]> + + + + + - + + + + + + - + + + + + + + + + + + = 5)": 0 + }, + "QC-failed reads": { + "total": 0, + "primary": 0, + "secondary": 0, + "supplementary": 0, + "duplicates": 0, + "primary duplicates": 0, + "mapped": 0, + "mapped %": null, + "primary mapped": 0, + "primary mapped %": null, + "paired in sequencing": 0, + "read1": 0, + "read2": 0, + "properly paired": 0, + "properly paired %": null, + "with itself and mate mapped": 0, + "singletons": 0, + "singletons %": null, + "with mate mapped to a different chr": 0, + "with mate mapped to a different chr (mapQ >= 5)": 0 + } +} diff -r 22970df7a40e -r fe34990e5ce7 test-data/samtools_flagstat_out1.tsv --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/samtools_flagstat_out1.tsv Tue Sep 28 16:13:41 2021 +0000 @@ -0,0 +1,20 @@ +200 0 total (QC-passed reads + QC-failed reads) +200 0 primary +0 0 secondary +0 0 supplementary +0 0 duplicates +0 0 primary duplicates +25 0 mapped +12.50% N/A mapped % +25 0 primary mapped +12.50% N/A primary mapped % +200 0 paired in sequencing +100 0 read1 +100 0 read2 +0 0 properly paired +0.00% N/A properly paired % +0 0 with itself and mate mapped +25 0 singletons +12.50% N/A singletons % +0 0 with mate mapped to a different chr +0 0 with mate mapped to a different chr (mapQ>=5) diff -r 22970df7a40e -r fe34990e5ce7 test-data/samtools_flagstat_out1.txt --- a/test-data/samtools_flagstat_out1.txt Fri Sep 06 11:22:29 2019 -0400 +++ b/test-data/samtools_flagstat_out1.txt Tue Sep 28 16:13:41 2021 +0000 @@ -1,8 +1,11 @@ 200 + 0 in total (QC-passed reads + QC-failed reads) +200 + 0 primary 0 + 0 secondary 0 + 0 supplementary 0 + 0 duplicates +0 + 0 primary duplicates 25 + 0 mapped (12.50% : N/A) +25 + 0 primary mapped (12.50% : N/A) 200 + 0 paired in sequencing 100 + 0 read1 100 + 0 read2