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

.dist.npy needed by poppunk --qc-db #334

Open
DOH-JDJ0303 opened this issue Oct 23, 2024 · 1 comment
Open

.dist.npy needed by poppunk --qc-db #334

DOH-JDJ0303 opened this issue Oct 23, 2024 · 1 comment

Comments

@DOH-JDJ0303
Copy link

Versions
poppunk v2.7.0

Command used and output returned
Command:
poppunk --qc-db --ref-db test6
Output:

PopPUNK (POPulation Partitioning Using Nucleotide Kmers)
        (with backend: sketchlib v2.1.1
         sketchlib: /root/micromamba/envs/poppunk/lib/python3.10/site-packages/pp_sketchlib.cpython-310-x86_64-linux-gnu.so)

Graph-tools OpenMP parallelisation enabled: with 1 threads
Traceback (most recent call last):
  File "/root/micromamba/envs/poppunk/bin/poppunk", line 11, in <module>
    sys.exit(main())
  File "/root/micromamba/envs/poppunk/lib/python3.10/site-packages/PopPUNK/__main__.py", line 420, in main
    refList, queryList, self, distMat = readPickle(distances, enforce_self=True)
  File "/root/micromamba/envs/poppunk/lib/python3.10/site-packages/PopPUNK/utils.py", line 193, in readPickle
    X = np.load(pklName + ".npy")
  File "/root/micromamba/envs/poppunk/lib/python3.10/site-packages/numpy/lib/npyio.py", line 405, in load
    fid = stack.enter_context(open(os_fspath(file), "rb"))
FileNotFoundError: [Errno 2] No such file or directory: 'test6/test6.dists.npy'

Describe the bug
poppunk --db-qc requires the .dist.npy file. PopPUNK v2.7.0 no longer outputs this file when updating a database using poppunk_assign.

@johnlees
Copy link
Member

The intended use of db-qc is after a new database has been created, we would expect QC to be run as part of poppunk_assign not separately. Is this not possible due to #335?

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