feature_annotation/align_query_reference

Description

Alignment of a query and reference dataset by:

  • Alignment of layers

  • Harmonization of .obs field names for batch and cell type labels

  • Harmonization of .var field name for gene names

  • Sanitation of gene names

  • Cross-checking of genes

  • Assignment of an id to the query and reference datasets

Type

python_script

License

MIT

Contributors

Run this component

Run the following command to execute this component with Nextflow:

cat > params.yaml <<'EOM'  
modality: [ "rna" ]  
input_id: [ "query" ]  
reference_id: [ "reference" ]  
output_query: "$id.$key.output_query.h5mu"  
output_reference: "$id.$key.output_reference.h5mu"  
output_layer: [ "_counts" ]  
output_layer_lognormalized: [ "_log_normalized" ]  
output_var_gene_names: [ "_gene_names" ]  
output_obs_batch: [ "_sample_id" ]  
output_obs_label: [ "_cell_type" ]  
output_obs_id: [ "_dataset" ]  
output_var_index: [ "_ori_var_index" ]  
output_var_common_genes: [ "_common_vars" ]  
input_reference_gene_overlap: [ 100 ]  
align_layers_raw_counts: [ true ]  
unkown_celltype_label: [ "Unknown" ]  
id: "run"  
publish_dir: "output/"  
EOM

nextflow run https://packages.viash-hub.com/vsh/openpipeline.git \  
  -revision v4.0.0 \  
  -main-script target/nextflow/feature_annotation/align_query_reference/main.nf \  
  -params-file params.yaml  

Inputs

Name
Type & Properties
--input
file
required
--modality
string
--input_layer
string
--input_layer_lognormalized
string
--input_var_gene_names
string
--input_obs_batch
string
required
--input_obs_label
string
--input_id
string

Reference

Name
Type & Properties
--reference
file
--reference_layer
string
--reference_layer_lognormalized
string
--reference_var_gene_names
string
--reference_obs_batch
string
required
--reference_obs_label
string
--reference_id
string

Outputs

Name
Type & Properties
--output_query
file
output
--output_reference
file
output
--output_layer
string
--output_layer_lognormalized
string
--output_var_gene_names
string
--output_obs_batch
string
--output_obs_label
string
--output_obs_id
string
--output_var_index
string
--output_var_common_genes
string
--output_compression
string

Arguments

Name
Type & Properties
--input_reference_gene_overlap
integer
--align_layers_raw_counts
boolean
--align_layers_lognormalized_counts
boolean_true
--unkown_celltype_label
string
--overwrite_existing_key
boolean_true
--preserve_var_index
boolean_true

Collaborate Accelerate Succeed

Empower your organization with secure, scalable workflow solutions that simplify development, ensure compliance, and drive innovation.

Viash Hub is a platform developed by Data Intuitive, a Belgian-based bioinformatics company specializing in data workflow development and deployment.