SelectVariantsByChromName: Select variants according to chromosome names specified by...

View source: R/chromosome_name_functions.R

SelectVariantsByChromNameR Documentation

Select variants according to chromosome names specified by user

Description

Select variants according to chromosome names specified by user

Usage

SelectVariantsByChromName(df, chr.names.to.process, name.of.VCF = NULL)

Arguments

df

An in-memory data.frame representing a VCF.

chr.names.to.process

A character vector specifying the chromosome names in df whose variants will be kept.

name.of.VCF

Name of the VCF file.

Value

A list with the elements

  • df: A data frame with variants only from chromosomes specified by chr.names.to.process.

  • discarded.variants: Non-NULL only if there are variants that are from chromosomes not specified by chr.names.to.process.


ICAMS documentation built on June 15, 2025, 1:08 a.m.