-
Notifications
You must be signed in to change notification settings - Fork 59
Description
Description of the bug
While installing DRAM (DRAM-bio==1.5.0) in a fresh conda environment (Python 3.10), DRAM.py installs successfully, but DRAM-setup.py fails immediately with a SyntaxError.
The error occurs before any database configuration is attempted.
Error Message
File ".../envs/dram_env/bin/DRAM-setup.py", line 124
set_db_locs_parser.add_argument('--camper_tar_gz_loc', default=None,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
Problematic Code Snippet
Lines 123–127 in the installed DRAM-setup.py look like this:
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')
The --viral_loc argument appears to be truncated and missing its help= definition, causing a syntax error.
Correct structure should be something like:
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')
System information
DRAM-bio version: 1.5.0
Installed via: pip (inside conda environment)
Python version: 3.10
OS: Linux (HPC cluster)
Command used and terminal output
Relevant files
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status