GithubHelp home page GithubHelp logo

ytabatabaee / castles Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 1.0 642.61 MB

Coalescent-Aware Species Tree Length Estimation in Substitution-units

License: MIT License

Mathematica 93.36% Shell 0.75% Python 5.89%
branch-length-estimation coalescent gene-trees species-trees

castles's People

Contributors

smirarab avatar ytabatabaee avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

xingxingshen

castles's Issues

IndexError when running CASTLES

Hello!
I am trying to use CASTLES to estimate branch lengths of a species tree topology I generated with ASTRAL. I was able to annotate the species tree topology with a local installation of ASTER. However, when I run castles.py, I get this error:

Number of species: 55
Number of genes: 5969

Calculating lengths in post-order traversal of internal nodes:
Traceback (most recent call last):
File "/home/avehi/Biotools/CASTLES-1.3.0/castles.py", line 306, in
castles(st, gts, tns)
File "/home/avehi/Biotools/CASTLES-1.3.0/castles.py", line 210, in castles
label_dict = process_node_annotation(node.label)
File "/home/avehi/Biotools/CASTLES-1.3.0/castles.py", line 21, in process_node_annotation
label_dict['support'] = float(annotations[1])
IndexError: list index out of range

The input files are rather large but I could email them to you, if you'd like.

Thanks very much in advance!!

Duplicate taxon label error

If I am correct, then theoretically this should work with duplicate taxa in gene trees, however I get this error when trying to use a species-tree inferred under ASTRAL, with a collection of gene-trees:

dendropy.dataio.newickreader.NewickReader.NewickReaderDuplicateTaxonError: Error parsing data source 'castle_gt_input.trees' on line 1 at column 1481: Multiple occurrences of the same taxa on trees are not supported: trees with duplicate node labels can only be processed if the labels are not parsed as operational taxonomic unit concepts but instead as simply node labels by specifying 'suppress_internal_node_taxa=True, suppress_leaf_node_taxa=True'.

When trying to add these flags though I also get errors:
castles.py: error: unrecognized arguments: suppress_internal_node_taxa=True, suppress_leaf_node_taxa=True

castles.py: error: unrecognized arguments: suppress_internal_node_taxa=True suppress_leaf_node_taxa=True

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.