Keen and Reliable Interface Subroutines for Bioinformatic Analysis

Provides functions for bioinformatic analysis: calculating linear principal components from numeric data and single-nucleotide polymorphism (SNP) datasets, calculating the fixation index (Fst) with the Hudson method , creating scatter plots in 3 views, handling the 'PLINK' binary file format, detecting rough structures and outliers with unsupervised clustering, and calculating matrix multiplication faster for big data.


KRIS

R-CMD-check CRANstatus License:MIT Lifecycle:maturing FOSSAStatus

KRIS (Keen and Reliable Interface Subroutines for bioinformatic analysis) is an R package for common steps in the analysis of numeric and SNP data. It can:

  • calculate linear principal components (PCA) from numeric or SNP data
  • calculate the fixation index (Fst) between two groups with the Hudson method
  • draw scatter plots of 3 variables in three views
  • read and write binary PLINK files (BED, BIM and FAM)
  • find rough structure and outliers with unsupervised clustering
  • multiply large matrices by their transpose in blocks

Installation

Install the released version from CRAN:

install.packages("KRIS")

Or install the development version from GitHub:

install.packages("remotes")
remotes::install_github("kridsadakorn/kris", dependencies = TRUE)

Documentation

The reference manual is at https://www.biostatgen.org/kris/.

Example

Load the package and the example data:

library(KRIS)

data(example_SNP)

example_SNP holds two objects: the simulated SNP data simsnp and the population label of each individual, sample_labels.

summary(simsnp)
#>          Length Class      Mode   
#> snp      206000 -none-     numeric
#> snp.info      6 data.frame list   
#> ind.info      6 data.frame list
summary(sample_labels)
#>    Length     Class      Mode 
#>       103 character character

Calculate the first three principal components:

PCs <- cal.pc.linear(simsnp$snp, no.pc = 3)

Plot them in three views, colored by population:

plot3views( PCs$PC, sample_labels)

License

FOSSAStatus

About

  • Prof. Kristel Van Steen, visit
  • Kridsadakorn Chaichoompu, visit

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("KRIS")

1.1.14 by Kridsadakorn Chaichoompu, a day ago


https://github.com/kridsadakorn/kris


Report a bug at https://github.com/kridsadakorn/kris/issues


Browse source code at https://github.com/cran/KRIS


Authors: Kridsadakorn Chaichoompu [aut, cre] (ORCID: , Kristel Van Steen [aut] (ORCID: , Fentaw Abegaz [aut] , Sissades Tongsima [aut] (ORCID: , Philip James Shaw [aut] , Anavaj Sakuntabhai [aut] (ORCID: , Luisa Pereira [aut]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports rARPACK, grDevices, graphics, stats, utils

Suggests testthat


Imported by FILEST.


See at CRAN