Description Usage Arguments Value Author(s) Examples
Compute GC content for each bin
1 | get_gc(ref, hgref = "hg19")
|
ref |
GRanges object returned from |
hgref |
reference genome. This should be 'hg19', 'hg38' or 'mm10'.
Default is human genome |
gc |
Vector of GC content for each bin/target |
Rujin Wang rujin@email.unc.edu
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Not run:
library(WGSmapp)
library(BSgenome.Hsapiens.UCSC.hg38)
bamfolder <- system.file('extdata', package = 'WGSmapp')
bamFile <- list.files(bamfolder, pattern = '*.dedup.bam$')
bamdir <- file.path(bamfolder, bamFile)
sampname_raw <- sapply(strsplit(bamFile, '.', fixed = TRUE), '[', 1)
bambedObj <- get_bam_bed(bamdir = bamdir,
sampname = sampname_raw,
hgref = "hg38")
bamdir <- bambedObj$bamdir
sampname_raw <- bambedObj$sampname
ref_raw <- bambedObj$ref
gc <- get_gc(ref_raw, hgref = "hg38")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.