ojwatson / mccoilr Goto Github PK
View Code? Open in Web Editor NEWRcpp wrapper for THE REAL McCOIL
Home Page: https://ojwatson.github.io/McCOILR/
License: Other
Rcpp wrapper for THE REAL McCOIL
Home Page: https://ojwatson.github.io/McCOILR/
License: Other
Perhaps we should not immediately remove loci with only homozygous calls in these lines?
##remove sites and individuals with too much missing data
simpleS = data[In_ind,]
simpleS = simpleS[,In_site]
##remove sites with P=0 or 1
P=rep(NA, ncol(simpleS))
for (j in (1:ncol(simpleS))){
temp= simpleS[,j]
P[j]= (sum(temp==1) + 0.5*sum(temp!=0 & temp!=1& temp!=-1))/sum(temp!=-1)
}
In = (P!=Inf & P!="NaN" & P!=0 & P!=1)
simpleS2= simpleS[, In]
select_pos =colnames(data)[In_site][In]
select_ind = rownames(data)[In_ind]
Perhaps it might be better to throw a warning for the user to be aware they will be removed from following MCMC, or throw an error that then prompts users to specify an additional function argument in order to force their inclusion.
Line 241 in d26f1cc
Add a parameter to control this, as it will save a lot of file memory:
int d = 2; // number of dp
// fprintf(V0, "%.*f", d, P[x]);
Both functions will fail with large data sets (>2000 by 110 SNP matrices roughly), as the containers for these are currently arrays and thus cause stack overflow issues.
Will be changed to dynamic memory allocation to overcome this.
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.