Splice junction data.frame summary
spliceGR2junctionDF( spliceGRgene, exonsGR, spliceBuffer = 3, geneExonSep = "(:|_exon)", useOnlyValidEntries = FALSE, renameTooFar = TRUE, scoreColname = "score", sampleColname = "sample_id", flipNegativeStrand = TRUE, returnGRanges = FALSE, verbose = FALSE, ... )
spliceGRgene | GRanges object containing splice junctions, where
the |
---|---|
exonsGR | GRanges object containing flattened exons by gene,
as is provided by |
spliceBuffer | integer distance allowed from a compatible exon boundary, for a junction read to be snapped to that boundary. |
useOnlyValidEntries | logical indicating whether to remove junctions that do not align with a compatible exon boundary. |
renameTooFar | logical indicating whether junctions are named by the nearest exon boundary and the distance to that boundary. |
scoreColname, sampleColname | colnames in |
flipNegativeStrand | logical indicating whether to flip the
orientation of negative strand features when matching exon
boundaries. This argument is passed to |
returnGRanges | logical indicating whether to return GRanges,
or by default, |
verbose | logical indicating whether to print verbose output. |
... | additional arguments are ignored. |
This function takes a GRanges object representing multiple splice
junction ranges, with associated scores, and returns a data.frame
summary of junctions with annotated boundaries using a set
of gene exon models. Junctions whose ends are within spliceBuffer
distance are combined, and the scores are summed.
By default, junctions not within spliceBuffer
of a compatible exon
boundary are named by the nearest exon boundary, and the distance
upstream or downstream from the boundary.
Multiple samples can be processed together, and the results will
be aggregated within each sample, using sampleColname
. The results
in that case may be cast to wide format using nameFromTo
as the
row identifier, score
as the value column, and sampleColname
as
the new column headers.
Other jam RNA-seq functions:
assignGRLexonNames()
,
closestExonToJunctions()
,
combineGRcoverage()
,
defineDetectedTx()
,
detectedTxInfo()
,
exoncov2polygon()
,
flattenExonsBy()
,
getGRcoverageFromBw()
,
groups2contrasts()
,
internal_junc_score()
,
makeTx2geneFromGtf()
,
make_ref2compressed()
,
prepareSashimi()
,
runDiffSplice()
,
sortSamples()
Other jam GRanges functions:
addGRLgaps()
,
addGRgaps()
,
annotateGRLfromGRL()
,
annotateGRfromGR()
,
assignGRLexonNames()
,
closestExonToJunctions()
,
combineGRcoverage()
,
exoncov2polygon()
,
findOverlapsGRL()
,
flattenExonsBy()
,
getFirstStrandedFromGRL()
,
getGRLgaps()
,
getGRcoverageFromBw()
,
getGRgaps()
,
grl2df()
,
jam_isDisjoint()
,
make_ref2compressed()
,
sortGRL()
,
stackJunctions()