annotate/azimuth_reference
Description
Build a custom Azimuth reference from an annotated Seurat object, using
Azimuth's AzimuthReference(). The raw counts are normalized with
SCTransform, after which a supervised PCA (SPCA) and a UMAP model are
computed and packaged together with the annotation levels to transfer.
The output is a directory containing a "ref.Rds" and "idx.annoy" file
pair, which can be used to annotate query datasets with annotate/azimuth
(--reference custom --custom_reference <output>).
Inputs
Name | Type & Properties | Description |
|---|---|---|
--input -i | file required | The annotated data to build the reference from. Should be an .rds file containing a Seurat object with raw (unnormalized) counts in the layer specified by `--input_layer`, and the cell type labels to transfer in its cell metadata. |
--assay | string | Name of the Seurat assay in the input object to build the reference from. |
--input_layer | string | Layer of `--assay` containing the raw (unnormalized) counts. These are normalized using SCTransform. |
--input_var_gene_names | string | Column in the feature metadata of `--assay` containing gene symbols. If not provided, the feature names of the assay are used. The gene names of the reference should be gene symbols: annotate/azimuth converts query Ensembl IDs to gene symbols, but not the other way around. |
Reference
Name | Type & Properties | Description |
|---|---|---|
--annotation_levels | string required multiple | Columns in the cell metadata of the input object containing the cell type labels (annotation levels) to store in the reference, and transfer to the query with annotate/azimuth. Cells with missing labels are not allowed. |
--reference_version | string | Version number for the new custom reference. |
Reference building arguments
Name | Type & Properties | Description |
|---|---|---|
--n_variable_features | integer | Number of variable features to select with SCTransform. |
--n_dims | integer | Number of dimensions of the PCA and supervised PCA, which are also used to compute the UMAP and to find neighbors in the reference. Azimuth requires references to contain at least 50 dimensions. |
--k_param | integer | Number of nearest neighbors stored in the reference annoy index (used to find anchors between query and reference). |
--seed | integer | Random seed for SCTransform and the UMAP. |
Outputs
Name | Type & Properties | Description |
|---|---|---|
--output | file required output | Output directory to which the Azimuth reference is written, as a "ref.Rds" and "idx.annoy" file pair. Can be passed to annotate/azimuth using `--reference custom --custom_reference <output>`. |
Run this component
Run the following command to execute this component with Nextflow:
cat > params.yaml <<'EOM'
assay: [ "RNA" ]
input_layer: [ "counts" ]
reference_version: [ "0.0.0" ]
n_variable_features: [ 3000 ]
n_dims: [ 50 ]
k_param: [ 31 ]
seed: [ 42 ]
output: "$id.$key.output.azimuth_reference"
id: "run"
publish_dir: "output/"
EOM
nextflow run https://packages.viash-hub.com/vsh/openpipeline.git \
-revision v5.0.0 \
-main-script target/nextflow/annotate/azimuth_reference/main.nf \
-params-file params.yaml Relationships
Used by
0 relationships
No components use this component.
Current component
annotate/azimuth_referenceopenpipeline v5.0.0
Uses
0 relationships
No component dependencies found.