Skip to content

Commit

Permalink
phen/ is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Vyacheslav Brover committed Oct 17, 2024
1 parent eb7d811 commit 2cd15a2
Showing 1 changed file with 10 additions and 18 deletions.
28 changes: 10 additions & 18 deletions phylogeny/distTree_inc_optimize.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash --noprofile
THIS=`dirname $0`
THIS=$( dirname $0 )
source $THIS/../bash_common.sh
if [ $# -ne 4 ]; then
echo "Optimize a distance tree and evaluate"
Expand All @@ -15,23 +15,15 @@ VARIANCE="$3"
OUT_TREE=$4


if [ ! -e $INC/phen ]; then
error "No $INC/phen"
fi

N=15
if [ -e $INC/threads ]; then
N=`cat $INC/threads`
fi
THREADS="-threads $N"

section "Tree"
$THIS/makeDistTree $THREADS -data $INC/ -variance $VARIANCE -optimize -skip_len -subgraph_iter_max 5 -output_tree $OUT_TREE
THREADS=$( file2var $INC/threads 15 )
$THIS/makeDistTree -threads $THREADS -data $INC/ -variance $VARIANCE -optimize -skip_len -subgraph_iter_max 5 -output_tree $OUT_TREE

super_section "Quality"
LARGE=0
if [ -e $INC/large ]; then
LARGE=1
if [ -e $INC/phen ]; then
super_section "Quality"
LARGE=0
if [ -e $INC/large ]; then
LARGE=1
fi
$THIS/tree_quality_phen.sh $OUT_TREE "$TARGET" $INC/phen $LARGE 1 ""
fi
$THIS/tree_quality_phen.sh $OUT_TREE "$TARGET" $INC/phen $LARGE 1 ""

0 comments on commit 2cd15a2

Please sign in to comment.