StandardChromNameNew: Standardize the chromosome name annotations for a data frame.

View source: R/chromosome_name_functions.R

StandardChromNameNewR Documentation

Standardize the chromosome name annotations for a data frame.

Description

Standardize the chromosome name annotations for a data frame.

Usage

StandardChromNameNew(df, name.of.VCF = NULL)

Arguments

df

An in-memory data.frame representing a VCF.

name.of.VCF

Name of the VCF file.

Value

A list with the elements

  • df a data frame with variants that had "legal" chromosome names (see below for illegal chromosome names). Leading "chr" strings are removed.

  • discarded.variants: Non-NULL only if there variants with illegal chromosome names; these are names that contain the strings "GL", "Hs", "KI", "M", "random".


ICAMS documentation built on June 22, 2024, 6:47 p.m.