Convert10Xfolders | R Documentation |
This function takes a parent directory with a number of subfolders, each containing the standard output of 10X Cell Ranger. It (1) loads the (filtered) data matrices, (2) converts them to Seurat objects, and (3) saves them as .qs files
Convert10Xfolders(
InputDir,
regex = FALSE,
folderPattern = c("filtered_feature", "raw_feature", "SoupX_decont")[1],
suffix = strsplit(folderPattern, "_")[[1]][1],
depth = 4,
min.cells = 5,
min.features = 200,
normalize_data = TRUE,
updateHGNC = TRUE,
ShowStats = TRUE,
writeCBCtable = TRUE,
nthreads = .getNrCores(),
preset = "high",
ext = "qs",
sort_alphanumeric = TRUE,
save_empty_droplets = TRUE,
...
)
InputDir |
A character string specifying the input directory. |
regex |
A logical value. If TRUE, the folderPattern is treated as a regular expression. Default: |
folderPattern |
A character vector specifying the pattern of folder names to be searched. Default: 'filtered_feature'. |
suffix |
A character string specifying the suffix of the files saved. |
depth |
An integer value specifying the depth of scan (i.e., how many levels below the InputDir). Default: 2. |
min.cells |
An integer value specifying the minimum number of cells. Default: 5. |
min.features |
An integer value specifying the minimum number of features. Default: 200. |
normalize_data |
Add normalized "data" layer?. Default: |
updateHGNC |
A logical value indicating whether to update the HGNC. Default: |
ShowStats |
A logical value indicating whether to show statistics. Default: |
writeCBCtable |
A logical value indicating whether to write out a list of cell barcodes (CBC) as a tsv file. Default: |
sort_alphanumeric |
sort files alphanumeric? Default: |
save_empty_droplets |
save empty droplets? Default: |
save |
Save .qs object? Default: |
## Not run:
if (interactive()) Convert10Xfolders(InputDir)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.