Skip to content

Commit

Permalink
Merge pull request galaxyproject#944 from nsoranzo/alternative_to_928
Browse files Browse the repository at this point in the history
Test snpEff in Conda
  • Loading branch information
bgruening authored Sep 16, 2016
2 parents fbc6fc5 + de0c7cf commit 00efb70
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
5 changes: 3 additions & 2 deletions tool_collections/snpeff/snpEff.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<expand macro="version_command" />
<command>
<![CDATA[
@CONDA_SNPEFF_JAR_PATH@ &&
java -Xmx6G -jar "\$SNPEFF_JAR_PATH/snpEff.jar" eff
-c "\$SNPEFF_JAR_PATH/snpEff.config"
-i $inputFormat -o ${outputConditional.outputFormat} -upDownStreamLen $udLength
Expand Down Expand Up @@ -359,9 +360,9 @@
<output name="snpeff_output">
<assert_contents>
<!-- Check that deleletions were evaluated -->
<has_text_matching expression="Y\t59030478\t.*EFF=INTERGENIC" />
<has_text_matching expression="Y\t59030478\t.*intergenic_region" />
<!-- Check that insertion on last line was NOT evaluated -->
<has_text_matching expression="Y\t59032947\t.*SF=5\tGT" />
<has_text_matching expression="Y\t59032947\t.*\tGT" />
</assert_contents>
</output>
</test>
Expand Down
1 change: 1 addition & 0 deletions tool_collections/snpeff/snpEff_databases.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<expand macro="version_command" />
<command>
<![CDATA[
@CONDA_SNPEFF_JAR_PATH@ &&
java -jar "\$SNPEFF_JAR_PATH/snpEff.jar" databases | grep -v '^---' | sed 's/^Genome/#Genome/' | sed 's/ *//g' > "$snpeff_dbs"
]]>
</command>
Expand Down
1 change: 1 addition & 0 deletions tool_collections/snpeff/snpEff_download.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<expand macro="version_command" />
<command>
<![CDATA[
@CONDA_SNPEFF_JAR_PATH@ &&
java -jar "\$SNPEFF_JAR_PATH/snpEff.jar" download -c "\$SNPEFF_JAR_PATH/snpEff.config" -dataDir "$snpeff_db.files_path" -v "$genome_version"
]]>
</command>
Expand Down
17 changes: 6 additions & 11 deletions tool_collections/snpeff/snpEff_macros.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@
<exit_code range="1:" level="fatal" description="Error" />
</stdio>
</xml>
<token name="@CONDA_SNPEFF_JAR_PATH@">if [ -z "\$SNPEFF_JAR_PATH" ]; then export SNPEFF_JAR_PATH=\$(dirname \$(readlink -e \$(which snpEff))); fi</token>
<xml name="version_command">
<version_command>java -jar "$SNPEFF_JAR_PATH/snpEff.jar" -version</version_command>
<version_command><![CDATA[
if [ -z "$SNPEFF_JAR_PATH" ]; then
export SNPEFF_JAR_PATH=$(dirname $(readlink -e $(which snpEff)));
fi && java -jar "$SNPEFF_JAR_PATH/snpEff.jar" -version
]]></version_command>
</xml>
<token name="@WRAPPER_VERSION@">4.1</token>
<token name="@SNPEFF_VERSION@">SnpEff4.1</token>
Expand All @@ -21,16 +26,6 @@
For details about this tool, please go to:
http://snpeff.sourceforge.net/SnpEff_manual.html

</token>
<token name="@CITATION_SECTION@">------

**Citation**

For the underlying tool, please cite the following two publications:

SnpEff citation:
"A program for annotating and predicting the effects of single nucleotide polymorphisms, SnpEff: SNPs in the genome of Drosophila melanogaster strain w1118; iso-2; iso-3.", Cingolani P, Platts A, Wang le L, Coon M, Nguyen T, Wang L, Land SJ, Lu X, Ruden DM. Fly 6(2):80-92, 2012

</token>
<xml name="citations">
<citations>
Expand Down

0 comments on commit 00efb70

Please sign in to comment.