CensorLowDepth: A function to replace genotype data with low depth by NA

Description Usage Arguments Value Examples

Description

A function to replace genotype data with low depth by NA

Usage

1
CensorLowDepth(gt, dp, min.depth, verbose = TRUE)

Arguments

gt

A dataframe to process (e.g. a genotype dataframe)

dp

A dataframe from which the depth of gt will be extracted (e.g. a depth dataframe)

min.depth

Integer. The minimum depth of each gt cells, under wich the data will be replaced by NA

verbose

Logical. If TRUE (default), report status of the process along the execution

Value

A list of dataframes. list$gt is gt with NA instead of the data with low depth. list$dp is dp with NA instead of the low values of depth.

Examples

1
2
3
4
5
## Not run: 
censorLowDepth(genotype, depth, 4)
censorLowDepth(genotype, depth, 4, verbose = FALSE)

## End(Not run)

laurentlab-mpipz/rsurvival documentation built on May 29, 2019, 9:14 a.m.