GithubHelp home page GithubHelp logo

ojwatson / mccoilr Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 56.61 MB

Rcpp wrapper for THE REAL McCOIL

Home Page: https://ojwatson.github.io/McCOILR/

License: Other

R 1.14% C++ 1.74% CSS 0.04% HTML 97.07%

mccoilr's People

Contributors

ojwatson avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

arisp99

mccoilr's Issues

Removal of purely homozygous loci valid?

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.

Array memory problem with large datasets

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.

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.