Comments (6)
Hi Oliver,
I found the issue, and it's definitely fixed now!
Cheers,
Jisca
from sequoia.
Hi Oliver,
Thanks for the bug report! The ones that only give problems for a few specific parameter combinations, and then only in a small proportion of replicates, are by far the hardest to find & fix.
I'll go over the code to see if I can spot the problem, but since this error is generated by a low-level function that's called nearly a hundred times in the Fortran code, I am not 100% sure that that will work. Could you perhaps email me the parameters / input / markdown chunk you used? I.e. enough info so that I can run it a few hundred times until it hits the error?
Cheers,
Jisca
from sequoia.
Hi Jisca,
I reran my code and modified to print out the genotype matrix, life history table and original pedigree for that iteration of the loop. Here is a set of inputs that produces the same error:
temp_life_hist.txt
temp_test_geno.txt
temp_test_ped.txt
The pedigree file is randomly generated with a certain amount of asexual reproduction. As such, there are individuals with only one parent. The founder's genotypes are from real individuals, then I take those and make new offspring genotypes based on the pedigree. The pedigree file has some additional information that is used in making new genotypes. In this case, there are quite a few asexually reproduced individuals in the pedigree and there are 7 generations post-founding. However, the first time I encountered this error, it was a shallow pedigree with only one or two asexually reproduced individuals.
Here is the command that produces the error from these inputs.
sequoia_out <- sequoia(GenoM=test_ped_genotypes,
LifeHistData=life_hist_sim,
Module="ped",
Tfilter = -5,
quiet=T,
args.AP=list(Discrete = TRUE))
Best,
Ollie
Edit: here's another set of input files that consistenly produce the error
temp_test_geno2.txt
temp_life_hist2.txt
temp_test_ped2.txt
from sequoia.
Hi Oliver,
I've put an updated version of the package on here, but it is not a complete fix.
I have been getting the same error occasionally during the simulations I always run before uploading a new version to CRAN. It's the same issue as you had: I got an error but by default don't save the simulated genotypes; I just ran the same parameter combinations 200 times without getting the error again.
I'll let you know when I have a (hopefully) definite complete fix.
Cheers,
Jisca
from sequoia.
Thanks for that Jisca.
If it's any help, it appears to be a deterministic problem with specific simulated data. That is to say, re-running the program with the same input data always produces the error for me.
Is the installation method for the recently updated version any different to what is listed on the README file? I am trying remotes::install_github("JiscaH/sequoia", ref="stable")
but it is not working:
Error in utils::download.file(url, path, method = method, quiet = quiet, :
cannot open URL 'https://api.github.com/repos/JiscaH/sequoia/tarball/stable'
Best,
Ollie
from sequoia.
Hi Oliver,
Installation without 'ref="stable" ' should work!
And sequoia is fully deterministic - same input always gives same output. But with some bugs (esp. subscript out of array bounds), whether or not it gives an error may very rarely depend on the data you ran before, unless you use special debugging tools.
from sequoia.
Related Issues (17)
- Fortran runtime error on Ubuntu 16.04 HOT 6
- Sequoia no longer on CRAN HOT 1
- Known crosses as prior info HOT 1
- R version for sequoia HOT 2
- Sequoia running forever HOT 2
- installation of package ‘/var/folders/dc/5j3hs53s2cn0lhr1ps49slfw0000gn/T//RtmpNYHr2z/file1c0916e8a227/sequoia_2.3.3.tar.gz’ had non-zero exit status HOT 1
- Incorrect "impossible" relationships in CalcPairLL HOT 3
- Silly question for a very usefull package HOT 2
- Feature Request: Generation Time HOT 5
- Sequoia crashes when embedded in "loop for" in R HOT 7
- Error from R when trying to export dataset after a sequoia run. HOT 2
- Error in SeqParSib : 'AgePriors' matrix should have size nAgeClasses * 8 HOT 2
- Option suggestion "Overlapping=T or F" & Analysis questions HOT 1
- segmentation fault error in Sequoia HOT 4
- sequoia error can't find ErrM HOT 1
- ErrM not found with DuplicateCheck HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sequoia.