Learn R Programming

rCNV

rCNV: An R package for detecting copy number variants from SNPs data

Piyal Karunarathne, Qiujie Zhou, Klaus Schliep, and Pascal Milesi

rCNV was designed to identify duplicates (CNV) from SNPs data with ease.

For a comprehensive tutorial on the package, go to https://piyalkarum.github.io/rCNV/ and navigate to “Get started” where all the functions and usage are explained with ample examples.

Installation

install.packages("rCNV")
  • You can install the development version of rCNV from GitHub with:
    if (!requireNamespace("devtools", quietly = TRUE)) 
        install.packages("devtools") 
    devtools::install_github("piyalkarum/rCNV", build_vignettes = TRUE)

Please don’t forget to cite us if you use the package.

How to cite

  • Karunarathne P, Zhou Q, Schliep K, Milesi P. A comprehensive framework for detecting copy number variants from single nucleotide polymorphism data: 'rCNV', a versatile r package for paralogue and CNV detection. Mol Ecol Resour. 2023 Jul 29. doi:http://doi.org/10.1111/1755-0998.13843

  • Karunarathne, P., Zhou, Q., Schliep, K., & Milesi, P. (2022). A new framework for detecting copy number variants from single nucleotide polymorphism data: ‘rCNV’, a versatile R package for paralogs and CNVs detection. BioRxiv, 2022.10.14.512217. doi:http://doi.org/10.1101/2022.10.14.512217

Copy Link

Version

Install

install.packages('rCNV')

Monthly Downloads

225

Version

1.3.0

License

AGPL (>= 3)

Maintainer

Piyal Karunarathne

Last Published

September 20th, 2024

Functions in rCNV (1.3.0)

allele.freq

Generate allele frequency table for individuals or populations
cnv

Find CNVs from deviants
ad.correct

Correct allele depth values
depthVsSample

Simulate median allele ratios for varying number of samples and depth values
maf

Remove MAF allele
hetTgen

Generate allele depth or genotype table
vcf.stat

Get sequencing quality statistics of raw VCF files (with GatK generated vcf files only)
vst

Calculate population-wise Vst
sim.als

Simulate Allele Frequencies
dupGet

Detect deviants from SNPs; classify SNPs
readVCF

Import VCF file
cpm.normal

Calculate normalized depth for alleles
relatedness

Determine pairwise relatedness
ADnorm

Normalized allele depth example data
norm.fact

Calculate normalization factor for each sample
ADtable

Allele Depth (AD) example data
power.bias

Simulate and plot detection power of bias in allele ratios
dup.validate

Validate detected deviants/cnvs
h.zygosity

Determine per sample heterozygosity and inbreeding coefficient
allele.info

Get allele information for duplicate detection
gt.format

Format genotype for BayEnv and BayPass
alleleINF

Allele info example data
dup.plot

Plot classified SNPs into deviants/CNVs and non-deviants/non-CNVs
sig.hets

Identify significantly different heterozygotes from SNPs data
exportVCF

Export VCF files
get.miss

Get missingness of individuals in raw vcf
vstPermutation

Run permutation on Vst