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

Fix some compiler warnings and test logic #33

Merged
merged 3 commits into from Mar 24, 2018

Conversation

dpryan79
Copy link
Contributor

This resolves some compiler warnings that I noticed while making a bioconda recipe for this package. & is used a few places in Wellington where && is quite likely meant instead. Note that & has a higher precedence than >= and other such comparison operators. So there were a few cases in the code where you were testing for things like if(some_value > 0 > 0), which is unlikely to be what you meant.

…precedence and it doesn't make much sense to do bit-wise comparisons of 1/0
@coveralls
Copy link

coveralls commented Mar 19, 2018

Coverage Status

Coverage remained the same at 55.956% when pulling aacffec on dpryan79:operator_precedance into 155c58d on jpiper:master.

@dpryan79
Copy link
Contributor Author

dpryan79 commented Mar 19, 2018

I've added the missing Cython dependency. There's now a bioconda recipe for pyDNase that includes Cython as a requirement.

@dpryan79
Copy link
Contributor Author

Updated to add shebangs to the scripts. Otherwise you get lovely error messages like:

$ wellington_footprints.py foo.bam
import: unable to open X server `' @ error/import.c/ImportImageCommand/369.
import: unable to open X server `' @ error/import.c/ImportImageCommand/369.
/package/anaconda3/envs/pyDNase-0.2.6/bin/wellington_footprints.py: line 3: from: command not found
import: unable to open X server `' @ error/import.c/ImportImageCommand/369.
/package/anaconda3/envs/pyDNase-0.2.6/bin/wellington_footprints.py: line 5: from: command not found
/package/anaconda3/envs/pyDNase-0.2.6/bin/wellington_footprints.py: line 7: __version__: command not found
/package/anaconda3/envs/pyDNase-0.2.6/bin/wellington_footprints.py: line 9: syntax error near unexpected token `('
/package/anaconda3/envs/pyDNase-0.2.6/bin/wellington_footprints.py: line 9: `parser = argparse.ArgumentParser(description='Footprint the DHSs in a DNase-seq or ATAC-seq experiment using the Wellington Algorithm.’)'

@jpiper
Copy link
Owner

jpiper commented Mar 24, 2018

Hey thanks so much for this! I am absolutely rammed at work at the moment, but I'll hopefully get around to reviewing this this week and we can cut another release (if I can remember how, PyPi submission has changed a lot in the last few years!)

@jpiper
Copy link
Owner

jpiper commented Mar 24, 2018

Just had a look over - this looks like a no-brainer! That's again for doing this - maybe we should add something to the docs about installing via bioconda?

@jpiper jpiper merged commit d2c4845 into jpiper:master Mar 24, 2018
@dpryan79
Copy link
Contributor Author

twine upload is your friend when it comes to uploading to pypi :)

Yeah, go ahead and document installing via conda. We've been doing that for most of our stuff and it's cut down on the "I get some cryptic error during the installation" emails.

@dpryan79 dpryan79 deleted the operator_precedance branch March 24, 2018 12:25
@dpryan79
Copy link
Contributor Author

BTW, I've had someone internally report another issue in pyDNase. I'll have a look at it on Monday and see if it's some weird bug or just PEBKAC.

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.

None yet

3 participants