annotate/svm_annotation
Description
Automated cell type annotation tool for scRNA-seq datasets on the basis of SVMs.
Inputs
Name | Type & Properties | Description |
|---|---|---|
--input | file required | The input (query) data to be labeled. Should be a .h5mu file. |
--modality | string | Which modality to process. |
--input_layer | string | The layer in the input data to be used for cell type annotation if .X is not to be used. |
--input_var_gene_names | string | The name of the adata var column in the input data containing gene names; when no gene_name_layer is provided, the var index will be used. |
--input_reference_gene_overlap | integer | The minimum number of genes present in both the reference and query datasets. |
--sanitize_ensembl_ids | boolean | Whether to sanitize ensembl ids by removing version numbers. |
Reference
Name | Type & Properties | Description |
|---|---|---|
--reference | file | The reference data to train the CellTypist classifiers on. Only required if a pre-trained --model is not provided. |
--reference_layer | string | The layer in the reference data to be used for cell type annotation if .X is not to be used. Data are expected to be processed in the same way as the --input query dataset. |
--reference_obs_target | string required | Key in .obs attribute of reference modality with cell-type information. |
--reference_var_gene_names | string | The name of the adata var column in the reference data containing gene names; when no gene_name_layer is provided, the var index will be used. |
--reference_var_input | string | .var column containing highly variable genes. By default, do not subset genes. |
Outputs
Name | Type & Properties | Description |
|---|---|---|
--output | file output | Output h5mu file. |
--output_obs_prediction | string | In which `.obs` slots to store the predicted information. |
--output_obs_probability | string | In which `.obs` slots to store the probability of the predictions. |
--output_compression | string | Compression format to use for the output AnnData and/or Mudata objects. By default no compression is applied. |
Model arguments
Name | Type & Properties | Description |
|---|---|---|
--model | file | Pretrained model in pkl format. If not provided, the model will be trained on the reference data and --reference should be provided. |
--feature_selection | boolean | Whether to perform feature selection. |
--max_iter | integer | Maximum number of iterations for the SVM. |
--c_reg | double | Regularization parameter for the SVM. |
--class_weight | string | "Class weights for the SVM. The `uniform` mode gives all classes a weight of one. The `balanced` mode (default) uses the values of y to automatically adjust weights inversely proportional to class frequencies in the input data as n_samples / (n_classes * np.bincount(y))" |
Run this component
Run the following command to execute this component with Nextflow:
cat > params.yaml <<'EOM'
modality: [ "rna" ]
input_reference_gene_overlap: [ 100 ]
sanitize_ensembl_ids: [ true ]
output: "$id.$key.output.h5mu"
output_obs_prediction: [ "svm_pred" ]
output_obs_probability: [ "svm_probability" ]
feature_selection: [ true ]
max_iter: [ 5000 ]
c_reg: [ 1 ]
class_weight: [ "balanced" ]
id: "run"
publish_dir: "output/"
EOM
nextflow run https://packages.viash-hub.com/vsh/openpipeline.git \
-revision v4.0.2 \
-main-script target/nextflow/annotate/svm_annotation/main.nf \
-params-file params.yaml Relationships
Used by
0 relationships
No components use this component.
Current component
annotate/svm_annotationopenpipeline v4.0.2
Uses
0 relationships
No component dependencies found.