Dan and Greg, SnpEff is an example of a java based tool in the tooshed that would be good to be able to deploy without any editing by the installer. Pablo has hardcoded the path to the jar and config files in the tool_config: /Users/pablocingolani/snpEff/ With directions for the installer to change that path. Would it be possible to supply the install path of a tool to the tool's cheetah command/config templating in a similar way that $__tool_data_path__ is provided? $__tool_path__ If a tool had dependencies could those be provided as a dict? $__tool_dependencies__['samtools'] Then snpEff command could be: <command>java -Xmx6G -jar $__tool_path__/snpEff.jar eff -c $__tool_path__/snpEff.config -i $inputFormat -o $outputFormat -upDownStreamLen $udLength $filterIn $filterHomHet -no $filterOut -stats $statsFile $genomeVersion $input > $output </command> This could allow for tool versioning and be used for for the common java packaging technique of an executable jar with META_DATA that references dependencies in a relative dir, usually ./lib/ Thanks, JJ Browse snpeff revision c052639fa666 (repository tip) Clone this repository:hg clonehttp://jjohnson@toolshed.g2.bx.psu.edu/repos/pcingola/snpeff Contents: snpeff <http://toolshed.g2.bx.psu.edu/repository/browse_repository?webapp=community&id=c0b55599c0b094b7#> snpEff_2_1a/ <http://toolshed.g2.bx.psu.edu/repository/browse_repository?webapp=community&id=c0b55599c0b094b7#> snpEff_2_1a/ <http://toolshed.g2.bx.psu.edu/repository/browse_repository?webapp=community&id=c0b55599c0b094b7#> galaxy/ <http://toolshed.g2.bx.psu.edu/repository/browse_repository?webapp=community&id=c0b55599c0b094b7#> snpEff.xml <http://toolshed.g2.bx.psu.edu/repository/browse_repository?webapp=community&id=c0b55599c0b094b7#> snpEff_download.xml <http://toolshed.g2.bx.psu.edu/repository/browse_repository?webapp=community&id=c0b55599c0b094b7#> snpSift_annotate.xml <http://toolshed.g2.bx.psu.edu/repository/browse_repository?webapp=community&id=c0b55599c0b094b7#> snpSift_caseControl.xml <http://toolshed.g2.bx.psu.edu/repository/browse_repository?webapp=community&id=c0b55599c0b094b7#> snpSift_filter.xml <http://toolshed.g2.bx.psu.edu/repository/browse_repository?webapp=community&id=c0b55599c0b094b7#> snpSift_int.xml <http://toolshed.g2.bx.psu.edu/repository/browse_repository?webapp=community&id=c0b55599c0b094b7#> tool_conf.xml <http://toolshed.g2.bx.psu.edu/repository/browse_repository?webapp=community&id=c0b55599c0b094b7#> scripts/ <http://toolshed.g2.bx.psu.edu/repository/browse_repository?webapp=community&id=c0b55599c0b094b7#> snpEff.config <http://toolshed.g2.bx.psu.edu/repository/browse_repository?webapp=community&id=c0b55599c0b094b7#> snpEff.jar <http://toolshed.g2.bx.psu.edu/repository/browse_repository?webapp=community&id=c0b55599c0b094b7#> <tool id="snpEff" name="SnpEff" version="1.0"> <description>Variant efefct and annotation</description> <!-- You will need to change the path to wherever your installation is. You can change the amount of memory used by snpEff, just change the -Xmx parameter (e.g. use -Xmx2G for 2Gb of memory) <command>java -Xmx6G -jar /path/to/your/snpEff/snpEff.jar eff -c /path/to/your/snpEff/snpEff/snpEff.config $inputFormat $offset -upDownStreamLen $udLength $filterIn $filterHomHet -no $filterOut -stats $statsFile $genomeVersion $input > $output </command> --> <command>java -Xmx6G -jar /Users/pablocingolani/snpEff/snpEff.jar eff -c /Users/pablocingolani/snpEff/snpEff.config -i $inputFormat -o $outputFormat -upDownStreamLen $udLength $filterIn $filterHomHet -no $filterOut -stats $statsFile $genomeVersion $input > $output </command>
participants (1)
-
Jim Johnson