Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genotoul-bioinfo
metagWGS
Commits
57820b3e
Commit
57820b3e
authored
Jun 03, 2021
by
Celine Noirot
Browse files
Join channel to avoid mismatch of input files
parent
52f47579
Changes
1
Hide whitespace changes
Inline
Side-by-side
main.nf
View file @
57820b3e
...
...
@@ -750,13 +750,14 @@ process reads_alignment_on_contigs {
"""
}
depth_on_contigs_ch
=
contigs_bed_ch
.
join
(
reads_assembly_ch_for_depth
)
process
depth_on_contigs
{
tag
"${replicateId}"
publishDir
"${params.outdir}/05_alignment/05_1_reads_alignment_on_contigs/$replicateId"
,
mode:
'copy'
input:
set
val
(
replicateId
),
file
(
bam
),
file
(
index
)
from
reads_assembly_ch_for_depth
set
replicateId
,
file
(
bed
)
from
contigs_bed_ch
set
val
(
replicateId
),
file
(
bed
)
,
file
(
bam
),
file
(
index
)
from
depth_on_contigs_ch
output:
set
val
(
replicateId
),
file
(
"${replicateId}.regions.bed.gz"
)
into
contig_depth_ch
...
...
@@ -1071,7 +1072,7 @@ process make_functional_annotation_tables {
* Create channel with sample id, diamond files and desman length files, idxstats and depth files.
*/
diamond_parser_input_ch
=
diamond_result_ch
.
join
(
contigs_length_ch
,
remainder:
true
).
join
(
idxstats_ch
,
remainder:
true
)
diamond_parser_input_ch
=
diamond_result_ch
.
join
(
contigs_length_ch
,
remainder:
true
).
join
(
idxstats_ch
,
remainder:
true
)
.
join
(
contig_depth_ch
,
remainder:
true
)
// Python parser.
process
diamond_parser
{
...
...
@@ -1083,8 +1084,7 @@ process diamond_parser {
input:
set
file
(
prot_accession2taxid
),
file
(
taxonomy
)
from
taxonomy_ch
set
replicateId
,
file
(
diamond_file
),
file
(
contigs_len
),
file
(
idxstats
)
from
diamond_parser_input_ch
set
replicateId
,
file
(
depth
)
from
contig_depth_ch
set
replicateId
,
file
(
diamond_file
),
file
(
contigs_len
),
file
(
idxstats
),
file
(
depth
)
from
diamond_parser_input_ch
output:
set
replicateId
,
file
(
"${replicateId}.percontig.tsv"
)
into
taxo_percontig_ch
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment