Skip to content
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

return proper numpy NANs in plotFingerprint.py (instead of "NA" strings) #999

Conversation

dlaehnemann
Copy link
Contributor

Welcome to deepTools GitHub repository! Please check the following regarding
your pull request :

  • Does the PR contain new feature?
  • Does the PR contain bugfix?
  • Does the PR contain documentation changes?
  • Does the PR contain changes to the galaxy wrapper?

This problem came up when parsing the OutputQualityMetrics txt output file downstream when it contains the NA values in columns. To be exact, the conversion to float() in the multiqc module throws an error and leads to the respective plot being skipped. The conversion that fails is this line:
https://github.com/ewels/MultiQC/blob/9760f7561a56c1295a661471d7447abd085b8020/multiqc/modules/deeptools/plotFingerprint.py#L110

According to the documentation of float(), this should instead read nan to be parsed correctly. And this is what print(numpy.NAN) gives (also see numpy.NAN docs and what is used elsewhere in deeptools (a quick grep on the deeptools/ directory did not give any other results for "NA").

dpryan79 and others added 18 commits April 5, 2020 00:57
* Added dataRange to computeMatricOperation to return min,max,median and 10th and 90th percentile.

* fixed pep8

* more pep8 fix

* fixed test_sieve of azure tests

* one more fix for test_sieve

* imported pysam to test_readFiltering.py

* updated hash values for test_sieve

* fixed galaxy computeMatrixOperation.xml

* More fixes for galaxy wrapper
* Now colors can be set by user for any heatmap in plotProfile. A bug in tick index for plotting heatmap is also fixed.

* added a small description

* pep8 fix
* added auto to plotheatmap

* fixed lint, added warning message, updated the help for zmin, zmax

* galaxy test plotPCA

* lower down the delat for potPCA galaxy test

Co-authored-by: Leily Rabbani <rabbani@pc390.ie-freiburg.mpg.de>
* fix deeptools#969

* PEP8

* updated changes.txt

* fixed a little bug in parseCommon.py which caused flake8 failure.

* [WIP] added auto to plotheatmap deeptools#908 (deeptools#982)

* added auto to plotheatmap

* fixed lint, added warning message, updated the help for zmin, zmax

* galaxy test plotPCA

* lower down the delat for potPCA galaxy test

Co-authored-by: Leily Rabbani <rabbani@pc390.ie-freiburg.mpg.de>

* updated version and changes

* removed alpha from plotPCA test

* removed compare="sim_size"

Co-authored-by: Devon Ryan <devon.ryan@genedata.com>
Co-authored-by: Leily Rabbani <rabbani@pc390.ie-freiburg.mpg.de>
Co-authored-by: LeilyR <leila.rabbani@gmail.com>
Added sortUsingSamples and clusterUsingSamples to the galaxy wrapper
@LeilyR
Copy link
Contributor

LeilyR commented Sep 17, 2020

could you please re-base your PR to the develop branch? Thanks!

@dlaehnemann
Copy link
Contributor Author

@LeilyR , this is rebased onto develop and opened as a new PR onto develop over at PR #1000 . Hope that's what you intended.

@dlaehnemann dlaehnemann mentioned this pull request Sep 17, 2020
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants