Closed flass closed 3 years ago
I'll add that subsequently running the --fit-model
command:
--fit-model bgmm --ref-db /lustre/scratch118/infgen/team216/fl4/poppunk_7kVc/6kVcPGc \
--output /lustre/scratch118/infgen/team216/fl4/poppunk_7kVc/6kVcPGc --threads 8 \
--qc-filter prune --length-range 3500000 4500000 --max-a-dist 1 --K 3
it leads to the same issue as it returns:
Graph-tools OpenMP parallelisation enabled: with 8 threads
PopPUNK: visualise
Traceback (most recent call last):
File "/lustre/scratch118/infgen/team216/fl4/miniconda3/envs/poppunk230/bin/poppunk_visualise", line 10, in <module>
sys.exit(main())
File "/lustre/scratch118/infgen/team216/fl4/miniconda3/envs/poppunk230/lib/python3.8/site-packages/PopPUNK/visualise.py", line 340, in main
generate_visualisations(args.query_db,
File "/lustre/scratch118/infgen/team216/fl4/miniconda3/envs/poppunk230/lib/python3.8/site-packages/PopPUNK/visualise.py", line 193, in generate_visualisations
rlist, qlist, self, complete_distMat = readPickle(distances)
File "/lustre/scratch118/infgen/team216/fl4/miniconda3/envs/poppunk230/lib/python3.8/site-packages/PopPUNK/utils.py", line 129, in readPickle
with open(pklName + ".pkl", 'rb') as pickle_file:
FileNotFoundError: [Errno 2] No such file or directory: '6kVcPGc//lustre/scratch118/infgen/team216/fl4/poppunk_7kVc/6kVcPGc.dists.pkl'
Thanks for pointing this out @flass - I think this should be fixed on the mst_dev branch we are currently working on (see c1f4c5a23fecc5d099529c5948642dfa8569ed4c), but this hasn't been merged in yet because I'm being slow, apologies!
HI Nick,
thanks for the tip.
I have edited the code in the __main__.py
and assign.py
modules from my conda environment by hand to replicate the fix in c1f4c5a; as I was not sure I removed the corresponding *pyc
files in __pycache__
.
I also had to do a similar fix in visualise.py
for when calling poppunk_visualise
:
187: distances = os.path.basename(ref_db) + "/" + ref_db + ".dists"
189: distances = os.path.basename(query_db) + "/" + query_db + ".dists"
it seems to have done the trick.
Cheers, Florent
Thanks @flass - this other change has also been made on the mst_dev branch, I forgot to mention it, apologies.
Hi John, I've got a minor bug to report here:
Versions I am using PopPUNK v2.3.0 with pp-sketchlib 1.6.2, as provided by a conda environment built with
Command used and output returned I ruan the command:
I get this output (combined stdout and stderr streams):
in the specified output folder
/lustre/scratch118/infgen/team216/fl4/poppunk_7kVc/6kVcPGc
I can find the database, but not the plots:Describe the bug it seems that the plot function makes the path of ouput folder by pasting its specified dirname and full path name. It used to work OK if I executed the command in the folder above and gave a single-level relative path as value for
--output
. The rest of the--create-db
command runs fine though.Cheers,
Florent