Find the nearest range neighbors for GRangesAssay objects
Source:R/iranges-methods.R
nearest-methods.RdThe precede, follow, nearest, distance, distanceToNearest methods
are available for GRangesAssay objects.
Usage
# S4 method for class 'ANY,GRangesAssay'
precede(x, subject, select = c("arbitrary", "all"), ignore.strand = FALSE)
# S4 method for class 'GRangesAssay,ANY'
precede(x, subject, select = c("arbitrary", "all"), ignore.strand = FALSE)
# S4 method for class 'GRangesAssay,GRangesAssay'
precede(x, subject, select = c("arbitrary", "all"), ignore.strand = FALSE)
# S4 method for class 'ANY,Seurat'
precede(x, subject, select = c("arbitrary", "all"), ignore.strand = FALSE)
# S4 method for class 'Seurat,ANY'
precede(x, subject, select = c("arbitrary", "all"), ignore.strand = FALSE)
# S4 method for class 'Seurat,Seurat'
precede(x, subject, select = c("arbitrary", "all"), ignore.strand = FALSE)
# S4 method for class 'ANY,GRangesAssay'
follow(x, subject, select = c("arbitrary", "all"), ignore.strand = FALSE)
# S4 method for class 'GRangesAssay,ANY'
follow(x, subject, select = c("arbitrary", "all"), ignore.strand = FALSE)
# S4 method for class 'GRangesAssay,GRangesAssay'
follow(x, subject, select = c("arbitrary", "all"), ignore.strand = FALSE)
# S4 method for class 'ANY,Seurat'
follow(x, subject, select = c("arbitrary", "all"), ignore.strand = FALSE)
# S4 method for class 'Seurat,ANY'
follow(x, subject, select = c("arbitrary", "all"), ignore.strand = FALSE)
# S4 method for class 'Seurat,Seurat'
follow(x, subject, select = c("arbitrary", "all"), ignore.strand = FALSE)
# S4 method for class 'ANY,GRangesAssay'
nearest(x, subject, select = c("arbitrary", "all"), ignore.strand = FALSE)
# S4 method for class 'GRangesAssay,ANY'
nearest(x, subject, select = c("arbitrary", "all"), ignore.strand = FALSE)
# S4 method for class 'GRangesAssay,GRangesAssay'
nearest(x, subject, select = c("arbitrary", "all"), ignore.strand = FALSE)
# S4 method for class 'ANY,Seurat'
nearest(x, subject, select = c("arbitrary", "all"), ignore.strand = FALSE)
# S4 method for class 'Seurat,ANY'
nearest(x, subject, select = c("arbitrary", "all"), ignore.strand = FALSE)
# S4 method for class 'Seurat,Seurat'
nearest(x, subject, select = c("arbitrary", "all"), ignore.strand = FALSE)
# S4 method for class 'ANY,GRangesAssay'
distance(x, y, ignore.strand = FALSE, ...)
# S4 method for class 'GRangesAssay,ANY'
distance(x, y, ignore.strand = FALSE, ...)
# S4 method for class 'GRangesAssay,GRangesAssay'
distance(x, y, ignore.strand = FALSE, ...)
# S4 method for class 'ANY,Seurat'
distance(x, y, ignore.strand = FALSE, ...)
# S4 method for class 'Seurat,ANY'
distance(x, y, ignore.strand = FALSE, ...)
# S4 method for class 'Seurat,Seurat'
distance(x, y, ignore.strand = FALSE, ...)
# S4 method for class 'ANY,GRangesAssay'
distanceToNearest(x, subject, ignore.strand = FALSE, ...)
# S4 method for class 'GRangesAssay,ANY'
distanceToNearest(x, subject, ignore.strand = FALSE, ...)
# S4 method for class 'GRangesAssay,GRangesAssay'
distanceToNearest(x, subject, ignore.strand = FALSE, ...)
# S4 method for class 'ANY,Seurat'
distanceToNearest(x, subject, ignore.strand = FALSE, ...)
# S4 method for class 'Seurat,ANY'
distanceToNearest(x, subject, ignore.strand = FALSE, ...)
# S4 method for class 'Seurat,Seurat'
distanceToNearest(x, subject, ignore.strand = FALSE, ...)Arguments
- x
A query GRangesAssay object
- subject
The subject
GenomicRanges::GRanges()or GRangesAssay object. If missing,xis used as the subject.- select
Logic for handling ties. See
GenomicRanges::nearest-methods()- ignore.strand
Logical argument controlling whether strand information should be ignored.
- y
For the
distancemethod, aGenomicRanges::GRanges()object or a GRangesAssay object- ...
Additional arguments for methods
Functions
precede(x = GRangesAssay, subject = ANY): method for GRangesAssay, ANYprecede(x = GRangesAssay, subject = GRangesAssay): method for GRangesAssay, GRangesAssayprecede(x = ANY, subject = Seurat): method for ANY, Seuratprecede(x = Seurat, subject = ANY): method for Seurat, ANYprecede(x = Seurat, subject = Seurat): method for Seurat, Seuratfollow(x = ANY, subject = GRangesAssay): method for ANY, GRangesAssayfollow(x = GRangesAssay, subject = ANY): method for GRangesAssay, ANYfollow(x = GRangesAssay, subject = GRangesAssay): method for GRangesAssay, GRangesAssayfollow(x = ANY, subject = Seurat): method for ANY, Seuratfollow(x = Seurat, subject = ANY): method for Seurat, ANYfollow(x = Seurat, subject = Seurat): method for Seurat, Seuratnearest(x = ANY, subject = GRangesAssay): method for ANY, GRangesAssaynearest(x = GRangesAssay, subject = ANY): method for GRangesAssay, ANYnearest(x = GRangesAssay, subject = GRangesAssay): method for GRangesAssay, GRangesAssaynearest(x = ANY, subject = Seurat): method for ANY, Seuratnearest(x = Seurat, subject = ANY): method for Seurat, ANYnearest(x = Seurat, subject = Seurat): method for Seurat, Seuratdistance(x = ANY, y = GRangesAssay): method for ANY, GRangesAssaydistance(x = GRangesAssay, y = ANY): method for GRangesAssay, ANYdistance(x = GRangesAssay, y = GRangesAssay): method for GRangesAssay, GRangesAssaydistance(x = ANY, y = Seurat): method for ANY, Seuratdistance(x = Seurat, y = ANY): method for Seurat, ANYdistance(x = Seurat, y = Seurat): method for Seurat, SeuratdistanceToNearest(x = ANY, subject = GRangesAssay): method for ANY, GRangesAssaydistanceToNearest(x = GRangesAssay, subject = ANY): method for GRangesAssay, ANYdistanceToNearest(x = GRangesAssay, subject = GRangesAssay): method for GRangesAssay, GRangesAssaydistanceToNearest(x = ANY, subject = Seurat): method for ANY, SeuratdistanceToNearest(x = Seurat, subject = ANY): method for Seurat, ANYdistanceToNearest(x = Seurat, subject = Seurat): method for Seurat, Seurat