This document contains the help content for the essential-scripts-rs command-line program.
Command Overview:
essential-scripts-rs↴essential-scripts-rs aggregate-cell-ranger-tcr↴essential-scripts-rs split-sample-id↴essential-scripts-rs split-cdr3-seq↴essential-scripts-rs reformat-plate-reader-data↴essential-scripts-rs copy-cell-ranger-outs↴essential-scripts-rs score-tcr-alignments↴essential-scripts-rs geo-fastq↴essential-scripts-rs run-enrichr↴
A set of useful tools for data wrangling
Usage: essential-scripts-rs [COMMAND]
aggregate-cell-ranger-tcr— A set of useful tools for data wranglingsplit-sample-id— A set of useful tools for data wranglingsplit-cdr3-seq— A set of useful tools for data wranglingreformat-plate-reader-data—copy-cell-ranger-outs— A set of useful tools for data wranglingscore-tcr-alignments— Score a GLIPH2 output file with a TCR alignment pipeline. Requires re-installing with --features tcrgeo-fastq— Match FastQ files by lane and sample, and compute MD5 checksumsrun-enrichr— Run Enrichr via API interface. Requires re-installing with --features enrichment
Aggregate CellRanger TCR output from multiple samples
Parse a set of input files with the Cell Ranger TCR format (filtered_contig_annotations.csv) and aggregate them into a single output file. The output will contain one row per unique combination of sample, barcode, and TCR chain, with the corresponding CDR3 sequences and gene segments. Optionally, the alpha chain can be retained in the output. The internal sample_id column is used, so there is no need for unique filenames if running on direct outputs from Cell Ranger
Usage: essential-scripts-rs aggregate-cell-ranger-tcr [OPTIONS] <INPUT_FILES>... <OUTPUT_FILE>
<INPUT_FILES>— Input CSV files to process<OUTPUT_FILE>— Output file path
-
-k,--keep-alpha— Keep alpha chain in output [default: false]Default value:
false
Split sample ID into subject and condition from GLIPH2 output
Splits the subject:condition column (the default) into two columns. Can be used on any file with a separator to split by however, these columns will always be called subject and condition
Usage: essential-scripts-rs split-sample-id [OPTIONS] <INPUT_FILE>... <OUTPUT_FILE>
<INPUT_FILE>— Input CSV file to process<OUTPUT_FILE>— Output file path
-
-c,--column-name <COLUMN_NAME>— Column to splitDefault value:
subject:condition
Split CDR3 sequences and genes if a semicolon is present
This potentially splits each row into up to 4 new rows. In the output from scRepertoire, the rows each belong to a single cell barcode. In the case when a cell has 2 detectable CDR3 beta or alpha sequences, the resulting CDR3 and V/J columns are concatinated with a ";". For downstream applications, this results in treating this chimeric sequence as a real, biological sequence. This tool will expand this into up to 4 different pairs of chains. "beta_1;beta2" and "alpha_1;alpha_2" will be split into 4 rows each containing a single alpha and beta chain.
The TCR columns must be named CDR3a and CDR3b. Requires either CTgeneA/CTgeneB columns or TRAV/TRAJ/TRBV/TRBJ columns for the TCR genes. If group columns are not provided, each input row is treated as its own group and alpha/beta splits are anchored to original rows.
Usage: essential-scripts-rs split-cdr3-seq [OPTIONS] <INPUT_FILE> [OUTPUT_FILE]
-
<INPUT_FILE>— Input CSV file to process -
<OUTPUT_FILE>— Output file pathDefault value:
-
-g,--group <GROUP>— Optional columns to group by; if omitted, each input row is treated as its own group
Usage: essential-scripts-rs reformat-plate-reader-data <INPUT_FILE> <OUTPUT_PATH>
<INPUT_FILE>— Input Excel file to process<OUTPUT_PATH>— Output directory path. Will create one CSV per sheet.
Copy selected outputs from Cell Ranger pipestances
Scans through a directory searching for Cell Ranger Pipestances (subdirectories containing a *.mri.tgz marker file). For each pipestance, copies selected outputs (H5, MEX, VDJ) into a destination directory. Those files are renamed from their default (sample_filtered_feature_bc_matrix.h5) to <sample>.h5 and stored as a flat directory.
Usage: essential-scripts-rs copy-cell-ranger-outs [OPTIONS] --base-path <BASE_PATH>
-
-b,--base-path <BASE_PATH>— Base directory containing Cell Ranger pipestances -
-d,--dest <DEST>— Destination directory to copy to -
--h5— Copy filtered H5 matrix as .h5Default value:
false -
--mex— Copy filtered MEX directory into /Default value:
false -
--vdj— Copy VDJ annotations as .csvDefault value:
false -
--check— Check each pipestance for presence of a *.mri.tgz marker and print results. No copying is performed.Default value:
false
Score a GLIPH2 output file with a TCR alignment pipeline. Requires re-installing with --features tcr
Usage: essential-scripts-rs score-tcr-alignments [OPTIONS] [INPUT_FILE] [OUTPUT_FILE]
<INPUT_FILE>— Input CSV file to process<OUTPUT_FILE>— Output file path
-
-r,--replicates <REPLICATES>Default value:
1000
Match FastQ files by lane and sample, and compute MD5 checksums
Usage: essential-scripts-rs geo-fastq [OPTIONS] [INPUT_DIRECTORIES]...
<INPUT_DIRECTORIES>— Directories containing fastq.gz files
-
--paired-output <PAIRED_OUTPUT>— Output file for paired files by lane and sample [default: stdout] -
--sample-output <SAMPLE_OUTPUT>— Output file for all files per sample [default: stdout] -
--md5-output <MD5_OUTPUT>— Output file for file paths with MD5 checksums [default: stdout] -
--parallel-md5— Compute MD5s in parallelDefault value:
false -
--threads <THREADS>— Number of threads to use for parallel MD5. 0 = all available coresDefault value:
0 -
--progress— Show progress bar -
--no-progress— Hide progress bar
Run Enrichr via API interface. Requires re-installing with --features enrichment
Usage: essential-scripts-rs run-enrichr [OPTIONS] --library <LIBRARY> --gene-list <GENE_LIST> <OUTPUT_FILE> [OUTPUT_PLOT]...
<OUTPUT_FILE>— Output file path<OUTPUT_PLOT>— Output file paths
-
-l,--library <LIBRARY>— Enrichr Library to usePossible values:
reactome-pathways2024,reactome,bio-carta2016,wiki-pathways2024-human,go-biological-process -
-g,--gene-list <GENE_LIST>— Input gene list to process. One gene per line -
-b,--background <BACKGROUND>— Input gene list to process as background. One gene per line
This document was generated automatically by
clap-markdown.