Skip to content

Commit

Permalink
Fix editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
nictru committed Sep 25, 2024
1 parent 1e6b98d commit a90fd39
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion modules/local/ciriquant/de/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ process CIRIQUANT_DE {
ciriquant: \$(echo \$(CIRIquant --version 2>&1) | sed 's/CIRIquant //g' )
END_VERSIONS
"""
}
}
2 changes: 1 addition & 1 deletion modules/local/ciriquant/prepde/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ process CIRIQUANT_PREPDE {
ciriquant: \$(echo \$(CIRIquant --version 2>&1) | sed 's/CIRIquant //g' )
END_VERSIONS
"""
}
}
4 changes: 2 additions & 2 deletions modules/local/matrix/join_samples/templates/join.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

dfs = {
sample:
pl.scan_csv(matrix,
separator="\\t",
pl.scan_csv(matrix,
separator="\\t",
new_columns=metacols + [sample],
has_header="${has_header}" == "true")
.group_by(metacols).agg(pl.sum(sample).alias(sample))
Expand Down
6 changes: 3 additions & 3 deletions subworkflows/local/combine_transcriptomes.nf
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ workflow COMBINE_TRANSCRIPTOMES {
ch_genome_fasta
ch_genome_gtf
ch_circ_gtf

main:
ch_versions = Channel.empty()

COMBINE_TRANSCRIPTOME_GTFS(
ch_genome_gtf.mix(ch_circ_gtf).map{meta, gtf -> gtf}.collect().map{[[id: "transcriptome"], it]},
)
Expand All @@ -36,4 +36,4 @@ workflow COMBINE_TRANSCRIPTOMES {
gtf = EXCLUDE_OVERLONG_TRANSCRIPTS.out.output

versions = ch_versions
}
}
2 changes: 1 addition & 1 deletion subworkflows/local/quantification_tools/ciriquant.nf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ workflow CIRIQUANT {
EXTRACT_CIRC.out.table.map{meta, table -> [[id: 'circ'], meta.id, table]}.groupTuple()
)
ch_versions = ch_versions.mix(JOIN_CIRC.out.versions)

emit:
gene_tpm = JOIN_GENE.out.joined
circ_cpm = JOIN_CIRC.out.joined
Expand Down
2 changes: 1 addition & 1 deletion subworkflows/local/quantification_tools/psirc_quant.nf
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,4 @@ workflow PSIRC_QUANT {
circular_tx_tpm = SPLIT_TYPES_TPM.out.circular

versions = ch_versions
}
}
6 changes: 3 additions & 3 deletions subworkflows/local/statistical_tests.nf
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ workflow STATISTICAL_TESTS {
.join(ch_stringtie.map{ meta, gtf -> [meta.id, gtf] })
.map{ sample, condition, ciriquant, stringtie -> [condition, [sample, ciriquant, stringtie]] }
.groupTuple()
.map{ condition, samples ->
.map{ condition, samples ->
[condition, samples.sort({ a, b -> a[0] <=> b[0] }).transpose()]
}
.map{ condition, samples ->
.map{ condition, samples ->
[condition, samples[0], samples[1], samples[2]]
}

ch_condition_pairs = ch_condition_samples
.combine(ch_condition_samples)
.filter{ c_control, s_control, f_ciri_control, f_stringtie_control, c_treatment, s_treatment, f_ciri_treatment, f_stringtie_treatment
-> c_control > c_treatment }
-> c_control > c_treatment }
.map{ c_control, s_control, f_ciri_control, f_stringtie_control, c_treatment, s_treatment, f_ciri_treatment, f_stringtie_treatment ->
[ [id: "${c_control}_${c_treatment}"],
s_control + s_treatment,
Expand Down

0 comments on commit a90fd39

Please sign in to comment.