LoadAllSeurats | R Documentation |
This function loads all Seurat objects found in a directory. It also works with symbolic links (but not with aliases).
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
)
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: |
## Not run:
if (interactive()) {
ls.Seurat <- LoadAllSeurats(InputDir = InputDir)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.