View source: R/Seurat.utils.less.used.R
Convert10Xfolders_v1 | 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 .RDS files.
Convert10Xfolders_v1(
InputDir,
regex = FALSE,
folderPattern = c("filtered_feature", "raw_feature", "SoupX_decont")[1],
depth = 4,
min.cells = 5,
min.features = 200,
updateHGNC = TRUE,
ShowStats = TRUE,
writeCBCtable = TRUE,
sample.barcoding = FALSE,
nthreads = .getNrCores(),
preset = "high",
ext = "qs",
sort_alphanumeric = 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'. |
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. |
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: |
sample.barcoding |
A logical value indicating whether Cell Ranger was run with sample barcoding. Default: |
sort_alphanumeric |
sort files alphanumeric? 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.