emptyRanges: Generate empty genomic ranges

Description Usage Arguments Value Note See Also Examples

View source: R/emptyRanges.R

Description

Utility function that provides support for creating internal GRanges for transgene and FASTA spike-in sequences.

Usage

1
2
3
4
5
emptyRanges(
  names,
  seqname = c("unknown", "transgene", "spike"),
  mcolnames = NULL
)

Arguments

names

character. Gene or transcript names.

seqname

character(1). Name of the alternative chromosome to be defined in seqnames where these ranges will be grouped. Defaults to "unknown" but "transgene" (transgenes) and "spike" (spike-ins) are also supported.

mcolnames

character or NULL. Metadata column names to be defined in the mcols of the GRanges return. Normally this does not need to be defined; useful when combining with another GRanges that contains metadata.

Value

GRanges.

Note

Updated 2019-08-21.

See Also

help("seqinfo", "GenomeInfoDb").

Examples

1
2
3
4
5
6
7
8
## Unknown/dead genes.
emptyRanges("ENSG00000000000", seqname = "unknown")

## Transgenes.
emptyRanges(c("EGFP", "TDTOMATO", "GAL4"), seqname = "transgene")

## Spike-ins.
emptyRanges("ERCC", seqname = "spike")

acidgenomics/freerange documentation built on Jan. 8, 2020, 3:45 a.m.