How to use standalone PHACTS

42 views
Skip to first unread message

Emily Kaelin

unread,
May 12, 2021, 12:24:06 PM5/12/21
to Edwards Lab Tools
Hello,

I'd like to use standalone PHACTS to classify phages in my dataset (I have several hundred to classify). Could you please clarify how the different perl scripts are meant to be used? Specifically, I would like to make sure I'm running them in the correct order, with the correct input.

Thanks very much!

Emily Kaelin

Kate

unread,
May 13, 2021, 9:33:26 PM5/13/21
to Edwards Lab Tools
Hi, the scripts are just there in case you wish to create your own training data. 

The phacts.pl script should work after uncompressing the tarball, except you will need to edit line 37 of the script to point to the location of fasta35 (or fasta36).
    my $fasta_path = "/SOMEPATH/fasta36/bin/fasta36";

If you don't have the fasta binaries they can easily be installed via the commands:
    $ cd fasta36/src
    $ make -f ../make/Makefile.linux_sse2 all


And then to run it:
    $ ./phacts.pl --file genomes/101570.3.fas --classes classes_lifestyle
    Predictions for genomes/101570.3.fas
    Class             probability                       standard deviation
    -----                  -----------                             ------------------
    Temperate    0.674025974025974    0.0697077957422893
    Lytic               0.325974025974026    0.0697077957422893
 

Kate

unread,
May 13, 2021, 9:35:42 PM5/13/21
to Edwards Lab Tools
Oh, you will also need R and the R library 'randomForest'

Emily Kaelin

unread,
May 14, 2021, 1:07:41 PM5/14/21
to Edwards Lab Tools
Thanks for the explanation! That all makes sense.

Emily

Reply all
Reply to author
Forward
0 new messages