Closed letseatebil closed 2 weeks ago
Thank you for your report, use @letseatebil !
This is incorrect:
The command that is used to execute pgap within a job script is:
singularity exec /hpcfs/users/a1809437/PGAP/pgap_2024-07-18.build7555.sif \
./pgap.py -r -o mg37_results --container-path /hpcfs/users/a1809437/PGAP/pgap_2024-07-18.build7555.sif \
--no-internet --docker singularity \
test_genomes/MG37/input.yaml
do not call it from inside singularity
, call it directly, like this:
./pgap.py -r -o mg37_results --container-path /hpcfs/users/a1809437/PGAP/pgap_2024-07-18.build7555.sif \
--no-internet --docker singularity \
test_genomes/MG37/input.yaml
Thanks for the prompt response!
I made the necessary amendments but I am getting this error instead
/scratchdata1/users/a1809437/PGAP/./pgap.py:133: SyntaxWarning: invalid escape sequence '\['
r = "^\[(?P<time>[^\]]+)\] (?P<level>[^ ]+) \[(?P<source>[^ ]*) (?P<name>[^\]]*)\] (?P<status>.*)"
/scratchdata1/users/a1809437/PGAP/./pgap.py:978: SyntaxWarning: invalid escape sequence '\-'
if not re.match("^[a-zA-Z0-9_\-]+$", prefix):
/scratchdata1/users/a1809437/PGAP/./pgap.py:1109: SyntaxWarning: invalid escape sequence '\-'
parser.error("Invalid Command Line Argument Error: Both arguments -s\--organism and -g\--genome must be provided if no YAML file is provided.")
Output will be placed in: /scratchdata1/users/a1809437/PGAP/mg37_results
--no-internet flag enabled, not checking remote versions.
<urlopen error [Errno 110] Connection timed out>
Failed to update ./pgap.py, ignoring
Something has gone wrong, please manually download: https://github.com/ncbi/pgap/raw/prod/scripts/pgap.py
I checked the mg37_results folder but its empty. I proceeded to run ./pgap.py --update
(outside of the job script, running within the job script leads to a TimeoutError) again to ensure I am up to date.
PGAP version 2024-07-18.build7555 is up to date.
Docker not found.
I am not sure if redownloading pgap.py would solve the issue since I have done so 3 times and am absolutely stumped.
Could you please post the output of
python3 --version
This is the latest python module that is available to me on my cluster
[a1809437@p2-log-1 PGAP]$ python3 --version
Python 3.11.3
OK. We can ignore SyntaxWarning lines for now - they are just warnings, albeit annoying (that's why we already fixed them and they will be gone in next release)
bq. PGAP version 2024-07-18.build7555 is up to date.
You can manually verify if the script lies. If you do not have PGAP_INPUT_DIR envar set, your PGAP installations should be under $HOME/.pgap or if you have this envar set then under directory pointed to by that envar.
One of the "resets" that can be made is cleaning up that directory and trying installing again, this time with singularity parameter specified:
./pgap.py --update --docker singularity
Thanks for your help! I removed and cleaned up the directory for reinstallation and included the singularity parameter and the issue is fixed now :). Thank so much for your help once again!
Glad your problems were resolved! You are welcome, user @letseatebil !
I am trying to do a test run on the test genomes provided on PGAP which i have installed (Based on the quick start on my HPC cluster but it gave the error
This is due to the lack of internet access when executing as a job script so I tried adding the
--no-internet
flag but it gave another error:I then tried to include the flag
--docker singularity
to force it to run on singularity but received the same error indicatingDocker not found.
PGAP version is 2024-07-18.build7555 Singularity version is 3.10.5 Python version is 3.11.3
The command that is used to execute pgap within a job script is:
Is there a way to force the execution on Singularity since my cluster does not provide a docker module or am I missing something? Thanks!