Skip to content

Principal component analysis of SNP data with interactive plot

Notifications You must be signed in to change notification settings

ODiogoSilva/vcf2PCA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages