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 DRAM-setup.py v1.5.0 for missing ) #339

Open
npavlovikj opened this issue Mar 25, 2024 · 4 comments
Open

Fix DRAM-setup.py v1.5.0 for missing ) #339

npavlovikj opened this issue Mar 25, 2024 · 4 comments

Comments

@npavlovikj
Copy link

npavlovikj commented Mar 25, 2024

Hi,

In the script DRAM-setup.py for v1.5.0, one line has a missing ) before the next line starts:

set_db_locs_parser.add_argument('--viral_loc', default=None,
.
This breaks the update of the conda recipe (bioconda/bioconda-recipes#45045) which fails with:

16:14:36 BIOCONDA INFO (OUT) + DRAM-setup.py --help
16:14:36 BIOCONDA INFO (OUT)   File "/opt/conda/conda-bld/dram_1706198871410/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla/bin/DRAM-setup.py", line 124
16:14:36 BIOCONDA INFO (OUT)     set_db_locs_parser.add_argument('--camper_tar_gz_loc', default=None,
16:14:36 BIOCONDA INFO (OUT)     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16:14:36 BIOCONDA INFO (OUT) SyntaxError: invalid syntax. Perhaps you forgot a comma?

I believe that:

    set_db_locs_parser.add_argument('--viral_loc', default=None,
    set_db_locs_parser.add_argument('--camper_tar_gz_loc', default=None,
                                    help='The source for the CAMPER database files, this is a tar.gz file downloaded'
                                    ' from the release page https://github.com/WrightonLabCSU/CAMPER/releases')
                                    help='mmseqs2 database file from ref seq viral gene collection')

should be

    set_db_locs_parser.add_argument('--viral_loc', default=None,
                                    help='mmseqs2 database file from ref seq viral gene collection')
    set_db_locs_parser.add_argument('--camper_tar_gz_loc', default=None,
                                    help='The source for the CAMPER database files, this is a tar.gz file downloaded'
                                    ' from the release page https://github.com/WrightonLabCSU/CAMPER/releases')

instead.

I see that the DRAM-setup.py script is updated in the master branch of the repo as per #330, but not in the PyPI v1.5.0 version for DRAM, so can you please update this release with the correct script so we can successfully update the conda package without patching the script?

Thank you,
Natasha

@anbadilla
Copy link

I am also struggling to run DRAM due to this issue. Any solution so far?

Thanks!

@npavlovikj
Copy link
Author

@anbadilla , I updated the bioconda DRAM 1.5.0 recipe to include patched and corrected DRAM-setup.py file (https://github.com/bioconda/bioconda-recipes/tree/master/recipes/dram), so if you install DRAM 1.5.0 via conda (https://anaconda.org/bioconda/dram), this issue is fixed.

However, it is definitely better for the DRAM-setup.py file to be fixed in the 1.5.0 release instead of using patches. Looks like the file is updated for this repo's master branch, but not for the tagged release.

@marinemicrobe
Copy link

I just installed DRAM 1.5.0 via conda and had the same issue. I simply deleted those two lines to avoid the error message, as those lines don't affect my applications.

@npavlovikj
Copy link
Author

@marinemicrobe , the bioconda DRAM 1.5.0 package is fixed and doesn't give the error mentioned above, so please make sure you have the 1.5.0 version installed from bioconda and not PyPI.

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

3 participants