-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·70 lines (63 loc) · 2.26 KB
/
run.sh
File metadata and controls
executable file
·70 lines (63 loc) · 2.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#! /bin/bash
echo 'Test case examples for bioinformatic toolkits discussed in http://biorxiv.org/content/early/2015/12/25/035360'
echo '```'
echo Software used:
R --version|grep Full
echo 'ETE3' `ete3 version`
echo 'ETE2' `python -c 'import ete2; print ete2.__version__'`
echo Dendropy `python -c 'import dendropy; print dendropy.__version__'`
echo BioPython `python -c 'import Bio; print Bio.__version__'`
echo Newick utilities 1.6
echo BioPerl `perl -e 'use Bio::Perl; print Bio::Perl->VERSION."\n"'`
echo PyCogent `python -c 'import cogent; print cogent.__version__'`
echo '```'
echo "###Relevant discussion:"
echo BioPython: https://github.com/biopython/biopython/issues/745
echo
echo Dendropy: https://github.com/jeetsukumaran/DendroPy/issues/53
echo
echo BioPerl: https://github.com/bioperl/bioperl-live/issues/157
echo
echo newick-utilities: https://github.com/tjunier/newick_utils/issues/15
echo
echo Scikit-bio/PyCogent: https://github.com/biocore/scikit-bio/issues/1355
echo
ete3 view --attr name support --sin --ss --sbl -i original_tree.png -t test.nw;
echo '## Original tree'
echo '```'
cat test.nw
echo '```'
echo ''
echo '## Tree after rooting to X'
for x in test_ete3.py test_ete2.py test_dendropy.py test_ape.sh test_patched_ape.sh test_newick_utilities.sh test_biopython.py test_bioperl.sh test_pycogent.py
do
echo '###' $x
for ext in .sh .py .pl .R; do
base=`echo $x|cut -f1 -d'.'`$ext
if [[ ! -f $base ]]; then
continue
fi
echo '####' $base
if [[ $base =~ .*\.py ]]; then
echo '```python'
elif [[ $base =~ .*\.R ]]; then
echo '```R'
elif [[ $base =~ .*\.sh ]]; then
echo '```bash'
elif [[ $base =~ .*\.pl ]]; then
echo '```perl'
else
echo '```'
fi
cat $base
echo '```'
done
echo Resulting newick:
echo '```'
./$x;
echo
echo '```';
#./$x|ete3 view --text --attr name support --sin;
./$x |ete3 view --attr name support --sin --ss --sbl -i $x.png;
echo ""
done