Learn R Programming

RareVariantVis (version 1.6.2)

trioVis: Interactive visualization of rare variants on the chromosome, applicable for trio data

Description

Reads files containing table of rare variants from one chromosome and provides adequate trio visualization. Input files can be obtained from function chromosomeVis. Function outputs visualization html figure in current working directory. Figure depicts three samples in subfigures: mother, index and father. Subfigures illustrate variants (dots) in their genomic coordinates (x axis). Ratio of alternative reads and depth (y axis) gives information about type of variant: homozygous alternative (expected ratio 1) and heterozygous (expected ratio 0.5). Zoom to the figures is possible, by marking the region of interest with mouse left click. Right click induces zoom out and return to the original plot. Pointing on variants provides basic information about the variant - gene name and position on chromosome. Some variants are clustering, especially in polymorphic genomic regions like HLA or MUC. Some of this regions are also technical sequencing artefacts. If variant belongs to such region (has more than 3 rare non-synonymous coding variants in region 100 000 bases to the left and to the right from variant) it is denoted as problematic region variant. It is also denoted as such in output text file.

Usage

trioVis(fileMother, fileIndex, fileFather, sampleMother, sampleIndex, sampleFather, chromosome, centromeres)

Arguments

fileMother
a connection or a character string giving the name of the file with mother variants to load. File should include tab delimited text file with columns: Start.position - for location on chromosome, SNP.Frequency - for dbSNP frequency, DP - sequencing depth, AD - allelic depths for reference and alternative alleles, Gene.name - gene symbol.
fileIndex
a connection or a character string giving the name of the file with mother variants to load. File should include tab delimited text file with columns: Start.position - for location on chromosome, SNP.Frequency - for dbSNP frequency, DP - sequencing depth, AD - allelic depths for reference and alternative alleles, Gene.name - gene symbol.
fileFather
a connection or a character string giving the name of the file with mother variants to load. File should include tab delimited text file with columns: Start.position - for location on chromosome, SNP.Frequency - for dbSNP frequency, DP - sequencing depth, AD - allelic depths for reference and alternative alleles, Gene.name - gene symbol.
sampleMother
character string giving the mother sample name
sampleIndex
character string giving the index sample name
sampleFather
character string giving the father sample name
chromosome
a numeric value giving the analyzed chromosome number
centromeres
a data frame providing location of centromeres on chromosomes

Value

comp1
function returns html visualization file for trio and txt file with inheritance annotated rare variants

Examples

Run this code
trioVis(MotherRareVariantsChr21, SonRareVariantsChr21, FatherRareVariantsChr21, "Mother", "Son",
"Father", 21, CentromeresHg19)

Run the code above in your browser using DataLab