shinyInput-ClusterInput-method: prepare Shiny input

Description Usage Arguments Details Value Examples

Description

This function prepares the input for the shiny app

Usage

1
2
## S4 method for signature 'ClusterInput'
shinyInput(ClusterInput)

Arguments

object

A ClusterInput object

Details

This function takes the ClusterInputobject as the input and turns it into a dataframe that can be directly used as input of our shiny app. The shiny app allows users to intuitively investigate how the clustering tuning parameters affect clustering results

Value

A data frame with cell clonotype and UMAP coordinates .

Examples

1
2
3
4
5
6
7
TCR <-read.csv("/PATH/TO/YOUR/scTCR-seqData/",header=T)
load('Mice.sub.rda')
Combined <- getCombinedDataSet(TCR,Mice.sub)
Trajectory <- getClonotyoeLineages(Combined,start.clus = NULL, end.clus = NULL, dist.method = 'simple', use.median = TRUE)
clustInput <- getClusteringInput(Trajectory)
shinyInput <- shinyInput(clustInput)
write.csv(shinyInput,file='/path/to/folder/shiny.csv')

JuanXie19/TCRlineageClust documentation built on Feb. 26, 2022, 12:33 a.m.