Closed ganiatgithub closed 1 year ago
Dear @ganiatgithub,
Thank you for reporting this issue.
Could you please advise what version of Metaphor are you using? You can see that with the metaphor --help
command. If you are using an older version, please try updating it and re-running the tests.
I cannot find the --latency-wait flag in the metaphor call.
--latency-wait
is a Snakemake flag. I don't that specific flag will help in this case, but you can add any extra Snakemake flags to Metaphor by passing the --extras
flag, e.g.:
metaphor --extras " --latency-wait"
Please note that values passed to the --extras
flag must start with a space (this is an old Python unexpected behaviour).
I cannot find .snakemake/log/2023-05-10T110426.717873.snakemake.log, perhaps it is deleted?
This should be in the same directory where you ran the Metaphor command. If you run ls -a
in that directory, the .snakemake
should show (it needs the -a
flag as it is a hidden directory).
Those are the Snakemake logs, but you can also check the log in output/logs/annotation
directory for additional logs which can help you troubleshoot your problem. You can delete the output
and .snakemake
directories to run the tests from scratch.
Please let me know how it goes.
Thank you, Vini
Thanks for the quick reply.
The version I'm using v1.7.5 CLI
I'll try again.
Hi,
When I submit the following as a slurm job, it returns the following error, which seems related to python. Is the test run designed for directly running in terminal? (Didn't want to run test on the login node)
#!/bin/bash
#SBATCH --job-name=metaphor_test
#SBATCH --partition=m3g,comp,m3m,m3j,m3h
#SBATCH --time=3-00:00:00
#SBATCH --ntasks=1
#SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=12
mamba activate metaphor
cd /home/gnii0001/rk81_scratch/temporary_storage/test_data_metaphor
metaphor test -c 12
100%|██████████| 8/8 [00:21<00:00, 2.63s/it]
Traceback (most recent call last):
File "/home/gnii0001/rp24/gaofeng/tools/Miniconda3/envs/metaphor/bin/metaphor", line 10, in <module>
sys.exit(main())
^^^^^^
File "/home/gnii0001/rp24/gaofeng/tools/Miniconda3/envs/metaphor/lib/python3.11/site-packages/metaphor/cli/cli.py", line 260, in main
args.func(args)
File "/home/gnii0001/rp24/gaofeng/tools/Miniconda3/envs/metaphor/lib/python3.11/site-packages/metaphor/cli/test.py", line 139, in main
confirm_message(cores, max_mb)
File "/home/gnii0001/rp24/gaofeng/tools/Miniconda3/envs/metaphor/lib/python3.11/site-packages/metaphor/utils.py", line 82, in confirm_message
yn = input(
^^^^^^
EOFError: EOF when reading a line
Dear @ganiatgithub,
From your error message, it seems that your code got stuck waiting for the confirmation to start Metaphor. You can bypass that by adding the -y
flag to your command.
Thanks, V
Many thanks Vini.
By running in an interactive mode, I'm able to get the testing done.
So in case of a real analysis that I submit to the Slurm scheduler, I would always need to use the -v
flag?
Also, by the end of the test run, it says that future analysis can be done in the test folder. In reality I have structure my analysis elsewhere, and I will delete the fest folder. Does it mean the dependencies I have installed during test run will be downloaded again?
This is fine, just want to clarify.
Dear @ganiatgithub,
If you submit the Metaphor command as a job to the scheduler, yes you will need that flag. When I was running the pipeline on HPC I would run the Metaphor command on the login node and provided it with a cluster execution profile (see this page) and it would submit each task to the scheduler as a separate job. Do note you have to set the scheduler
setting to True
in the config for that to work.
Regarding dependencies, they should be in the Metaphor installation folder, so they will persist even if you delete the test directory. You can see the exact path with metaphor config show --conda-prefix
.
Please let me know if you have any further questions.
Best, V
Hi Vini,
Thanks for the nice program. I'm doing a test run with
metaphor test -c 4
and encountered the following. I cannot find the--latency-wait
flag in the metaphor call. Also, is the subsequent error in job 79 related to this? I cannot find.snakemake/log/2023-05-10T110426.717873.snakemake.log
, perhaps it is deleted?Kind regards, Gaofeng
Error message: