-
Notifications
You must be signed in to change notification settings - Fork 57
Improve documentation for Bracken ignore errorStrategy #532
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
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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 hidden or 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 hidden or 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 |
---|---|---|
@@ -1,9 +1,31 @@ | ||
# Troubleshooting and FAQs | ||
|
||
## I get a warning during centrifuge_kreport process with exit status 255 | ||
## I get a warning during CENTRIFUGE_KREPORT or KRAKENTOOLS_COMBINEKREPORTS_CENTRIFUGE process with exit status 255 | ||
|
||
When a sample has insufficient hits for abundance estimation, the resulting `report.txt` file will be empty. | ||
|
||
When trying to convert this to a kraken-style report, the conversion tool will exit with a status code `255`, and provide a `WARN`. | ||
When trying to convert this to a kraken-style report or merging together, the tools will exit with a status code `255`, and provide a `WARN`. | ||
|
||
This is _not_ an error nor a failure of the pipeline, just your sample has no hits to the provided database when using centrifuge. | ||
This is _not_ an error nor a failure of the pipeline, just your sample has no hits to the provided database when using Centrifuge. | ||
|
||
## Why does any error or failed process from BRACKEN_BRACKEN get ignored? | ||
|
||
If Kraken2 doesn't classify any reads (100% unclassified) Bracken will fail on that input. | ||
Having no reads taxonomically classified can be a reasonable outcome for some samples, and we don't want to treat this as an error. | ||
|
||
Therefore to allow the remainder of a given run to complete if a single Bracken task fails, [we set the Nextflow `errorStrategy` to `ignore`](https://github.com/nf-core/taxprofiler/blob/5d3ee5513a84f92773c8376c55b5f4da39835307/conf/base.config#L61-L63). | ||
You will still get a warning in the Nextflow console output and log that a Bracken task failed. | ||
|
||
If you want to change this behaviour, you can override the `errorStrategy` in your own Nextflow configuration file. | ||
|
||
For example: | ||
|
||
```nextflow | ||
process { | ||
withName: BRACKEN_BRACKEN { | ||
errorStrategy = 'retry' | ||
} | ||
} | ||
``` | ||
|
||
Other `errorStrategy` options can be found on the [Nextflow documentation](https://www.nextflow.io/docs/latest/process.html#errorstrategy). | ||
jfy133 marked this conversation as resolved.
Show resolved
Hide resolved
|
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.
Uh oh!
There was an error while loading. Please reload this page.