Contents

1 uSORT workflow

uSORT package is designed to uncover the intrinsic cell progression path from single-cell RNA-seq data. It incorporates data pre-processing, preliminary PCA gene selection, preliminary cell ordering, refined gene selection, refined cell ordering, and post-analysis interpretation and visualization. The schematic overview of the uSORT workflow is shown in the figure below:

2 Run uSORT

The uSORT workflow can be applied through either the user-friendly GUI or calling the main function.

2.1 uSORT GUI

After the installation of the uSORT pacakge, the GUI can be easily launched by a single command.

require(uSORT)
## Loading required package: uSORT
## Loading required package: tcltk
# uSORT_GUI()  

On mac, the GUI will appear as shown below:

On the GUI, user can choose their input file (currently support TPM and CPM format in txt file), specify the priliminary sorting method and refined sorting method. By click the parameter button, user can further customize the parameters for each method. A parameter panel for autoSPIN method appears like below:

In the main GUI window, give a project name and choose the result path, then click submit. The program will run and details will be printed on the R console. Once the analysis is done, results will be saved under the selected result path.

2.2 uSORT Main Function

User can also directly call the main function named uSORT of the pacakge. The documentation file can be extracted using command ?uSORT. The usage and parameters of uSORT function is shown below:

args(uSORT)
## function (exprs_file, log_transform = TRUE, remove_outliers = TRUE, 
##     preliminary_sorting_method = c("autoSPIN", "sWanderlust", 
##         "monocle", "Wanderlust", "SPIN", "none"), refine_sorting_method = c("autoSPIN", 
##         "sWanderlust", "monocle", "Wanderlust", "SPIN", "none"), 
##     project_name = "uSORT", result_directory = getwd(), nCores = 1, 
##     save_results = TRUE, reproduce_seed = 1234, scattering_cutoff_prob = 0.75, 
##     driving_force_cutoff = NULL, qval_cutoff_featureSelection = 0.05, 
##     pre_data_type = c("linear", "cyclical"), pre_SPIN_option = c("STS", 
##         "neighborhood"), pre_SPIN_sigma_width = 1, pre_autoSPIN_alpha = 0.2, 
##     pre_autoSPIN_randomization = 20, pre_wanderlust_start_cell = NULL, 
##     pre_wanderlust_dfmap_components = 4, pre_wanderlust_l = 15, 
##     pre_wanderlust_num_waypoints = 150, pre_wanderlust_waypoints_seed = 2711, 
##     pre_wanderlust_flock_waypoints = 2, ref_data_type = c("linear", 
##         "cyclical"), ref_SPIN_option = c("STS", "neighborhood"), 
##     ref_SPIN_sigma_width = 1, ref_autoSPIN_alpha = 0.2, ref_autoSPIN_randomization = 20, 
##     ref_wanderlust_start_cell = NULL, ref_wanderlust_dfmap_components = 4, 
##     ref_wanderlust_l = 15, ref_wanderlust_num_waypoints = 150, 
##     ref_wanderlust_flock_waypoints = 2, ref_wanderlust_waypoints_seed = 2711) 
## NULL

3 uSORT Example

Runing the pacakge through the GUI is quite straightforward, so here we demo the usage of the main function with an example:

dir <- system.file('extdata', package='uSORT')
file <- list.files(dir, pattern='.txt$', full=TRUE)
# uSORT_results <- uSORT(exprs_file = file, 
#                        log_transform = TRUE,
#                        remove_outliers = TRUE,
#                        project_name = "uSORT_example",
#                        preliminary_sorting_method = "autoSPIN", 
#                        refine_sorting_method = "sWanderlust",
#                        result_directory = getwd(),
#                        save_results = TRUE,
#                        reproduce_seed = 1234)

3.1 Result Object and files

When the analysis is done, the results will be returned in a list:

#str(uSORT_results)

# List of 7
#  $ exp_raw                        : num [1:251, 1:43280] 1.08 0 0 0.62 0 0 0 0.27 1.16 0 ...
#   ..- attr(*, "dimnames")=List of 2
#   .. ..$ : chr [1:251] "RMD119" "RMD087" "RMD078" "RMD225" ...
#   .. ..$ : chr [1:43280] "0610005C13Rik" "0610007P14Rik" "0610009B22Rik" "0610009E02Rik" ...
#  $ trimmed_log2exp                : num [1:241, 1:9918] 4.82 0 0 2.77 5.84 ...
#   ..- attr(*, "dimnames")=List of 2
#   .. ..$ : chr [1:241] "RMD119" "RMD087" "RMD078" "RMD225" ...
#   .. ..$ : chr [1:9918] "0610007P14Rik" "0610009B22Rik" "0610009E02Rik" "0610009O20Rik" ...
#  $ preliminary_sorting_genes      : chr [1:650] "1110038B12Rik" "1190002F15Rik" "2810417H13Rik" "5430435G22Rik" ...
#  $ preliminary_sorting_order      : chr [1:241] "RMD196" "RMD236" "RMD250" "RMD220" ...
#  $ refined_sorting_genes          : chr [1:320] "Mpo" "H2-Aa" "Cd74" "H2-Ab1" ...
#  $ refined_sorting_order          : chr [1:241] "RMD271" "RMD272" "RMD265" "RMD295" ...
#  $ driverGene_refinedOrder_log2exp: num [1:241, 1:320] 13.16 10.77 12.17 9.82 9.77 ...
#   ..- attr(*, "dimnames")=List of 2
#   .. ..$ : chr [1:241] "RMD271" "RMD272" "RMD265" "RMD295" ...
#   .. ..$ : chr [1:320] "Mpo" "H2-Aa" "Cd74" "H2-Ab1" ...

And if save_results = TRUE, several result files will be saved:

uSORT_example_final_driver_genes_profiles.pdf: