-
Notifications
You must be signed in to change notification settings - Fork 22
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
Big Bakta update #235
Big Bakta update #235
Conversation
|
nextflow.config
Outdated
@@ -27,23 +27,25 @@ params { | |||
annotation_prodigal_forcenonsd = false | |||
|
|||
annotation_bakta_db = null | |||
annotation_bakta_db_light = null |
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 am a bit confused about the new parameter:
--annotation_bakta_db
expects a path to a local DB (might be full or light, depends on what the user downloaded himself)
while --annotation_bakta_db_light
determines in the modules.config, if in BAKTA_BAKTADBDOWNLOAD
the ext.args --type
will be set to full
or light
:
params.annotation_bakta_db_light ? '--type light' : '--type full'
Shouldn't this then be a boolean parameter with default false
instead of null
? If no path to an existing baktaDB ist given via --annotation_bakta_db
, then the full bakta_db is downloaded unless annotation_bakta_db_light
was set to true
.
Do we want the light
or the full
version to be default when downloading?
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.
Ahh yes, that's why reviews are important :D The new parameter should of course be boolean.
I remember my reason for having null
was that there was an issue with nf-core schema build
when putting false
as default, but forgot to check/fix that.
Default: I would go for full
DB, but can test if there are big differences to the light
DB in the output. If not, let's use light
of course.
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.
Maybe consider renaming --annotation_bakta_db
to make clear that this is for a local installation. Something like --annotation_bakta_db_path
or --annotation_bakta_db_local
?
I agree with the full
db as default. Then the parameter --annotation_bakta_db_light
can just stay as it is.
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 agree, we should disambiguate, and default should be set to a boolean not null
. Another suggestion:
--annotation_bakta_downloadlightdb
--annotation_bakta_localdbpath
Or something?
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.
Mostly agreeing with @louperelo and couple of extra
nextflow.config
Outdated
@@ -27,23 +27,25 @@ params { | |||
annotation_prodigal_forcenonsd = false | |||
|
|||
annotation_bakta_db = null | |||
annotation_bakta_db_light = null |
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 agree, we should disambiguate, and default should be set to a boolean not null
. Another suggestion:
--annotation_bakta_downloadlightdb
--annotation_bakta_localdbpath
Or something?
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.
looks good to me
I liked James suggestion for the parameters better than mine, though:
--annotation_bakta_downloadlightdb
--annotation_bakta_localdbpath
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 agree with Lousia, I find the current parameters too similar in the naming scheme, which I Worry may confuse people that they are for related functions (e.g. maybe _local
means download the full database, as it has the same camel case structure as indicating the download type).
Alternatively, we could replace the boolean for the light with a string:
--annotation_bakta_db_localpath '/path/to/'
--annotation_bakta_db_downloadtype 'light' ## where default is 'full'
Other than the naming, I think the code looks fine 👍
@nf-core-bot fix linting |
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.
One last change ovtherwise LGTM
Co-authored-by: James A. Fellows Yates <[email protected]>
params.annotation_bakta_db_light
to be able to switch between the light (1.3 GB) and full (33.1 GB) version of the Bakta DBCloses #234
Closes #214
PR checklist
nf-core lint
).nextflow run . -profile test,docker --outdir <OUTDIR>
).docs/usage.md
is updated.docs/output.md
is updated.CHANGELOG.md
is updated.README.md
is updated (including new tool citations and authors/contributors).