EvolEcolGroup / tidypopgen

https://evolecolgroup.github.io/tidypopgen/
GNU General Public License v3.0
1 stars 0 forks source link

Import and tidy ADMIXTURE output #17

Open dramanica opened 4 months ago

dramanica commented 4 months ago

We want to have a function that allows us to import the output from ADMIXTURE. The expected path would be: 1) generate a BED from a gen_tibble (after filtering/clumping for LD) 2) run ADMIXTURE in bash as usual 3) in R, use a simple gt_import_admixture which reads in the admixture files and creates a sensible structure, with class gt_admixture. We might want to consider a super-class gt_cluster which would then allow us to recycle tidiers and autoplot for all clustering approaches. 4) Operate with that object via tidy, augment and autoplot Things to do:

dramanica commented 1 month ago

Ok, basic functions and an example with LEA are now in the main branch of tidypopgen. Ideally, we should create a run of ADMIXTURE for an example dataset, and write a function to make it easy to import a Q file into the right kind of object for everything else to work.