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
Conpair concordance: account for different format when run with --outfile
#1855
Conversation
I think the PR looks great. It would be nice to add tests for this into https://github.com/ewels/MultiQC_TestData, it should be good to merge? |
Conpair: add test example for MultiQC/MultiQC#1855
--outfile
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.
Apparently I started but never submitted a review on this in... February 😓
I'll put in a follow-up PR to address at least the float thing.
if match: | ||
parsed_data[k] = float(match.group(1)) | ||
if k == "concordance_concordance" and not "Concordance" in r: | ||
parsed_data[k] = 100 * parsed_data[k] |
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.
Force float variable type, otherwise we get weird integer problems..
parsed_data[k] = 100 * parsed_data[k] | |
parsed_data[k] = 100.0 * float(parsed_data[k]) |
conpair/concordance
to match with all types of Conpair outputs.conpair.py
module to parse concordance metrics from all types of Conpair outputs.CHANGELOG.md
has been updated