ingestion_qc/h5mu_to_qc_json

Description

Takes H5MU files that have been ingested by CellRanger, Xenium or CosMx and processed by the QC workflow, and generates:

  • A JSON file that contains the combined data for the QC report

  • A JSON file that defines the layout and structure of the QC report

Type

python_script

Contributors

Run this component

Run the following command to execute this component with Nextflow:

cat > params.yaml <<'EOM'  
modality: [ "rna" ]  
obs_sample_id: [ "sample_id" ]  
obs_total_counts: [ "total_counts" ]  
obs_num_nonzero_vars: [ "num_nonzero_vars" ]  
obs_fraction_mitochondrial: [ "fraction_mitochondrial" ]  
obs_fraction_ribosomal: [ "fraction_ribosomal" ]  
output: "$id.$key.output.json"  
output_reporting_json: "$id.$key.output_reporting_json.json"  
min_total_counts: [ 10 ]  
min_num_nonzero_vars: [ 10 ]  
obs_cellbender:  
  [  
    "cellbender_background_fraction",  
    "cellbender_cell_probability",  
    "cellbender_cell_size",  
    "cellbender_droplet_efficiency"  
  ]  
uns_cellranger_metrics: [ "metrics_cellranger" ]  
obs_nucleus_area: [ "nucleus_area" ]  
obs_cell_area: [ "cell_area" ]  
obs_x_coord: [ "x_coord" ]  
obs_y_coord: [ "y_coord" ]  
obs_control_probe_counts: [ "control_probe_counts" ]  
obs_control_codeword_counts: [ "control_codeword_counts" ]  
id: "run"  
publish_dir: "output/"  
EOM

nextflow run https://packages.viash-hub.com/vsh/openpipeline_qc.git \  
  -revision v0.2.0 \  
  -main-script target/nextflow/ingestion_qc/h5mu_to_qc_json/main.nf \  
  -params-file params.yaml  

Inputs

Name
Type & Properties
--input
file
required
multiple
--modality
string
--ingestion_method
string
required
--obs_sample_id
string
--obs_total_counts
string
--obs_num_nonzero_vars
string
--obs_fraction_mitochondrial
string
--obs_fraction_ribosomal
string

Outputs

Name
Type & Properties
--output
file
required
output
--output_reporting_json
file
required
output

Filtering & grouping options

Name
Type & Properties
--min_total_counts
integer
--min_num_nonzero_vars
integer
--obs_metadata
string
multiple

Options for CellRanger reports

Name
Type & Properties
--obs_cellbender
string
multiple
--uns_cellranger_metrics
string

Options for Xenium reports

Name
Type & Properties
--obs_nucleus_area
string
--obs_cell_area
string
--obs_x_coord
string
--obs_y_coord
string
--obs_control_probe_counts
string
--obs_control_codeword_counts
string

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.