LoadAllSeurats: LoadAllSeurats

View source: R/Seurat.Utils.R

LoadAllSeuratsR Documentation

LoadAllSeurats

Description

This function loads all Seurat objects found in a directory. It also works with symbolic links (but not with aliases).

Usage

LoadAllSeurats(
  InputDir,
  file.pattern = "^filtered.+Rds$",
  string.remove1 = list(FALSE, "filtered_feature_bc_matrix.",
    "raw_feature_bc_matrix.")[[2]],
  string.replace1 = "",
  string.remove2 = list(FALSE, ".min.cells.10.min.features.200.Rds")[[2]],
  sort_alphanumeric = TRUE
)

Arguments

InputDir

A character string specifying the input directory.

file.pattern

A character string specifying the pattern of file names to be searched. Default: '^filtered.+Rds$'.

string.remove1

A character string or FALSE. If a string is provided, it is removed from file names. Default: "filtered_feature_bc_matrix.".

string.replace1

A character string of the new text instead of "string.remove1".

string.remove2

A character string or FALSE. If a string is provided, it is removed from file names. Default: ".min.cells.10.min.features.200.Rds".

sort_alphanumeric

sort files alphanumeric? Default: TRUE.

Examples

## Not run: 
if (interactive()) {
  ls.Seurat <- LoadAllSeurats(InputDir = InputDir)
}

## End(Not run)

vertesy/Seurat.utils documentation built on Dec. 4, 2024, 5:20 p.m.