Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

CheckAndFixChrNamesForTransRanges

Check and, if possible, correct the chromosome names in a trans.ranges data.table


Description

Check and, if possible, correct the chromosome names in a trans.ranges data.table

Usage

CheckAndFixChrNamesForTransRanges(
  trans.ranges,
  vcf.df,
  ref.genome,
  name.of.VCF = NULL
)

Arguments

trans.ranges

A data.table which contains transcript range and strand information. Please refer to TranscriptRanges for more details.

vcf.df

A VCF as a data.frame. Check the names in column CHROM.

ref.genome

The reference genome with the chromosome names to check vcf.df$CHROM against; must be a Bioconductor BSgenome, e.g. BSgenome.Hsapiens.UCSC.hg38.

name.of.VCF

Name of the VCF file.

Value

If the vcf.df$CHROM values are correct or can be corrected, then a vector of chromosome names that can be used as a replacement for trans.ranges$chrom. If the names in vcf.df$CHROM cannot be made to be consistent with the chromosome names in trans.ranges$chrom, then stop.


ICAMS

In-Depth Characterization and Analysis of Mutational Signatures ('ICAMS')

v2.3.10
GPL-3 | file LICENSE
Authors
Steve Rozen, Nanhai Jiang, Arnoud Boot, Mo Liu, Yang Wu
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.