Learn R Programming

ICAMS (version 2.2.4)

StandardChromNameNew: 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

A data frame whose first column contains the Chromosome name

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".