Find overlapping ranges for GRangesAssay objects
Source:R/iranges-methods.R
findOverlaps-methods.RdThe findOverlaps, countOverlaps methods are available for
GRangesAssay objects. This allows finding overlaps between
genomic ranges and the ranges stored in the GRangesAssay
Usage
# S4 method for class 'Vector,GRangesAssay'
findOverlaps(
query,
subject,
maxgap = -1L,
minoverlap = 0L,
type = c("any", "start", "end", "within", "equal"),
select = c("all", "first", "last", "arbitrary"),
ignore.strand = FALSE
)
# S4 method for class 'GRangesAssay,Vector'
findOverlaps(
query,
subject,
maxgap = -1L,
minoverlap = 0L,
type = c("any", "start", "end", "within", "equal"),
select = c("all", "first", "last", "arbitrary"),
ignore.strand = FALSE
)
# S4 method for class 'GRangesAssay,GRangesAssay'
findOverlaps(
query,
subject,
maxgap = -1L,
minoverlap = 0L,
type = c("any", "start", "end", "within", "equal"),
select = c("all", "first", "last", "arbitrary"),
ignore.strand = FALSE
)
# S4 method for class 'Vector,Seurat'
findOverlaps(
query,
subject,
maxgap = -1L,
minoverlap = 0L,
type = c("any", "start", "end", "within", "equal"),
select = c("all", "first", "last", "arbitrary"),
ignore.strand = FALSE
)
# S4 method for class 'Seurat,Vector'
findOverlaps(
query,
subject,
maxgap = -1L,
minoverlap = 0L,
type = c("any", "start", "end", "within", "equal"),
select = c("all", "first", "last", "arbitrary"),
ignore.strand = FALSE
)
# S4 method for class 'Seurat,Seurat'
findOverlaps(
query,
subject,
maxgap = -1L,
minoverlap = 0L,
type = c("any", "start", "end", "within", "equal"),
select = c("all", "first", "last", "arbitrary"),
ignore.strand = FALSE
)
# S4 method for class 'Vector,GRangesAssay'
countOverlaps(
query,
subject,
maxgap = -1L,
minoverlap = 0L,
type = c("any", "start", "end", "within", "equal"),
ignore.strand = FALSE
)
# S4 method for class 'GRangesAssay,Vector'
countOverlaps(
query,
subject,
maxgap = -1L,
minoverlap = 0L,
type = c("any", "start", "end", "within", "equal"),
ignore.strand = FALSE
)
# S4 method for class 'GRangesAssay,GRangesAssay'
countOverlaps(
query,
subject,
maxgap = -1L,
minoverlap = 0L,
type = c("any", "start", "end", "within", "equal"),
ignore.strand = FALSE
)
# S4 method for class 'Seurat,Vector'
countOverlaps(
query,
subject,
maxgap = -1L,
minoverlap = 0L,
type = c("any", "start", "end", "within", "equal"),
ignore.strand = FALSE
)
# S4 method for class 'Vector,Seurat'
countOverlaps(
query,
subject,
maxgap = -1L,
minoverlap = 0L,
type = c("any", "start", "end", "within", "equal"),
ignore.strand = FALSE
)
# S4 method for class 'Seurat,Seurat'
countOverlaps(
query,
subject,
maxgap = -1L,
minoverlap = 0L,
type = c("any", "start", "end", "within", "equal"),
ignore.strand = FALSE
)Arguments
- query, subject
A GRangesAssay object
- maxgap, minoverlap, type, select, ignore.strand
See
?[findOverlaps][GenomicRanges::findOverlaps]in the GenomicRanges::GenomicRanges and IRanges::IRanges packages.
Details
If a GRangesAssay assay is set as the default assay in a
SeuratObject::Seurat() object, you can also call findOverlaps
directly on the Seurat object.
Functions
findOverlaps(query = GRangesAssay, subject = Vector): method for GRangesAssay, VectorfindOverlaps(query = GRangesAssay, subject = GRangesAssay): method for GRangesAssay, GRangesAssayfindOverlaps(query = Vector, subject = Seurat): method for Vector, SeuratfindOverlaps(query = Seurat, subject = Vector): method for Seurat, VectorfindOverlaps(query = Seurat, subject = Seurat): method for Seurat, SeuratcountOverlaps(query = Vector, subject = GRangesAssay): method for Vector, GRangesAssaycountOverlaps(query = GRangesAssay, subject = Vector): method for GRangesAssay, VectorcountOverlaps(query = GRangesAssay, subject = GRangesAssay): method for GRangesAssay, GRangesAssaycountOverlaps(query = Seurat, subject = Vector): method for Seurat, VectorcountOverlaps(query = Vector, subject = Seurat): method for Vector, SeuratcountOverlaps(query = Seurat, subject = Seurat): method for Seurat, Seurat