Skip to content

Commit

Permalink
Put dependency version and citation in a macro.
Browse files Browse the repository at this point in the history
  • Loading branch information
davebx committed Jul 17, 2019
1 parent 9a6adfe commit 39fde2f
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 24 deletions.
17 changes: 17 additions & 0 deletions tools/tn93/macros.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<macros>
<token name="@VERSION@">1.0.4</token>
<xml name="citations">
<citations>
<citation type="bibtex">
@UNPUBLISHED{spond,
author = "Sergei Kosakovsky Pond",
title = "HyPhy: Hypothesis Testing using Phylogenies",
year = "2000",
note = "http://hyphy.org/",
url = "http://hyphy.org/"}
</citation>
<yield />
</citations>
</xml>
</macros>
18 changes: 6 additions & 12 deletions tools/tn93/readreduce.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<tool id="tn93_readreduce" name="Merge matching reads" version="1.0.4">
<tool id="tn93_readreduce" name="Merge matching reads" version="@VERSION@">
<description>into clusters with TN-93</description>
<macros>
<import>macros.xml</import>
</macros>
<requirements>
<requirement type="package" version="1.0.4">tn93</requirement>
<requirement type="package" version="@VERSION@">tn93</requirement>
</requirements>
<version_command><![CDATA[tn93 --version]]></version_command>
<command detect_errors="exit_code"><![CDATA[
Expand Down Expand Up @@ -62,14 +65,5 @@ readreduce
Merge matching reads into clusters using the
[Tamura Nei 93 distance](http://www.ncbi.nlm.nih.gov/pubmed/8336541) algorithm.
]]></help>
<citations>
<citation type="bibtex">
@UNPUBLISHED{spond,
author = "Sergei Kosakovsky Pond",
title = "HyPhy: Hypothesis Testing using Phylogenies",
year = "2000",
note = "http://hyphy.org/",
url = "http://hyphy.org/"}
</citation>
</citations>
<expand macro="citations" />
</tool>
20 changes: 8 additions & 12 deletions tools/tn93/tn93.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<tool id="tn93" name="TN93" version="1.0.4">
<tool id="tn93" name="TN93" version="@VERSION@">
<description>compute distances between aligned sequences</description>
<macros>
<import>macros.xml</import>
</macros>
<requirements>
<requirement type="package" version="1.0.4">tn93</requirement>
<requirement type="package" version="@VERSION@">tn93</requirement>
</requirements>
<version_command><![CDATA[tn93 --version]]></version_command>
<command detect_errors="exit_code"><![CDATA[
Expand Down Expand Up @@ -86,14 +89,7 @@ All sequences must be aligned and have the same length. Only IUPAC characters ar
':' can be replaced with another character using `-d`, and sequences that have no explicit copy number are assumed to be a single copy. Copy numbers
only affect histogram and mean calculations.
]]></help>
<citations>
<citation type="bibtex">
@UNPUBLISHED{spond,
author = "Sergei Kosakovsky Pond",
title = "HyPhy: Hypothesis Testing using Phylogenies",
year = "2000",
note = "http://hyphy.org/",
url = "http://hyphy.org/"}
</citation>
</citations>
<expand macro="citations">
<citation type="doi">10.1093/oxfordjournals.molbev.a040023</citation>
</expand>
</tool>

0 comments on commit 39fde2f

Please sign in to comment.