Skip to content
ODiogoSilvaPublic

About

Principal component analysis of SNP data with interactive plot

Resources

Stars

8 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

vcf2PCA

Principal component analysis of SNP data with the creation of an interactive plot

Requirements

vcf2PCA requires R and the following libraries:

  • SNPRelate
  • plotly

Installation

# SNPRelate
source("https://bioconductor.org/biocLite.R")
biocLite("SNPRelate")
install.packages("plotly")

Usage

vcf2PCA <vcf_file> <output_name> <pop_file (optional)>

The optional <pop_file> is a comma separated file with the name of the taxon in the first column and the corresponding group in the second column. Example:

TaxonA, Group1
TaxonB, Group1
TaxonC, Group2
.
.
.

Output example:

About

Principal component analysis of SNP data with interactive plot

Resources

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages