dereneaton / ipyrad

Interactive assembly and analysis of RAD-seq data sets
http://ipyrad.readthedocs.io
GNU General Public License v3.0
70 stars 39 forks source link

Import ipyrad pca into sklearn method ? #505

Closed ptranvan closed 1 year ago

ptranvan commented 1 year ago

Hi,

I used ipyrad to import a vcf file and perform a PCA

vcffile = "test.vcf"
pca = ipa.pca(vcffile)

Now is it possible to import or transform the ipyrad pca object to a sklearn PCA()object ?

Thanks for your help

isaacovercast commented 1 year ago

ipyrad pca uses the sklearn PCA() internally, but there's not really a great way to extract this. Is there something specific you need this for that the ipyrad.pca module is not doing?

This is not really an ipyrad 'issue' more than it is a question, so I would prefer to close this issue and move the conversation to our ipyrad gitter channel, if that's okay with you.