Closed bioinformagica closed 1 year ago
Thank you for the detailed report.
This is due to an error here: https://github.com/bacpop/PopPUNK/blob/master/PopPUNK/sketchlib.py#L564
Should be ref_db
and not dbPrefix
I can fix this in the next release.
If you are able, I would appreciate it if you could re-run the version with absolute paths but omitting the --plot-fit
argument, just to double-check this is the only issue.
Hello, thank you for the quick reply !
I can fix this in the next release.
Thanks !
If you are able, I would appreciate it if you could re-run the version with absolute paths but omitting the --plot-fit argument, just to double-check this is the only issue.
Yeah the problem was indeed with the --plot-fit argument, without it the run is completed regardless of the ABSPATH:
$ poppunk --create-db --output /home/hugo/projects/reparoma/results/poppunk/s_genus_poppunk_db --r-files /home/hugo/projects/reparoma/data/rlist.txt --threads 3 --min-k 14 --max-k 29
Activating conda environment: .snakemake/conda/6b1d5b960a33e4a9c375ef19f5bc27fe
PopPUNK (POPulation Partitioning Using Nucleotide Kmers)
(with backend: sketchlib v2.0.0
sketchlib: /home/hugo/projects/reparoma/.snakemake/conda/6b1d5b960a33e4a9c375ef19f5bc27fe/lib/python3.10/site-packages/pp_sketchlib.cpython-310-x86_64-linux-gnu.so)
Graph-tools OpenMP parallelisation enabled: with 3 threads
Mode: Building new database from input sequences
Sketching 10 genomes using 3 thread(s)
Progress (CPU): 10 / 10
Writing sketches to file
Calculating random match chances using Monte Carlo
Calculating distances using 3 thread(s)
Progress (CPU): 100.0%
Done
Dear developers, I'm i having a little trouble using absolute paths to run --create-db.
When i run with --output ABSPATH i get an error, but the same does not happen when i use RELATIVEPATH like in the tutorial.
I did a quick fix by moving the db after its creation, but i thought it would be cool to report the issue here.
Using abs path (error):
Using relative path (works):
obs: i'm using basename to get relative paths bc this CLs are create by snakemake.
poppunk_env.yaml.txt