-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added offline run flag and profile #29
Merged
Merged
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
6647231
Added offline run flag and profile
itrujnara a3b5a69
Added info on offline runs to usage.md
itrujnara 8f53b7d
Tweaks related to EggNOG
itrujnara 6920dd3
Update subworkflows/local/get_orthologs.nf
itrujnara a27bbc6
Small fix in use_all warning
itrujnara cb3d768
Another tweak for doubled warning
itrujnara 5d86656
Noticed something about the refseq ID map
itrujnara b10c128
Tweak for EggNOG ID map format
itrujnara c5b1e6c
Bug fixes
itrujnara 2cf571b
Added offline test profile
itrujnara 40d9cc4
Removed offline.config
itrujnara e8549fe
Fixed empty output issues in OMA local
itrujnara b44190b
More tweaks for empty output
itrujnara d2d747b
Reverted samplesheet in offline test
itrujnara a03639c
Added offline test to CI
itrujnara 0b22de0
More "null safety" tweaks
itrujnara File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
Nextflow config file for offline run. | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
*/ | ||
|
||
params { | ||
config_profile_name = 'Offline' | ||
config_profile_description = 'Settings for offline run' | ||
|
||
// Other parameters | ||
offline_run = true | ||
local_databases = true | ||
skip_downstream = true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,14 @@ workflow GET_ORTHOLOGS { | |
ch_versions = Channel.empty() | ||
ch_orthogroups = Channel.empty() | ||
|
||
fasta_input = false | ||
ch_samplesheet_fasta.ifEmpty { | ||
fasta_input = true | ||
} | ||
if (fasta_input && params.offline_run) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we want to through a warning here instead making clear that using |
||
error "Offline run is currently not supported with fasta files as input." | ||
} | ||
|
||
// Preprocessing - find the ID and taxid of the query sequences | ||
ch_samplesheet_fasta | ||
.map { it -> [it[0], file(it[1])] } | ||
|
@@ -41,14 +49,19 @@ workflow GET_ORTHOLOGS { | |
ch_versions = ch_versions.mix(IDENTIFY_SEQ_ONLINE.out.versions) | ||
|
||
WRITE_SEQINFO ( | ||
ch_samplesheet_query | ||
ch_samplesheet_query, | ||
params.offline_run | ||
) | ||
|
||
ch_query = IDENTIFY_SEQ_ONLINE.out.seqinfo.mix(WRITE_SEQINFO.out.seqinfo) | ||
ch_versions = ch_versions.mix(WRITE_SEQINFO.out.versions) | ||
|
||
// Ortholog fetching | ||
|
||
if(params.use_all && params.offline_run) { | ||
itrujnara marked this conversation as resolved.
Show resolved
Hide resolved
|
||
warning("Trying to use online databases in offline mode. Are you sure?") // TODO: make a warning | ||
} | ||
|
||
if(params.use_all) { | ||
// OMA | ||
if (params.local_databases) { | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't you need also to provide here the paths to the local DBs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think I can. I have no prior knowledge of the file structure on the user's machine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed on slack I was referring of creating a small version of the databases for running a test using the
offline
modeThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done now, see
test_offline.config