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

HiSAT2 with Python 3k #18911

Closed
ewels opened this issue Nov 26, 2019 · 4 comments
Closed

HiSAT2 with Python 3k #18911

ewels opened this issue Nov 26, 2019 · 4 comments

Comments

@ewels
Copy link
Member

ewels commented Nov 26, 2019

Hi all,

https://bioconda.github.io/contributor/guidelines.html states that "packaging is hard" - I agree! 😆 But one of the examples is:

hisat2 runs 2to3 to make it Python 3 compatible, and copies over individual scripts to the bin dir

Sure enough, the build recipe does run 2to3:

if [ $PY3K -eq 1 ]
then
2to3 --write \
hisat2_extract_exons.py \
hisat2_extract_snps_haplotypes_UCSC.py \
hisat2_extract_splice_sites.py \
hisat2-build hisat2-inspect \
hisat2_simulate_reads.py \
hisat2_extract_snps_haplotypes_VCF.py \
hisatgenotype_build_genome.py \
hisatgenotype_extract_reads.py \
hisatgenotype_extract_vars.py \
hisatgenotype_hla_cyp.py \
hisatgenotype_locus.py \
hisatgenotype.py
fi

However, the meta.yml file then skips python 3k builds:

skip: True # [not py27]

So despite making the code python 3 compatible, HiSAT2 ends up being available for Python 2 only.

This skipped build was added by @pvanheus and @bgruening last year in #9973 - can you guys remember why? Do you think it's possible to add python 3 support back again?

Phil

@bgruening
Copy link
Member

@pvanheus can you please comment here?

@ewels
Copy link
Member Author

ewels commented Dec 5, 2019

What’s the best course of action here? Shall I prep a PR enabling Py3k builds again?

@ewels
Copy link
Member Author

ewels commented Dec 5, 2019

I updated the build.sh file to run 2to3 conversion on all HiSAT2 python scripts (several were missing) and allowed it to build for all python versions.

The CI tests seemed to pass. Testing functionality now, but I think that this may be fixed now..? 🤞

@ewels
Copy link
Member Author

ewels commented Dec 6, 2019

It's a slightly obscure test, but the nf-core/methylseq pipeline now runs with bismark using HiSAT2 on a python 3k environment inside a docker container! 😆

https://travis-ci.com/nf-core/methylseq/jobs/263630208

I'm happy with this, so will close this issue now.

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

No branches or pull requests

2 participants