Merge branch 'de-validation-ndr-fixes' into 'dev'
Fix DE validation gating and per-sample NDR See merge request epi2melabs/workflows/wf-transcriptomes!238
This commit is contained in:
commit
265b462cc6
@ -31,6 +31,7 @@ process runDifferentialAnalysis {
|
||||
path transcript_rds
|
||||
path gene_rds
|
||||
path sample_sheet
|
||||
path validation_token
|
||||
output:
|
||||
path "de_analysis", emit: dir
|
||||
script:
|
||||
@ -55,8 +56,8 @@ workflow differential_expression {
|
||||
gene_rds
|
||||
sample_sheet
|
||||
main:
|
||||
checkExperimentDesign(sample_sheet)
|
||||
results = runDifferentialAnalysis(transcript_rds, gene_rds, sample_sheet)
|
||||
validated = checkExperimentDesign(sample_sheet)
|
||||
results = runDifferentialAnalysis(transcript_rds, gene_rds, sample_sheet, validated.ok)
|
||||
emit:
|
||||
dir = results.dir
|
||||
}
|
||||
|
||||
@ -209,6 +209,7 @@ process runPerSampleBambu {
|
||||
tuple val(meta), path("${meta.alias}/bambu_genes.rds"), emit: gene_rds
|
||||
tuple val(meta), path("${meta.alias}/transcript_metadata.tsv"), emit: transcript_metadata
|
||||
script:
|
||||
String ndr_arg = params.ndr != null ? "--ndr ${params.ndr}" : ""
|
||||
"""
|
||||
supeRglue bambu \
|
||||
--bam_path "${bam}" \
|
||||
@ -217,6 +218,7 @@ process runPerSampleBambu {
|
||||
--genome "${reference}" \
|
||||
--transcriptome_mode "${params.transcriptome_mode}" \
|
||||
--threads ${task.cpus} \
|
||||
${ndr_arg} \
|
||||
--out_dir "${meta.alias}"
|
||||
"""
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user