| 1 | // this menu defines windows for two FastTree interfaces: nucleotide and protein |
|---|
| 2 | // (depending on whether FASTTREE_NUC is defined or not) |
|---|
| 3 | |
|---|
| 4 | #ifdef FASTTREE_NUC |
|---|
| 5 | # define SEQTYPE_NAME nucleotide |
|---|
| 6 | # define SEQTYPE_SHRT NUC |
|---|
| 7 | # define ST_FLAG -nt |
|---|
| 8 | #else |
|---|
| 9 | # define SEQTYPE_NAME protein |
|---|
| 10 | # define SEQTYPE_SHRT PRO |
|---|
| 11 | # define ST_FLAG |
|---|
| 12 | #endif |
|---|
| 13 | |
|---|
| 14 | #define CLEANUP_INPUT \ |
|---|
| 15 | arb_sed 's/#/>/' | \ |
|---|
| 16 | arb_sed 's/%/>/' | \ |
|---|
| 17 | arb_sed 's/"/>/' | \ |
|---|
| 18 | arb_sed 's/@/>/' | \ |
|---|
| 19 | arb_sed '/^[^>]/ y/./-/' |
|---|
| 20 | |
|---|
| 21 | #ifdef USE_OPENMP |
|---|
| 22 | // depends on GUI |
|---|
| 23 | # define FASTTREE_BINARY $ARBHOME/bin/$FASTTREE |
|---|
| 24 | #else |
|---|
| 25 | # define FASTTREE_BINARY $ARBHOME/bin/FastTree |
|---|
| 26 | #endif |
|---|
| 27 | |
|---|
| 28 | #define FASTTREE_CODE \ |
|---|
| 29 | (GOTO_LOCAL_DIR; \ |
|---|
| 30 | <TmpInputFile CLEANUP_INPUT >fasttree_in; \ |
|---|
| 31 | RUN_IN_WINDOW(( (FASTTREE_BINARY $NJMODE $NJ_OPT $MLMODEL -cat '$CAT' $SUPPORT ST_FLAG fasttree_in > fasttree_out || STOP_ON_FAILURE($FASTTREE)) && \ |
|---|
| 32 | $DISPLAY_FUNC));)& |
|---|
| 33 | |
|---|
| 34 | item:FastTree2 (SEQTYPE_NAME) |
|---|
| 35 | #ifdef FASTTREE_NUC |
|---|
| 36 | itemmeta:F |
|---|
| 37 | seqtype:N |
|---|
| 38 | #else |
|---|
| 39 | itemmeta:p |
|---|
| 40 | seqtype:A |
|---|
| 41 | #endif |
|---|
| 42 | itemmethod: FASTTREE_CODE |
|---|
| 43 | itemhelp: fasttree.help |
|---|
| 44 | |
|---|
| 45 | arg:DISPLAY_FUNC |
|---|
| 46 | argtype:choice_menu |
|---|
| 47 | arglabel:What to do with the tree? |
|---|
| 48 | argchoice:Load into ARB ('tree_fasttree_//'):$ARBHOME/bin/arb_read_tree tree_fasttree_$$ fasttree_out "PRG=$FASTTREE$NJMODE FILTER=$FILTER MODEL=!$MLMODEL STYPE=SEQTYPE_SHRT" |
|---|
| 49 | argchoice:Treetool:treetool fasttree_out |
|---|
| 50 | |
|---|
| 51 | #ifdef USE_OPENMP |
|---|
| 52 | arg:FASTTREE |
|---|
| 53 | argtype:choice_menu |
|---|
| 54 | arglabel:Use multiprocessor? |
|---|
| 55 | argchoice:No:FastTree |
|---|
| 56 | argchoice:Yes:FastTreeMP |
|---|
| 57 | #endif |
|---|
| 58 | |
|---|
| 59 | arg:NJMODE |
|---|
| 60 | argtype:choice_menu |
|---|
| 61 | arglabel:Neighbor joining phase |
|---|
| 62 | argchoice:default: |
|---|
| 63 | argchoice:fastest (recommended >50k species):-fastest |
|---|
| 64 | argchoice:slow (really):-slow |
|---|
| 65 | |
|---|
| 66 | arg:NJ_OPT |
|---|
| 67 | argtype:choice_menu |
|---|
| 68 | arglabel:Weighted neighbor joining? |
|---|
| 69 | argchoice:No: |
|---|
| 70 | argchoice:Yes, as in BIONJ:-bionj |
|---|
| 71 | |
|---|
| 72 | arg:MLMODEL |
|---|
| 73 | argtype:choice_menu |
|---|
| 74 | arglabel:ML Model |
|---|
| 75 | #ifdef FASTTREE_NUC |
|---|
| 76 | argchoice:Jukes-Cantor: |
|---|
| 77 | argchoice:GTR:-gtr |
|---|
| 78 | #else |
|---|
| 79 | argchoice:JTT: |
|---|
| 80 | argchoice:WAG:-wag |
|---|
| 81 | argchoice:LG:-lg |
|---|
| 82 | #endif |
|---|
| 83 | |
|---|
| 84 | arg:CAT |
|---|
| 85 | argtype:text |
|---|
| 86 | arglabel:Number of rate categories\n(Range [1..n]; default: 20) |
|---|
| 87 | argtext:20 |
|---|
| 88 | |
|---|
| 89 | arg:SUPPORT |
|---|
| 90 | argtype:choice_menu |
|---|
| 91 | arglabel:Support values |
|---|
| 92 | argchoice:1000xresample + Shimodaira Hasegawa test: |
|---|
| 93 | argchoice:Minimum-evolution bootstrap:-nome |
|---|
| 94 | argchoice:None:-nosupport |
|---|
| 95 | |
|---|
| 96 | in:TmpInputFile |
|---|
| 97 | informat:flat |
|---|
| 98 | insave: |
|---|