Git Product home page Git Product logo

simulation-ratevariation's People

Contributors

cecileane avatar laufran avatar

Stargazers

 avatar

Watchers

 avatar

simulation-ratevariation's Issues

version number

Which versions of SiPhyNetwork and of ape are you using? (or which commit for SiPhyNetwork)?

When I tried to run your jupyter notebook, I couldn't use SiPhyNetwork, so I upgraded my version of R and RStudio... which led me to several hours trying to compile packages. I was finally able to re-install SiPhyNetwork. And now your jupyter notebook throws me an error, which traces back to R"write.net(net, tol=1e-12)" .

calcPatternCounts in calcD.jl MethodError

I'm trying the following example that we use in the docstrings and getting a MethodError:

> file = "scripts/examples/tinyexample.fasta"
> calcPatternCounts(file, ["P2","P5","P3","P1"])
MethodError: Cannot `convert` an object of type LongAA to an object of type String
Closest candidates are:
  convert(::Type{String}, ::String) at essentials.jl:210
  convert(::Type{String}, ::WeakRefStrings.WeakRefString) at /Users/laurenfrankel/.julia/packages/WeakRefStrings/AN9bY/src/WeakRefStrings.jl:81
  convert(::Type{String}, ::FilePathsBase.AbstractPath) at /Users/laurenfrankel/.julia/packages/FilePathsBase/qgXdE/src/path.jl:117
  ...

Stacktrace:
 [1] calcPatternCounts(file::String, taxa::Vector{String}, nsites_perlocus::Nothing; ambig::Symbol)
   @ Main ~/Desktop/Ane/simulation-ratevariation/scripts/calcD.jl:86
 [2] calcPatternCounts (repeats 2 times)
   @ ~/Desktop/Ane/simulation-ratevariation/scripts/calcD.jl:78 [inlined]
 [3] top-level scope
   @ In[2]:2
 [4] eval
   @ ./boot.jl:360 [inlined]
 [5] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)
   @ Base ./loading.jl:1116

Seems to be an error in line 86 of calcD.jl: alg[i] = LongDNASeq(convert(String, alg[i])) while trying to Convert. Perhaps due to me upgrading packages in the last week?

I try with other fastas that I've simulated and it seems to work so I'm not sure what the deal is.

> calcPatternCounts("output/fourtaxa_sequence.fasta", ["t1", "t2", "t7", "t4"])
([1000], [28], [25], [25])

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.