Giter VIP home page Giter VIP logo

fastrfs's Introduction

FastRFS

Fast Robinson Foulds Supertrees

To build FastRFS you will need the Bazel build system. From the FastRFS folder, run

bazel build //src:FastRFS

to build FastRFS. Your executable will be located at blaze-bin/src/FastRFS.

To run FastRFS, you must have a directory containing the Astral distribution in the folder with FastRFS. That is the folder named Astral contained inside the ASTRAL distribution. For example, you could copy that folder to the same location as the FastRFS executable, or you could copy FastRFS to the same location as the ASTRAL executable.

Then, run

FastRFS -i <input files> -o <output file> 

To run FastRFS*, calculate an extra tree with MRL (or extra trees with whatever method), and run

FastRFS -i <input files> -o <output file> -e <extra tree files>

By default, FastRFS uses SIESTA to generate strict, greedy, and majority consensus trees of all optimal trees. If for some reason this is a problem, you can disable these with --nogreedy, --nostrict, and --nomajority options.

The other output files are .count, which contains the number of optimal trees, .score, which contains the optimal score (RF distances to input trees), and .single, which contains a single optimal tree.

Other options you can use include:

--noastral to not use ASTRAL to compute bipartition sests
--clades <newick file> to give an explicit list of clades that should be used for the analysis 
     (by contrast, -e adds the files as a command line argument to ASTRAL; --clades takes exactly the clades from the trees in the provided file

fastrfs's People

Contributors

ekmolloy avatar pranjalv123 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ekmolloy

fastrfs's Issues

does not compile

[ 10%] Building CXX object CMakeFiles/FastRFS_static.dir/FastRFS.cpp.o
/opt/FastRFS-master/src/FastRFS.cpp: In function ‘int main(int, char**)’:
/opt/FastRFS-master/src/FastRFS.cpp:28:7: warning: unused variable ‘debug’ [-Wunused-variable]
int debug = 0;
^~~~~
/opt/FastRFS-master/src/FastRFS.cpp:36:8: warning: unused variable ‘getAll’ [-Wunused-variable]
bool getAll=false;
^~~~~~
[ 20%] Building CXX object CMakeFiles/FastRFS_static.dir/FastRFTripartitionScorer.cpp.o
/opt/FastRFS-master/src/FastRFTripartitionScorer.cpp: In member function ‘virtual void FastRFTripartitionScorer::setup(Config&, std::vector&)’:
/opt/FastRFS-master/src/FastRFTripartitionScorer.cpp:59:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (n%1000 == 0 || n == clades.size()) {
~~^~~~~~~~~~~~~~~~
[ 30%] Building CXX object CMakeFiles/FastRFS_static.dir/RFSupportAnalysis.cpp.o
/opt/FastRFS-master/src/RFSupportAnalysis.cpp: In function ‘double support(TaxonSet&, clade_bitset&, std::vector<std::unordered_set >&, std::vector&)’:
/opt/FastRFS-master/src/RFSupportAnalysis.cpp:10:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < trees.size(); i++) {
~~^~~~~~~~~~~~~~
[ 40%] Building CXX object CMakeFiles/FastRFS_static.dir/whereami.cpp.o
[ 50%] Linking CXX executable static/FastRFS
/usr/bin/ld: cannot open output file static/FastRFS: No such file or directory
collect2: error: ld returned 1 exit status
CMakeFiles/FastRFS_static.dir/build.make:172: recipe for target 'static/FastRFS' failed
make[2]: *** [static/FastRFS] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/FastRFS_static.dir/all' failed
make[1]: *** [CMakeFiles/FastRFS_static.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.