Created
December 12, 2017 18:56
-
-
Save allgenesconsidered/9b6021e0bebf3431081c5ea7fd475362 to your computer and use it in GitHub Desktop.
Generate dendrogram from samples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library("SNPRelate") | |
| snpgdsVCF2GDS(vcf.fn = "~/Desktop/dom_neg_genes_chr11_only/domneg_filtered_variants.vcf", out.fn = "~/Desktop/my.gds") | |
| snpgdsSummary("~/Desktop/my.gds") | |
| genofile <- openfn.gds("~/Desktop/my.gds") | |
| ibs.hc <- snpgdsHCluster(snpgdsIBS(genofile, num.thread=2)) | |
| rv <- snpgdsCutTree(ibs.hc) | |
| plot(rv$dendrogram, leaflab="textlike", main="DN Sample Clustering From Chr11 Varients") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment