Learn R Programming

RareVariantVis (version 1.6.2)

multipleVis: Interactive visualization of rare variants on the chromosome, applicable for multiple files

Description

Reads files containing table of rare variants from one chromosome and provides adequate multiple sample visualization. Input files can be obtained from function chromosomeVis. Function outputs visualization html figure in current working directory. Figure depicts samples in subfigures. 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.

Usage

multipleVis(filesList,filesOrder,sampleNames,chromosome,centromeres,inHouse,inHouseSampNr)

Arguments

filesList
a string indicating files names that includes input files
filesOrder
vector including integers specifying order of displayed files. Default is 1:n, where n is number of files
sampleNames
a vector of strings including sample names. Default is names of the files
chromosome
a numeric value giving the analyzed chromosome number
centromeres
a data frame providing location of centromeres on chromosomes
inHouse
a logical value, if TRUE, creating inhouse table in .txt file, if FALSE, case is ignored
inHouseSampNr
a numeric value giving the threshold of variant repetition. Samples above this value are stored in inhouse table

Value

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

Examples

Run this code
dummyMother = MotherRareVariantsChr21
dummyFather = FatherRareVariantsChr21
filesList = c(MotherRareVariantsChr21, SonRareVariantsChr21,
FatherRareVariantsChr21, dummyMother, dummyFather)
filesOrder = c(1, 2, 3, 4, 5)
sampleNames = c('Mother', 'Son', 'Father', 'dummyMother', 'dummyFather')
multipleVis(filesList, filesOrder, sampleNames, 21, centromeres = CentromeresHg19,
inHouse = TRUE, inHouseSampNr = 5)

Run the code above in your browser using DataLab