bed2gene: Annotate BED file with gene names

Description Usage Arguments Value Author(s) See Also Examples

View source: R/Bed2Gene_funcs.R

Description

Annotate BED file with gene names based on overlap between the BED interval and coding exons

Usage

1
2
3
4
5
6
7
8
9
bed2gene(
  file,
  genes = c(),
  geneFile = "",
  prefix = "",
  outDir = pwd(),
  build = "hg19",
  rmChrM = TRUE
)

Arguments

file

BED file

genes

Only output and annotation for intervals that overlap genes in list. Default is an empty vector which results in all genes being output. (optional)

geneFile

File containing genes. Only output and annotation for intervals that overlap genes in the file will be output. Alternately, genes can be entered using the gene argument. (optional)

prefix

Prefix for output files (optional)

outDir

Output directory. If not given results will be printed to pwd(). (optional)

build

Build reference for the position coordingates int he BED file (hg19 or hg38)

rmChrM

Indicates if mitochondrial genes should be output and annotated (TRUE/FALSE)

Value

Null

Author(s)

Andrew Skol, askol@luriechildrens.org

See Also

gene2bed

Examples

1
bed2gene(file = "MyBedFile.bed", prefilx = "myGenes.bed", rmChrM=TRUE)

askol-lurie/Bed2GeneRPackage documentation built on Dec. 31, 2020, 7:52 p.m.