getGRcoverageFromBw | R Documentation |
Get coverage for GRanges from bigWig files
getGRcoverageFromBw(
gr,
bwUrls,
addGaps = FALSE,
gap_feature_type = "gap",
default_feature_type = "exon",
feature_type_colname = "feature_type",
use_memoise = FALSE,
memoise_coverage_path = "coverage_memoise",
do_shiny_progress = FALSE,
verbose = FALSE,
...
)
gr |
GRanges object |
bwUrls |
character vector of full file paths or web URLs
to bigWig files, suitable for use by |
addGaps |
logical indicating whether gaps between GRanges
should be added to the query. Gaps are determined using
|
feature_type_colname , gap_feature_type , default_feature_type |
When |
use_memoise |
logical indicating whether to use |
memoise_coverage_path |
character path to file folder
used to store coverage data in memoise cache files.
By default, the folder is a subfolder of
the current working directory (see |
do_shiny_progress |
logical indicating whether to update
shiny progress bar, using |
verbose |
logical indicating whether to print verbose output. |
... |
additional arguments are ignored. |
This function takes a GRanges object to define genomic regions,
for which coverage data is loaded for each bwUrls
input file.
Note that this function uses rtracklayer::import.bw()
which
they describe does not work on the Windows platform.
Update in version 0.0.68.900: This function was updated in two
subtle ways, to work around a bug in rtracklater::import.bw()
,
which returns data sorted by chromosome in the order it is indexed
in the bigWig file, then within each chromosome entries are returned
in the order requested. This getGRcoverageFromBw()
was updated to:
Confirm input gr
GRanges contains names, or assigns names
as needed.
The output coverage from rtracklayer::import.gw()
is ordered
by names(gr)
to confirm the output coverage is returned in the
identical order as requested.
The updates above were done outside the scope of memoise file caching,
so that stored coverage cache files will still be valid, but the
order of named entries from the cache will be dependent upon the
order requested. In the event the cache coverage contains no names,
they will be returned in the same order as stored, however it is
possible the cache will be invalidated by the addition of names
to gr
, though unclear exactly how deeply memoise checks such things.
DataFrame object, whose colnames are defined using
either names(bwUrls)
or by jamba::makeNames(basename(bwUrls))
then removing the .bw
or .bigWig
file extension,
case-insensitively.
Each column is type IRanges::NumericList-class
which is a
list of numeric coverage values.
Other jam GRanges functions:
addGRLgaps()
,
addGRgaps()
,
annotateGRLfromGRL()
,
annotateGRfromGR()
,
assignGRLexonNames()
,
closestExonToJunctions()
,
combineGRcoverage()
,
exoncov2polygon()
,
findOverlapsGRL()
,
flattenExonsBy()
,
getFirstStrandedFromGRL()
,
getGRLgaps()
,
getGRgaps()
,
grl2df()
,
jam_isDisjoint()
,
make_ref2compressed()
,
sortGRL()
,
spliceGR2junctionDF()
,
stackJunctions()
Other jam RNA-seq functions:
assignGRLexonNames()
,
closestExonToJunctions()
,
combineGRcoverage()
,
defineDetectedTx()
,
detectedTxInfo()
,
exoncov2polygon()
,
flattenExonsBy()
,
groups2contrasts()
,
internal_junc_score()
,
makeTx2geneFromGtf()
,
make_ref2compressed()
,
prepareSashimi()
,
runDiffSplice()
,
sortSamples()
,
spliceGR2junctionDF()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.