cecileane / simulation-ratevariation Goto Github PK
View Code? Open in Web Editor NEWSimulations of gene trees with rate variation
Simulations of gene trees with rate variation
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)"
.
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])
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.