Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

* Remove `workflows` directory (PR #993). The workflows which were at one point in this directory were all deprecated and moved to `src/workflows`.

* Move output file compression argument for AnnData and MuData files to a base config file (`src/base/h5_compression_argument.yaml`) (PR #1017).

## BUG FIXES

* Bump viash to 0.9.4. This adds support for nextflow versions starting major version 25.01 and fixes an issue where an integer being passed to a argument with `type: double` resulted in an error (PR #1016).
Expand Down
6 changes: 1 addition & 5 deletions src/annotate/celltypist/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,6 @@ argument_groups:
description: Output h5mu file.
direction: output
example: output.h5mu
- name: "--output_compression"
type: string
choices: ["gzip", "lzf"]
required: false
example: "gzip"
- name: "--output_obs_predictions"
type: string
default: celltypist_pred
Expand All @@ -126,6 +121,7 @@ argument_groups:
required: false
description: |
In which `.obs` slots to store the probability of the predictions.
__merge__: [., /src/base/h5_compression_argument.yaml]

resources:
- type: python_script
Expand Down
6 changes: 1 addition & 5 deletions src/annotate/onclass/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,6 @@ argument_groups:
description: Output h5mu file.
direction: output
example: output.h5mu
- name: "--output_compression"
type: string
choices: ["gzip", "lzf"]
required: false
example: "gzip"
- name: "--output_obs_predictions"
type: string
default: onclass_pred
Expand All @@ -115,6 +110,7 @@ argument_groups:
required: false
description: |
In which `.obs` slots to store the probability of the predictions.
__merge__: [., /src/base/h5_compression_argument.yaml]

- name: Model arguments
description: Model arguments
Expand Down
7 changes: 2 additions & 5 deletions src/annotate/popv/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,8 @@ argument_groups:
direction: output
required: true
example: output.h5mu
- name: "--output_compression"
type: string
choices: ["gzip", "lzf"]
required: false
example: "gzip"
__merge__: [., /src/base/h5_compression_argument.yaml]

# - name: "--output_models"
# type: file
# direction: output
Expand Down
6 changes: 1 addition & 5 deletions src/annotate/random_forest_annotation/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@ argument_groups:
description: Output h5mu file.
direction: output
example: output.h5mu
- name: "--output_compression"
type: string
choices: ["gzip", "lzf"]
required: false
example: "gzip"
- name: "--output_obs_predictions"
type: string
default: random_forest_pred
Expand All @@ -88,6 +83,7 @@ argument_groups:
required: false
description: |
In which `.obs` slots to store the probability of the predictions.
__merge__: [., /src/base/h5_compression_argument.yaml]

- name: Model arguments
description: Model arguments.
Expand Down
9 changes: 2 additions & 7 deletions src/annotate/scanvi/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,6 @@ argument_groups:
description: Folder where the state of the trained model will be saved to.
required: false
direction: output
- name: "--output_compression"
type: string
description: The compression format to be used on the output h5mu object.
choices: ["gzip", "lzf"]
required: false
example: "gzip"
- name: "--obsm_output"
type: string
default: "X_scanvi_integrated"
Expand All @@ -87,7 +81,8 @@ argument_groups:
type: string
default: scanvi_proba
description: "In which. obs slot to store the probabilities of the predicted labels."

__merge__: [., /src/base/h5_compression_argument.yaml]

- name: "scANVI training arguments"
arguments:
- name: "--early_stopping"
Expand Down
6 changes: 1 addition & 5 deletions src/annotate/svm_annotation/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@ argument_groups:
description: Output h5mu file.
direction: output
example: output.h5mu
- name: "--output_compression"
type: string
choices: ["gzip", "lzf"]
required: false
example: "gzip"
- name: "--output_obs_prediction"
type: string
default: svm_pred
Expand All @@ -88,6 +83,7 @@ argument_groups:
required: false
description: |
In which `.obs` slots to store the probability of the predictions.
__merge__: [., /src/base/h5_compression_argument.yaml]

- name: Model arguments
description: Model arguments.
Expand Down
9 changes: 9 additions & 0 deletions src/base/h5_compression_argument.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
arguments:
- name: "--output_compression"
description: |
Compression format to use for the output AnnData and/or Mudata objects.
By default no compression is applied.
type: string
choices: ["gzip", "lzf"]
required: false
example: "gzip"
9 changes: 2 additions & 7 deletions src/cluster/leiden/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,6 @@ arguments:
direction: output
required: true
example: output.h5mu

- name: "--output_compression"
type: string
choices: ["gzip", "lzf"]
required: false
example: "gzip"

- name: "--obsm_name"
type: string
description: |
Expand All @@ -67,6 +60,8 @@ arguments:
default: [1]
required: true
multiple: true
__merge__: [., /src/base/h5_compression_argument.yaml]

resources:
- type: python_script
path: script.py
Expand Down
7 changes: 2 additions & 5 deletions src/convert/from_10xh5_to_h5mu/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,12 @@ argument_groups:
example: output.h5mu
direction: output
__merge__: api_output.yaml
- name: "--output_compression"
type: string
choices: ["gzip", "lzf"]
required: false
example: "gzip"
- name: "--uns_metrics"
type: string
description: Name of the .uns slot under which to QC metrics (if any).
default: "metrics_cellranger"
__merge__: [., /src/base/h5_compression_argument.yaml]

- name: Arguments
arguments:
- name: "--min_genes"
Expand Down
7 changes: 2 additions & 5 deletions src/convert/from_10xmtx_to_h5mu/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,8 @@ arguments:
description: Output h5mu file.
example: output.h5mu
direction: output
- name: "--output_compression"
type: string
choices: ["gzip", "lzf"]
required: false
example: "gzip"
__merge__: [., /src/base/h5_compression_argument.yaml]

resources:
- type: python_script
path: script.py
Expand Down
7 changes: 2 additions & 5 deletions src/convert/from_bdrhap_to_h5mu/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,8 @@ argument_groups:
description: "Output h5mu file."
required: true
example: output.h5mu
- name: "--output_compression"
type: string
choices: ["gzip", "lzf"]
required: false
example: "gzip"
__merge__: [., /src/base/h5_compression_argument.yaml]

resources:
- type: python_script
path: script.py
Expand Down
7 changes: 2 additions & 5 deletions src/convert/from_cellranger_multi_to_h5mu/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,12 @@ arguments:
description: CSV file describing the sample name per output file
direction: output
example: "samples.csv"
- name: "--output_compression"
type: string
choices: ["gzip", "lzf"]
required: false
example: "gzip"
- name: "--uns_metrics"
type: string
description: Name of the .uns slot under which to QC metrics (if any).
default: "metrics_cellranger"
__merge__: [., /src/base/h5_compression_argument.yaml]

resources:
- type: python_script
path: script.py
Expand Down
8 changes: 3 additions & 5 deletions src/convert/from_h5ad_to_h5mu/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@ arguments:
description: Output MuData file.
default: output.h5mu
direction: output
- name: "--output_compression"
type: string
choices: ["gzip", "lzf"]
required: false
example: "gzip"
__merge__: [., /src/base/h5_compression_argument.yaml]


resources:
- type: python_script
path: script.py
Expand Down
8 changes: 3 additions & 5 deletions src/convert/from_h5mu_to_h5ad/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@ arguments:
description: Output AnnData file.
default: output.h5ad
direction: output
- name: "--output_compression"
type: string
description: The compression format to be used on the final h5ad object.
default: "gzip"
choices: ["gzip", "lzf"]
__merge__: [., /src/base/h5_compression_argument.yaml]


resources:
- type: python_script
path: script.py
Expand Down
7 changes: 2 additions & 5 deletions src/correction/cellbender_remove_background/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ argument_groups:
direction: output
required: true
example: output.h5mu
- name: "--output_compression"
type: string
choices: ["gzip", "lzf"]
required: false
example: "gzip"
- name: "--layer_output"
description: Output layer
type: string
Expand All @@ -62,6 +57,8 @@ argument_groups:
- name: "--obsm_gene_expression_encoding"
type: string
default: "cellbender_gene_expression_encoding"
__merge__: [., /src/base/h5_compression_argument.yaml]

- name: Arguments
arguments:
# custom arg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ argument_groups:
direction: output
required: true
example: output.h5mu
- name: "--output_compression"
type: string
choices: ["gzip", "lzf"]
required: false
example: "gzip"
- name: "--layer_output"
description: Output layer
type: string
Expand All @@ -56,6 +51,8 @@ argument_groups:
- name: "--obsm_latent_gene_encoding"
type: string
default: "cellbender_latent_gene_encoding"
__merge__: [., /src/base/h5_compression_argument.yaml]

- name: Arguments
arguments:
- name: "--expected_cells"
Expand Down
7 changes: 1 addition & 6 deletions src/dataflow/concatenate_h5mu/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ arguments:
type: file
direction: output
example: "output.h5mu"
- name: "--output_compression"
type: string
description: The compression format to be used on the output h5mu object.
choices: ["gzip", "lzf"]
required: false
example: "gzip"
- name: "--obs_sample_name"
type: string
description: Name of the .obs key under which to add the sample names.
Expand Down Expand Up @@ -66,6 +60,7 @@ arguments:
type: string
choices: ["same", "unique", "first", "only", "make_unique"]
default: make_unique
__merge__: [., /src/base/h5_compression_argument.yaml]

resources:
- type: python_script
Expand Down
8 changes: 2 additions & 6 deletions src/dataflow/split_h5mu/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,14 @@ argument_groups:
direction: output
example: "/path/to/output"
description: Output directory containing multiple h5mu files.
- name: "--output_compression"
type: string
description: The compression format to be used on the output h5mu object.
choices: ["gzip", "lzf"]
required: false
example: "gzip"
- name: "--output_files"
type: file
required: true
direction: output
example: sample_files.csv
description: A csv containing the base filename and obs feature by which it was split.
__merge__: [., /src/base/h5_compression_argument.yaml]


resources:
- type: python_script
Expand Down
8 changes: 2 additions & 6 deletions src/dataflow/split_modalities/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,14 @@ arguments:
direction: output
example: "/path/to/output"
description: Output directory containing multiple h5mu files.
- name: "--output_compression"
type: string
description: The compression format to be used on the output h5mu object.
choices: ["gzip", "lzf"]
required: false
example: "gzip"
- name: "--output_types"
type: file
required: true
direction: output
example: types.csv
description: A csv containing the base filename and modality type per output file.
__merge__: [., /src/base/h5_compression_argument.yaml]

resources:
- type: python_script
path: script.py
Expand Down
9 changes: 2 additions & 7 deletions src/dimred/densmap/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,12 @@ argument_groups:
required: true
example: output.h5mu

- name: "--output_compression"
type: string
description: The compression format to be used on the output h5mu object.
choices: ["gzip", "lzf"]
required: false
example: "gzip"

- name: "--obsm_output"
type: string
description: The .obsm key to use for storing the densMAP results..
default: "X_densmap"
__merge__: [., /src/base/h5_compression_argument.yaml]


- name: Arguments UMAP
arguments:
Expand Down
Loading