Code Monkey home page Code Monkey logo

Comments (8)

rneher avatar rneher commented on June 14, 2024

Your alignment didn't load. see the second line of the output. But thanks for pointing it out -- I have to improve error handling.

from treetime.

idolawoye avatar idolawoye commented on June 14, 2024

Do you have any idea why the alignment did not load? I tried phylip and aln file formats so I don't understand why it wont read any of them.
I also tried using python by importing TreeAnc from treetime but here is the error that came up:

>>> from treetime import TreeAnc
Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    from treetime import TreeAnc
ImportError: cannot import name 'TreeAnc'

from treetime.

rneher avatar rneher commented on June 14, 2024
  1. it checks whether it can read them as fasta, phylib-relaxed or nexus.
    https://github.com/neherlab/treetime/blob/master/treetime/treeanc.py#L271
    Try loading your alignment with Bio.AlignIO.read first.
  2. are you sure you are using the right python distribution? The previous script evidently loaded TreeAnc

from treetime.

idolawoye avatar idolawoye commented on June 14, 2024

Bio.AlignIO.read was able to load the alignment file just fine.

from treetime.

rneher avatar rneher commented on June 14, 2024

sorry. I only ever tested fasta format. there was an obvious problem reading other formats than fasta. I just pushed a fix in a0ca5b5. You can either reinstall HEAD, or use fasta format.

from treetime.

idolawoye avatar idolawoye commented on June 14, 2024

Alright, thank you.

from treetime.

rneher avatar rneher commented on June 14, 2024

thanks, my bad! very useful to get these reports.

from treetime.

idolawoye avatar idolawoye commented on June 14, 2024

Thanks for helping out too. Will try using a fasta format

from treetime.

Related Issues (20)

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.