View source: R/fragmentObject.R
FilterCells | R Documentation |
Remove all fragments that are not from an allowed set of cell barcodes from
the fragment file. This will create a new file on disk that only contains
fragments from cells specified in the cells
argument. The output file
is block gzip-compressed and indexed.
FilterCells( fragments, cells, outfile = NULL, buffer_length = 256L, verbose = TRUE )
fragments |
Path to a fragment file |
cells |
A vector of cells to keep |
outfile |
Name for output file |
buffer_length |
Size of buffer to be read from the fragment file. This must be longer than the longest line in the file. |
verbose |
Display messages |
Filter cells from fragment file
fpath <- system.file("extdata", "fragments.tsv.gz", package="scUtils") cells <- readLines(system.file("extdata", "cell_name.txt", package="scUtils")) tmpf <- tempfile(fileext = ".gz") FilterCells( fragments = fpath, cells = cells, outfile = tmpf ) file.remove(tmpf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.