changeset 9:a6cd59f35832 draft default tip

Uploaded
author dfornika
date Tue, 26 Jun 2018 15:33:59 -0400
parents f29e7738bb64
children
files tools/mentalist_tree/mentalist_tree tools/mentalist_tree/mentalist_tree.xml
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tools/mentalist_tree/mentalist_tree	Mon Jun 18 15:52:32 2018 -0400
+++ b/tools/mentalist_tree/mentalist_tree	Tue Jun 26 15:33:59 2018 -0400
@@ -57,6 +57,10 @@
     input_file = sys.argv[1]
     reader = csv.reader(open(input_file, "r"), delimiter="\t")
     input_matrix = list(reader)
+    # Don't build a tree with fewer than 3 samples, just produce an empty file
+    if len(input_matrix) < 4:
+      print('();')
+      sys.exit(0)
     distance_matrix = process_input_matrix(input_matrix)
     constructor = DistanceTreeConstructor()
     tree = constructor.nj(distance_matrix)
--- a/tools/mentalist_tree/mentalist_tree.xml	Mon Jun 18 15:52:32 2018 -0400
+++ b/tools/mentalist_tree/mentalist_tree.xml	Tue Jun 26 15:33:59 2018 -0400
@@ -1,6 +1,6 @@
 <tool id="mentalist_tree" name="MentaLiST Tree" version="0.1.9">
   <requirements>
-    <requirement type="package" version="1.71">biopython</requirement>
+    <requirement type="package" version="1.70">biopython</requirement>
   </requirements>
   <command detect_errors="exit_code"><![CDATA[
     $__tool_directory__/mentalist_tree
@@ -27,6 +27,5 @@
     mentalist_distance <input.tsv>
   ]]></help>
   <citations>
-    <citation type="doi">10.1101/172858</citation>
   </citations>
 </tool>