list_variants: List known variants

Description Usage Arguments Details Value Examples

View source: R/list_variants.R

Description

List known variants present in SNV profiles

Usage

1
list_variants(profiles, known_variants)

Arguments

profiles

The SNV profiles to analyse (list)

known_variants

The known variants to look for (dataframe)

Details

This is a function for listing known variants present in SNV profiles. Input is a list of profiles and a dataframe of known variants, containing at least the genomic locations ("chr" and "pos"). Any additional columns will be retained.

Value

A dataframe containing the known variant genotypes in each profile.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Load test data
data(test_profile_1)
data(test_profile_2)

# Create some variants to analyse
known_variants <- data.frame(chr = 1, pos = 16229, gene = "DDX11L1")

# List the known variants in each profile
profiles <- list(test_profile_1, test_profile_2)
known_variants <- list_variants(profiles, known_variants)

fasterius/seqCAT documentation built on Feb. 12, 2022, 7:24 p.m.