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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 0.3.0

1. Removed the hardcoded setup of samplesheet generation and migrated to a worksheet implementation to generate samplesheets. See the [worksheets](docs/worksheets.md) documentation for more information
2. Use `clusters` to get the amount of reads for rnafusion runs instead of the `yield_`
3. Resolved all configuration warnings

## 0.2.8

1. Set the default mouse binsize to 100 if the given binsize is not 100 or 500
Expand Down
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ nextflowPlugin {
className = 'nfcmgg.plugin.CmggPlugin'
extensionPoints = [
'nfcmgg.plugin.CmggExtension',
'nfcmgg.plugin.CmggFactory'
'nfcmgg.plugin.CmggFactory',
'nfcmgg.plugin.config.CmggConfig'
]

}
17 changes: 10 additions & 7 deletions pixi.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions src/main/groovy/nfcmgg/plugin/config/CmggConfig.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@ import nextflow.script.dsl.Description
@Description('The `cmgg` scope allows you to configure the nf-cmgg plugin.')
class CmggConfig implements ConfigScope {

@ConfigOption
@Description('Configuration scope for the creation of `DONE` files after successful pipeline execution.')
DoneConfig done
final DoneConfig done

@ConfigOption
@Description('Configuration scope for the automatic generation of samplesheets for all supported pipelines.')
SamplesheetsConfig samplesheets
final SamplesheetsConfig samplesheets

// Keep the no-arg constructor in order to be able to use the `@ConfigOption` annotation
CmggConfig() {
}

CmggConfig(Map config) {
Map doneConfig = getMap(config?.done, 'cmgg.done')
Expand Down
4 changes: 2 additions & 2 deletions src/main/groovy/nfcmgg/plugin/config/DoneConfig.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ class DoneConfig implements ConfigScope {

@ConfigOption
@Description('Create a DONE file after successful pipeline execution.')
Boolean enabled = false
final Boolean enabled = false

@ConfigOption
@Description('Location to create the DONE file after successful pipeline execution.')
Path location
final Path location

DoneConfig(Map config) {
this.enabled = getBoolean(config?.enabled, 'cmgg.done.enabled')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ class SamplesheetsConfig implements ConfigScope {

@ConfigOption
@Description('Configuration scope for the creation of samplesheet files after successful pipeline execution.')
Boolean enabled = false
final Boolean enabled = false

@ConfigOption
@Description('Location to create the samplesheet files after successful pipeline execution.')
Path location
final Path location

@ConfigOption
@Description('A list of worksheets to use for the automatic samplesheet generation.')
List<Path> worksheets = []
final List<Path> worksheets = []

SamplesheetsConfig(Map config) {
this.enabled = getBoolean(config?.enabled, 'cmgg.samplesheets.enabled')
Expand Down
Loading