Learn R Programming

⚠️There's a newer version (3.1.2) of this package.Take me there.

cape (version 2.0.2)

Combined Analysis of Pleiotropy and Epistasis

Description

Combines complementary information across multiple related phenotypes to infer directed epistatic interactions between genetic markers. This analysis can be applied to a variety of engineered and natural populations.

Copy Link

Version

Install

install.packages('cape')

Monthly Downloads

318

Version

2.0.2

License

GPL-3

Maintainer

Anna L Tyler

Last Published

June 9th, 2016

Functions in cape (2.0.2)

filter.maf

Filter markers by minor allele frequency.
filter.hwe

Filter markers by Hardy-Weinberg equilibrium
calc.delta.errors

Error propagation
direct.influence

Calculate the significance of direct influences of variant pairs on phenotypes
calc.p

Calculate P Values for Interactions Based on Permutations
delete.pheno

Remove phenotypes from the phenotype matrix
error.prop

Estimate Errors of Regression Coefficients
consec.pairs

Generate a matrix of consecutive pairs
get.chr.markers

Calculate a genome-wide significance threshold for the single-variant scan
genome.wide.threshold.1D.parallel

Calculate a genome-wide significance threshold for the single-variant scan using parallel computing.
get.eigentraits

Calculate eigentraits from phenotype matrix
get.layout.mat

Get the best layout matrix for a given number of panes per page.
get.geno.with.covar

Retrieve the genotype matrix with the covariates appended.
bin.vector

Bin a continuous vector into discrete values.
cape-package

Combinatorial Analysis of Epistasis and Pleiotropy
get.geno

Retrieve the genotype matrix.
get.marker.name

Get marker names from marker numbers
get.marker.num

Get marker numbers from marker names
get.covar

Get information about covariates
get.col.num

Use column titles to retrieve column numbers
get.network

get.marker.val

Get marker values
get.col

Retrieve colors for use in plotting.
get.pheno

Retrieve the genotype matrix.
genome.wide.threshold.1D

Calculate a genome-wide significance threshold for the single-variant scan
get.marker.chr

Get chromosome assignments for a vector of markers.
get.linearly.independent

Find all markers in the genotype matrix that are linearly independent
norm.pheno

Normalize and mean center phenotypes
get.marker.location

Get the chromosomal coordinate of markers
linkage.blocks.network

Calculates linkage blocks using community detection.
get.pairs.for.pairscan

Select marker pairs for pairscan based on filters
kinship.on.the.fly

Kinship correction for genotype and phenotype.
impute.missing.geno

Impute missing genotypes in measured markers.
get.marker.idx

Get the column index of markers in the genotype matrix
obesity.cross

Mouse cross data from Reifsnyder et al. (2000)
histPheno

Plot histograms of phenotypes.
make.data.obj

Generate data.obj from pheno.obj and geno.obj
kinship

Calculate all leave-one-out or leave-two-out kinship matrices.
myImagePlot

Used in plotting results of pair scan.
marker2covar

Create a covariate from a genetic marker.
one.singlescan

Runs one singlescan
pairscan

Perform regressions for all pairs of markers and all phenotypes.
plotCollapsedVarInf

Plot variant-to-variant influences
plotPheno

Plot phenotype values by individual.
plotNetwork

Plot the final epistatic network
read.pheno

pair.matrix

Given a vector of elements, create a two-column matrix listing all pairs of elements
plotSVD

Plot the results of the singular value decomposition of the phenotype matrix
pheno2covar

Create a covariate from a phenotype.
pairscan.kin

Performs a pairscan with kinship correction.
one.pairscan.parallel

Perform regression analysis for one phenotype and all pairs of markers using a kinship correction.
plotVariantInfluences

Plot variant-to-variant influences
read.geno

report.progress

Print the progress of a function to the screen
plotPairscan

select.by.chr

Subset a cross object to include only specified chromosomes.
segment.region

Divide a region into equal parts.
plotSinglescan

Plot the results of singlescan
remove.markers

Remove markers from the data.obj
rz.transform

Normalize a vector using rank normalization
read.population

pairscan.null

Generate a null distribution for the pairscan.
pairscan.noKin

Performs a pairscan without a kinship correction.
singlescan

Run the single-variant regression for all phenotypes
sortCross

Sort the genetic markers in the data.obj.
writePopulation

Write out a cape data object to .csv format.
select.markers.for.pairscan

A required step that filters variable and non-redundant markers for the pairscan
sortByThenBy

Write out a cape data object to .csv format.
writeVariantInfluences

Write the final results to a file
plotPhenoCor

Plot correlations between phenotype pairs.
qqPheno

Plot qq plots of phenotype pairs.
plotSinglescan.heat

Plot the results of singlescan as a heatmap
select.by.ind

Subset a cross object to include specific individuals
select.eigentraits

Select a subset of the eigentraits for further analysis
rotate.mat

Rotate a matrix 90 degrees clockwise
remove.ind

Remove individuals from the data.obj
select.pheno

Select phenotypes for analysis