parseSegLap: parseSegLap

Description Usage Arguments Value Author(s) Examples

View source: R/simGenotypeInternal.R

Description

Add the column lap and seg to the snv dataframe from parseStatMinFreq Here lap is lower allele proportion for the snv in the sample (not minimal allele freq in the population)

Usage

1
parseSegLap(mysegs, snv, seqError = 0.001/3, dProp = NA)

Arguments

mysegs

a list of data.frame, from one chr only with at least the column start, end, lap. If the segments come from Facets lap = lcn.em / tcn.em

snv

a data.frame

seqError

numeric lap for the other alleles for the homozygote Default: 0.001/3

dProp

numeric value of lap out of the segments Default: NA

Value

a data.frame the snv from the input plus column lap and seg (the index of the segments)

Author(s)

Pascal Belleau, Astrid Deschenes and Alexander Krasnitz

Examples

1
# TODO

belleau/simAnc documentation built on June 11, 2021, 9:09 p.m.