Previous changeset 8:f29e7738bb64 (2018-06-18) |
Commit message:
Uploaded |
modified:
tools/mentalist_tree/mentalist_tree tools/mentalist_tree/mentalist_tree.xml |
b |
diff -r f29e7738bb64 -r a6cd59f35832 tools/mentalist_tree/mentalist_tree --- 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) |
b |
diff -r f29e7738bb64 -r a6cd59f35832 tools/mentalist_tree/mentalist_tree.xml --- 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> |