View source: R/preprocessSingleCell.R
subsetSC | R Documentation |
This function loads the single-cell files. It takes a path to the data files and a chromosome number as arguments and returns the desired subset of the data. Processing by chromosome is important for speed and memory efficiency. The input files should be tab separated with three columns. The first column is the chromosome, the second is the position (basepair), and the third is the methylation indicator/rate. The folder should contain two subfolders titled met and acc, with the endogenous methylation and accessibility methylation files, respectively.
subsetSC(
path,
chromosome,
startPos = NULL,
endPos = NULL,
updateProgress = NULL
)
path |
Path to the folder containing the single-cell files. |
chromosome |
The chromosome to subset the files to. |
startPos |
The index of the first position to include in the subsetting. This is optional as further narrowing of the position can be done in the visualization step/tab. In the Shiny app, a slider will let the user refine the positions. |
endPos |
The index of the final position to include in subset. |
updateProgress |
A function for generating progress bars in the Shiny app. Should be left NULL otherwise. |
The output is RDS files that can be loaded into the visualization tab on the Shiny app
# example not run since needs directory input from user
# subsc.out <- subsetSC("filepath", chromosome=19)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.