Skip to content

Commit

Permalink
fixed prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
daisymut committed Nov 18, 2024
1 parent dafaa8f commit 741a0e5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion subworkflows/local/faidx_cut_chr_size.nf
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ workflow FAIDX_SUBWORKFLOW {

emit:
path("sizes.genome"), from: CUT_SIZES_GENOME.out.ch_sizes_genome
}
}
6 changes: 3 additions & 3 deletions subworkflows/local/input_check.nf
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ workflow INPUT_CHECK {
.set { reads }

reads
.map { meta, fastq ->

.map { meta, fastq ->
def expID = meta.expID // Prendi l'expID da meta
meta.remove('fraction') // Rimuovi il campo 'fraction'

Expand All @@ -27,7 +27,7 @@ workflow INPUT_CHECK {
//.view()
.map{ expID, meta , fastq ->
meta = meta[0].clone() // Prendi solo la prima mappa e crea una copia
meta.id = expID // Sostituisci il valore nel campo id con expID
meta.id = expID // Sostituisci il valore nel campo id con expID
[ [meta], fastq.flatten() ]
}
.set { reads_to_merge }
Expand Down
16 changes: 8 additions & 8 deletions workflows/sammyseq.nf
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ workflow SAMMYSEQ {
//a channel is created for the trimmed files and the id is renamed to meta, so that when passed to fastqc it does not overwrite the output files with non-trimmed ones
ch_fastqc_trim=TRIMMOMATIC.out.trimmed_reads
// ch_fastqc_trim=TRIMGALORE.out.reads
.map{ meta, path ->
.map{ meta, path ->
def id=meta.subMap('id')
newid=id.id + "_trim"
sng=meta.subMap('single_end').single_end
Expand Down Expand Up @@ -281,7 +281,7 @@ workflow SAMMYSEQ {
// Index Fasta File for Markduplicates
SAMTOOLS_FAIDX (
ch_fasta_meta,
[[], []]
[[], []]
)

ch_fai_for_cut = SAMTOOLS_FAIDX.out.fai.collect()
Expand Down Expand Up @@ -328,7 +328,7 @@ workflow SAMMYSEQ {

//ch_bam_bai_combined = BAM_MARKDUPLICATES_PICARD.out.bam.join(BAM_MARKDUPLICATES_PICARD.out.bai, by: [0])

ch_bam_bai_combined = BAM_MARKDUPLICATES_PICARD.out.bam
ch_bam_bai_combined = BAM_MARKDUPLICATES_PICARD.out.bam
.join(BAM_MARKDUPLICATES_PICARD.out.bai, by: [0], remainder: true)
.map {
meta, bam, bai ->
Expand Down Expand Up @@ -377,9 +377,9 @@ workflow SAMMYSEQ {
Channel.fromPath(params.comparisonFile)
.splitCsv(header : true)
.map{ row ->
// [ row.sample2 + "_T1", row.sample1 + "_T1",row.sample1 + "_T1_VS_" + row.sample2 + "_T1"]
//[ row.sample2 + "_T1", row.sample1 + "_T1_VS_" + row.sample2 + "_T1"]
[ row.sample2 , row.sample1 + "_VS_" + row.sample2 ]
// [ row.sample2 + "_T1", row.sample1 + "_T1",row.sample1 + "_T1_VS_" + row.sample2 + "_T1"]
//[ row.sample2 + "_T1", row.sample1 + "_T1_VS_" + row.sample2 + "_T1"]
[ row.sample2 , row.sample1 + "_VS_" + row.sample2 ]
}
.set { comparisons_ch_s2 }

Expand Down Expand Up @@ -421,8 +421,8 @@ workflow SAMMYSEQ {
//4.run rscript

RTWOSAMPLESMLE (comparisons_merge_ch,
CUT_SIZES_GENOME.out.ch_sizes_genome
)
CUT_SIZES_GENOME.out.ch_sizes_genome
)

if (params.stopAt == 'RTWOSAMPLESMLE') {
return
Expand Down

0 comments on commit 741a0e5

Please sign in to comment.