-
Notifications
You must be signed in to change notification settings - Fork 608
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
Make NanoStat module recognize more report flavors #1594
Merged
Merged
Conversation
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
Use the string "General summary:" followed by 9 spaces in the first line to distinguish a NanoStat report. Those 9 spaces probably aren't supposed to be there, but they are found in all of the test files, and Linus says it's a feature and not a bug once people start depending on it. Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
The [NanoStat source code](https://github.com/wdecoster/nanostat/blob/f50c7530f072e9e2b3c830334d806a619dc37c68/nanostat/NanoStat.py#L42-L55) reveals that the number of space characters after the first line is actually variable based upon the output of the next few lines. Update the search pattern with a regular expression that can handle such variability. Fixes: 38899d7 (Update NanoStat search pattern) Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
Looking through the CI logs, it looks like different flavors of NanoStat report cannot be parsed within the same run using the current logic. I will look into workarounds for that. |
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
ewels
added a commit
to MultiQC/test-data
that referenced
this pull request
Jan 15, 2022
Check that we can handle bad files as search pattern is quite general now. See MultiQC/MultiQC#1594
ewels
approved these changes
Jan 15, 2022
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! Tested locally and I'm happy. Thanks very much!
vladsavelyev
pushed a commit
to vladsavelyev/MultiQC_TestData
that referenced
this pull request
Apr 16, 2022
Check that we can handle bad files as search pattern is quite general now. See MultiQC/MultiQC#1594
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
CHANGELOG.md
has been updatedAs noted in #1547, the NanoStat module is currently ignoring NanoStat reports generated from fasta and fastq files. Fix that by
I have tested this PR with every test file contained in MultiQC/test-data#221, and received output from every file.