Mercurial > repos > blankenberg > naive_variant_caller
changeset 1:cbb8bfd46a80 draft
planemo upload for repository https://github.com/blankenberg/tools-blankenberg/tree/master/tools/naive_variant_caller commit cf5c0f6fb2651adf72e317a1cf77805fca30d84e-dirty
author | blankenberg |
---|---|
date | Thu, 17 Sep 2015 11:43:57 -0400 |
parents | 0095f76a5d05 |
children | f24d3b78f9bd |
files | dependency_configs/tool_dependencies.xml tools/naive_variant_caller.py tools/naive_variant_caller.xml |
diffstat | 3 files changed, 12 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/dependency_configs/tool_dependencies.xml Thu Sep 17 11:13:08 2015 -0400 +++ b/dependency_configs/tool_dependencies.xml Thu Sep 17 11:43:57 2015 -0400 @@ -6,7 +6,7 @@ <package name="pyBamParser" version="0.0.1"> <repository changeset_revision="25dda1db045d" name="package_pybamparser_0_0_1" owner="blankenberg" toolshed="https://testtoolshed.g2.bx.psu.edu" /> </package> - <package name="pyBamTools" version="0.0.1"> - <repository changeset_revision="a43a5758b59a" name="package_pybamtools_0_0_1" owner="blankenberg" toolshed="https://testtoolshed.g2.bx.psu.edu" /> + <package name="pyBamTools" version="0.0.2"> + <repository changeset_revision="b9bb96e4c532" name="package_pybamtools_0_0_2" owner="blankenberg" toolshed="https://testtoolshed.g2.bx.psu.edu" /> </package> </tool_dependency>
--- a/tools/naive_variant_caller.py Thu Sep 17 11:13:08 2015 -0400 +++ b/tools/naive_variant_caller.py Thu Sep 17 11:43:57 2015 -0400 @@ -1,9 +1,10 @@ +#!/usr/bin/env python #Dan Blankenberg import sys import optparse from pyBamParser.bam import Reader -from pyBamTools.genotyping.naive import VCFReadGroupGenotyper +from pyBamTools.genotyping.naive import VCFReadGroupGenotyper, PROGRAM_NAME, PROGRAM_VERSION def main(): #Parse Command Line @@ -22,8 +23,13 @@ parser.add_option( '--allow_out_of_bounds_positions', dest='allow_out_of_bounds_positions', action='store_true', default = False, help='Allows out of bounds positions to not throw fatal errors' ) parser.add_option( '--safe', dest='safe', action='store_true', default = False, help='Perform checks to prevent certain errors. Is slower.' ) parser.add_option( '--region', dest='region', action='append', type="string", default=[], help='region' ) + parser.add_option( '', '--version', dest='version', action='store_true', default = False, help='Report version and quit' ) (options, args) = parser.parse_args() + if options.version: + print "%s version %s" % ( PROGRAM_NAME, PROGRAM_VERSION ) + sys.exit(0) + if len( options.bam_file ) == 0: print >>sys.stderr, 'You must provide at least one bam (-b) file.' parser.print_help( sys.stderr )
--- a/tools/naive_variant_caller.xml Thu Sep 17 11:13:08 2015 -0400 +++ b/tools/naive_variant_caller.xml Thu Sep 17 11:43:57 2015 -0400 @@ -1,9 +1,9 @@ -<tool id="naive_variant_caller" name="Naive Variant Caller" version="0.0.1"> +<tool id="naive_variant_caller" name="Naive Variant Caller" version="0.0.2"> <description> - tabulate variable sites from BAM datasets</description> <requirements> <requirement type="package" version="1.7.1">numpy</requirement> <requirement type="package" version="0.0.1">pyBamParser</requirement> - <requirement type="package" version="0.0.1">pyBamTools</requirement> + <requirement type="package" version="0.0.2">pyBamTools</requirement> </requirements> <stdio> <exit_code range="1:" err_level="fatal" /> @@ -52,6 +52,7 @@ ${advanced_options.safe} #end if </command> + <version_command>python naive_variant_caller.py --version</version_command> <inputs> <conditional name="reference_source"> <param name="reference_source_selector" type="select" label="Choose the source for the reference list">