You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When two input genomes have same basename, the genome from the first run is mistakenly used for the second run. The cause is that for the first run, the first input genome (e.g., genome.fasta) is copied to the PGAP working directory, but for the second run, the second input genome is not copied and the first input genome is reused.
A related bug (untested): the use of fixed files names (input.yaml, submol.yaml) and user-supplied basenames as intermediate files in PGAP working directory. precluded concurrent execution of PGAP.
Another related bug (also untested, and now I'm just being silly): What happens if the path for my genome is "path/pgap.py"? :-)
The expected behavior is that the second input genome is used as input to the second PGAP run. This might be achieved by deleting the working files (genome.fasta, input.yaml, submol.yaml) from the PGAP working directory. This might be achieved by mktemp'ing a new directory within the PGAP working directory to contain the working files.
Software versions (please complete the following information):
OS: Debian 12
pgap.py --version: 2023-10-03.build7061
docker --version: 20.10.24+dfsg1, build 297e128
The text was updated successfully, but these errors were encountered:
Hey Paul! We have an open internal ticket to address the concurrency implications of pgap's use of fixed filenames. In the meantime, you can work around this by creating a temp dir and cd'ing to it before invoking pgap.
Describe the bug
When two input genomes have same basename, the genome from the first run is mistakenly used for the second run. The cause is that for the first run, the first input genome (e.g.,
genome.fasta
) is copied to the PGAP working directory, but for the second run, the second input genome is not copied and the first input genome is reused.A related bug (untested): the use of fixed files names (
input.yaml
,submol.yaml
) and user-supplied basenames as intermediate files in PGAP working directory. precluded concurrent execution of PGAP.Another related bug (also untested, and now I'm just being silly): What happens if the path for my genome is "path/pgap.py"? :-)
To Reproduce
Expected behavior
The expected behavior is that the second input genome is used as input to the second PGAP run. This might be achieved by deleting the working files (
genome.fasta
,input.yaml
,submol.yaml
) from the PGAP working directory. This might be achieved by mktemp'ing a new directory within the PGAP working directory to contain the working files.Software versions (please complete the following information):
The text was updated successfully, but these errors were encountered: