Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
deep_genome
cedalion
Commits
6fff4400
Commit
6fff4400
authored
Feb 05, 2019
by
Thomas Van Parys
Browse files
Add dummy channels to circumvent join matching bug
parent
e32b6c67
Changes
1
Hide whitespace changes
Inline
Side-by-side
main.nf
View file @
6fff4400
...
...
@@ -186,12 +186,20 @@ process download_plaza_fasta{
"""
}
///
//Due to a Nextflow oddity, the .join() operator only works when at least one match is found
//Add a dummy match to both channels, which will be filtered out in the next step.
dummyPlazaChannel
=
Channel
.
value
([
'dummy'
,
'dummy_cds.fasta'
,
'dummy_prot.fasta'
])
dummyIncompleteChannel
=
Channel
.
value
([
name:
'dummy'
])
plaza_fasta
.
mix
(
dummyPlazaChannel
).
set
{
plaza_fasta
}
species_incomplete
.
mix
(
dummyIncompleteChannel
).
set
{
species_incomplete
}
///
species_incomplete
.
map
{
[
it
.
name
,
it
]
}
.
join
(
plaza_fasta
,
remainder:
true
)
.
filter
{
it
[
0
]
!=
'dummy'
}
.
map
{
specie
=
it
[
1
]
if
(!
specie
.
cds
)
specie
.
cds
=
it
[
2
]
...
...
Thomas Van Parys
@thpar
mentioned in issue
#47
·
Feb 05, 2019
mentioned in issue
#47
mentioned in issue #47
Toggle commit list
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