bed_to_granges: Read bedfile into GRanges

Description Usage Arguments Value See Also Examples

View source: R/04_bed_to_granges.R

Description

Read bedfile into GRanges

Usage

1
2
3
4
5
6
7
8
bed_to_granges(
  bedfile,
  genome,
  txdb = NULL,
  do_order = TRUE,
  plot = TRUE,
  verbose = TRUE
)

Arguments

bedfile

file path

genome

string: UCSC genome name (e.g. 'mm10')

txdb

NULL (default) or TxDb-class (used for gene annotation)

do_order

TRUE (default) or FALSE: order on seqnames and star?

plot

TRUE (default) or FALSE: plot karyogram?

verbose

TRUE (default) or FALSE

Value

GRanges-class

See Also

char_to_granges, genes_to_granges

Examples

1
2
3
bedfile  <- system.file('extdata/SRF.bed', package = 'multicrispr')
bsgenome <- BSgenome.Mmusculus.UCSC.mm10::BSgenome.Mmusculus.UCSC.mm10
(gr <- bed_to_granges(bedfile, genome='mm10'))

multicrispr documentation built on Nov. 8, 2020, 5:10 p.m.