Skip to content

Commit

Permalink
Add parameter to skip SpatialData merging
Browse files Browse the repository at this point in the history
Add a parameter to skip aggregation of per-sample SpatialData objects
into one, which is set to `false` by default.
  • Loading branch information
fasterius committed Nov 8, 2024
1 parent 846bdff commit 9e25800
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,8 @@ process {
]
}

withName: 'MERGE_SDATA' {
ext.when = params.merge_sdata
}

}
3 changes: 3 additions & 0 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ params {
svg_autocorr_method = "moran"
n_top_svgs = 14

// Data aggregation
merge_sdata = false

// MultiQC options
multiqc_config = null
multiqc_title = null
Expand Down
17 changes: 17 additions & 0 deletions nextflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,20 @@
}
},

"aggregation_options": {
"title": "Data aggregation options",
"type": "object",
"fa_icon": "fas fa-rocket",
"description": "Options related to aggregation of final data objects",
"properties": {
"merge_sdata": {
"type": "boolean",
"description": "Merge per-sample SpatialData objects into one",
"fa_icon": "fas fa-arrows-to-dot"
}
}
},

"institutional_config_options": {
"title": "Institutional config options",
"type": "object",
Expand Down Expand Up @@ -317,6 +331,9 @@
{
"$ref": "#/$defs/analysis_options"
},
{
"$ref": "#/$defs/aggregation_options"
},
{
"$ref": "#/$defs/institutional_config_options"
},
Expand Down

0 comments on commit 9e25800

Please sign in to comment.