Splits a fragment file into separate files for each group of cells. If splitting multiple fragment files containing common cell types, fragments originating from different files will be appended to the same file for one group of cell identities.
SplitFragments(
object,
assay = NULL,
group.by = NULL,
idents = NULL,
outdir = getwd(),
file.suffix = "",
append = TRUE,
buffer_length = 256L,
verbose = TRUE
)
A Seurat object
Name of assay to use
Name of grouping variable to group cells by
List of identities to include
Directory to write output files
Suffix to add to all file names (before file extension).
If splitting multiple fragment files without the append
option set to
TRUE, an additional numeric suffix will be added to each file (eg, .1, .2).
If splitting multiple fragment files, append cells from the same group (eg cluster) to the same file. Note that this can cause the output file to be unsorted.
Size of buffer to be read from the fragment file. This must be longer than the longest line in the file.
Display messages