perform.slingshot.trajectory: Performs Slingshot trajectory inference

Description Usage Arguments Value Examples

View source: R/perform.slingshot.trajectory.R

Description

Generates slingshot trajectory inference on the defined reduction and clustering

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
perform.slingshot.trajectory(
  object,
  reduction,
  assay,
  clust.method,
  column,
  start.clus = NULL,
  end.clus = NULL,
  ...
)

Arguments

object

IBRAP S4 class object

reduction

Character. String defining which reduction to supply to the clustering algorithm. Default = NULL

assay

Character. String containing indicating which assay to use

clust.method

Character. Which cluster method should be used utilised from clustering results, if ''metadata'' is supplied, you will access the metadata.

column

Character. Which column within the isolated clust.method should be used to define cell type annoation.

start.clus

Character. Which cluster should start the trajectory, if NULL then slingshot will attempt to discover this. Default = NULL

end.clus

Character. Which cluster should end the trajectory, if NULL then slingshot will attempt to discover this. Default = NULL

...

arguments to be passed to slingshot::slingshot

Value

A SingleshotDataSet class results object containing cellular lineages/curves

Examples

1
2
3
4
5
traj_res <- perform.slingshot.trajectory(object = object, reduction = 'pca_umap', 
                                         assay = 'SCT', clust.method = 'metadata', 
                                         column = 'celltype')
                                         
plot.slingshot(result = traj_red, object = traj, assay = 'SCT', relevant = F, Pseudotime = T)

connorhknight/IBRAP_no_decontX documentation built on Feb. 13, 2022, 2:32 p.m.