Code Monkey home page Code Monkey logo

pcaseq's People

Contributors

jellily avatar

Watchers

 avatar

pcaseq's Issues

Allow non-Beta Weights

Make the weights parameter take a function and provide the Beta weight function as one built-in option. This means that the beta weight function needs to be added in to the name space, and the functions that take weights need to be modified. Probably also want to include a function to find the MAF as a convenience for users of the package.

The weighting function should take in a MAF and return a numeric value that is not Inf or NaN.

Return the actual SNPs used to calculate the GRM

Currently, seqPCA returns the SNPs in the data set, before filtering. Need to return the actual SNPs used to calculate the GRM. (requires changing the GRM calculation function to return the SNPs actually used).

Make popStruct handle genome data errors

Conditions to check:

  1. Letters instead of numbers
  2. Data isn't in 0,1,2 format
  3. Non-matrix (or at least cannot be converted to matrix)
  4. Missing genotypes
  5. Only one subject
  6. Only one locus

Fix SNP filtering functions

Currently, for each block of 5,000 SNPs, the SNP filtering functions throw an error if there is no remaining SNPs after filter. However, it's possible in a data set to get one block that has no remaining SNPs but still have a valid data set. Instead, for each block, there should be a warning to the user and after all the filtering is finished, check once to make sure there is still SNP data (and if not throw an error).

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.