The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
A novel feature in this package is the ability to get, filter, and
visualize clonotypes that are common across seurat clusters. Potential
applications include the ability to quickly and intuitively gauge the
rough clonal heterogeneity of certain clusters. Note that in
scRepertoire, the scRepertoire::clonalNetwork
function does
something similar for the original dimensional reductions using arrows,
though those display the aggregated degree of commonality between each
cluster.
Please read vignette("APackOfTheClones")
and ideally
also vignette("APackOfTheClones-runs")
before reading this
vignette. One should then also see that although some of the
visualizations in this vignette were produced with the
vizAPOTC()
function, all visualizations can be replicated
with RunAPOTC()
and APOTCPlot()
that both
share parts of the arguments of vizAPOTC()
.
getSharedClones()
is a convenience function does so
while allowing the same seurat object subsetting arguments as seen in
vignette("APackOfTheClones")
, and returns the clonotypes as
a named list where the names are the clonotypes and the
elements are numeric vectors where each value is one of the
clusters that the clonotype name at its index correspond to.
getSharedClones(
seurat_obj,
reduction_base = "umap",
clonecall = "strict",
...,
extra_filter = NULL,
alt_ident = NULL,
run_id = NULL,
top = NULL,
top_per_cl = NULL,
intop = NULL,
intop_per_cl = NULL,
publicity = c(2L, Inf)
)
The last five optional arguments allow additional filtering of the
shared clonotypes. Most notably, top
will filter the
resulting shared clonotypes to only those ranked in the top
frequencies, either as a proportion or number. More details can be found
in the function level documentation for the other arguments. They are
especially useful when an experiment has a really high number of
single-cells, and the only clonotypes of interest are the most expanded
ones.
Here is an example of the function in action, where a combined seurat
object is loaded with the variable name pbmc
:
head(getSharedClones(pbmc, clonecall = "aa"))
#> $CASLSGSARQLTF_CASSPTVAGEQFF
#> [1] 5 9
#>
#> $CVVSDFGNEKLTF_CASSLGSGGTGNEQFF
#> [1] 3 5
#>
#> $CVVSDNTGGFKTIF_CASSVRRERANTGELFF
#> [1] 3 4
#>
#> $`CAVGEKGYGGSQGNLIF_CASSFRPPGSPLHF;CASHGARGDGFCEKLFF`
#> [1] 3 5
#>
#> $CARKVRDSSYKLIF_CASSDSGYNEQFF
#> [1] 3 5
#>
#> $CASLSGSARQLTF_CASSSTVAGEQYF
#> [1] 4 5
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.