template_alleles.read_table: Return all alleles matching a read template

View source: R/read_table.R

template_alleles.read_tableR Documentation

Return all alleles matching a read template

Description

Return all alleles matching a read template

Usage

template_alleles.read_table(template, df, match = F)

Arguments

template

A logical vector

df

a read table

match

if T then only return alleles that comprise an entire read. if F then return all alleles that comprise any subsequence of a read.

Details

a template is a logical vector of length equal to the number of positions in the read table and with T corresponding to nucleotide positions that are part of the template.

Value

A named numeric vector with entries giving allele counts and names giving alleles


SLeviyang/RegressHaplo documentation built on June 1, 2022, 10:48 p.m.