GithubHelp home page GithubHelp logo

storeylab / alstructure Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 2.0 13.16 MB

An R package that implements the ALStructure algorithm for estimating the admixture model of genetic population structure

License: MIT License

R 6.96% HTML 93.04%

alstructure's People

Contributors

cabrerosic avatar jdstorey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

alstructure's Issues

Error in eigen(Wm) : infinite or missing values in 'x'

When using the function estimate_d(), if there is missing data in the x matrix I get the error from the bug title:
Error in eigen(Wm) : infinite or missing values in 'x'

I know this might not be easy, but SNP matrices frequently contain some % of missing data.
Is there any way to work around the issue in order to perform a d_hat estimation in the presence of missing data?
Thank you in advance!

download error

Downloading GitHub repo storeylab/alstructure@master
0 [main] tar 12172 fstab_read_flags: invalid fstab option - '0'
Error: Does not appear to be an R package (no DESCRIPTION)

Non Bi-allelic data

Can ALStructure handle non biallelic data?
The matrix used as input in the examples contains 0 (homozygous "a"), 1 (heterozygous) and 2 (homozygous "A"). But what about a tri-allelic SNP? How should this be represented?
I have tried to convert a VCF file with known tri-allelic SNPs to .bed using PLINK to see how the example from ALStructure would handle it (lfa::read.bed()), but it was pointless. PLINK will consider anything different from the above cases as missing data.
I have tested, and it is possible to load a matrix into ALStructure that contains more than 0, 1 and 2 values. But does it make any sense regarding ALStructure's algorithm?
Thank you in advance!

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.