In order to wrap Scater's internal workflow in any given workflow language, it's important to have scripts to call each of those steps, which is what this package provides.
The recommended method for script installation is via a Bioconda recipe called bioconda-scater-scripts.
With the Bioconda channels configured the latest release version of the package can be installed via the regular conda install command:
conda install scater-scripts
There is a test script included:
bioconductor-scater-scripts-post-install-tests.sh
This downloads a well-known test 10X dataset and executes all of the scripts described below.
Currently wrapped Scater functions are described below. Each script has usage insructions available via --help, consult function documentation in Scater for further details.
scater-read-10x-results.R -d <10X data directory> -o <output SingleCellExperiment in .rds format>
scater-calculate-cpm.R -i <input SingleCellExperiment in .rds format> -s <size_factors> -o <output SingleCellExperiment in .rds format> -t <output matrix in .csv format>
scater-filter.R -i <input SingleCellExperiment in .rds format> -s <cell QC metric 1>,<cell QC metric 2>,... -l <Lower limit to metric 1>,<lower limit for metric 2> -t <feature QC metric 1>,... -m <feature QC metric lower limit 1> -o <filtered SingleCellExperiment in .rds format> -u <output matrix showing filtered cells by metric> -v <output matrix showing filtered features by metric>
scater-normalize.R -i <input SingleCellExperiment in .rds format> -e <exprs_values> -l <return_log> -f <log_exprs_offset> -c <centre_size_factors> -r <return_norm_as_exprs> -o <output SingleCellExperiment in .rds format>
scater-calculate-qc-metrics.R -i <input SingleCellExperiment in .rds format> -e <exprs_values> -f <feature_controls> -c <cell_controls> -n <nmads> -p <pct_feature_controls_threshold> -o <output SingleCellExperiment in .rds format>
scater-is-outlier.R -m <metrics file> -n <nmads> -t <type> -l <log> -d <min.diff> -o <outliers file>
In addition to the function wrappers above the following accessory scripts are provided:
This script extracts a single column of QC metric data, for example for use with the outlier detection script described above:
scater-extract-qc-metric.R -i <input SingleCellExperiment in .rds format> -o <output file> -m <metric name>
Output is a two-column csv file with <cell name>,<metric value>
per line.