Running metaGEM.sh parser locally #79
-
Hi, [Wed Mar 3 12:56:47 2021] /bin/sh: 1: sbatch: not found Job failed, going on with independent jobs. Do you know what can i do ? |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 3 replies
-
Hi Karine, You are getting that error because your machine does not recognize the Slurm cluster command For the sake of explanation, if you wanted to run quality filtering jobs on your local computer then you would replace line 22 of your Snakefile with the output of the Thanks for your interest in metaGEM and please let me know if you have any follow up questions. |
Beta Was this translation helpful? Give feedback.
-
I thought it could work on a computer because in the automatic installation it was indicated that it was possible to install it on a local machine. |
Beta Was this translation helpful? Give feedback.
-
I work with an HPC that doesn't use Slurm to run our jobs, so this flag would be useful for HPCs as well. |
Beta Was this translation helpful? Give feedback.
-
Hi @karinedurand, yes you can install it locally for running small tests or a small subset of samples, but I want to highlight the fact that it will not be practical for your to process entire real metagenomic datasets (on the order of terabytes of data) on your local machine. I would strongly recommend you obtain access to a computer cluster for analysis of metagenomic data with metaGEM. Hi @Lucas-Maciel, what workload manager does your cluster use? We can probably easily modify the Best, |
Beta Was this translation helpful? Give feedback.
-
@franciscozorrilla our HPC is using SGE. |
Beta Was this translation helpful? Give feedback.
-
@Lucas-Maciel, OK thanks for the info. I confess that have never used SGE/OGE, and I do not have access to a cluster with that workload manager, so I may need your help to double check that everything is running smoothly. Based on some documentation that I am reading, it seems like it should be quite trivial to add support for SGE/OGE. If I understand correctly |
Beta Was this translation helpful? Give feedback.
-
@franciscozorrilla I replaced it with sed but it will still need some modifications regarding the configuration files (how to set memory, time, how many jobs at a time...). I'll try to do that myself qsub: Negative or zero step in range is not allowed |
Beta Was this translation helpful? Give feedback.
-
Hi @karinedurand, I have modified the @Lucas-Maciel let me know if/when you are able to modify the cluster_config.json/metaGEM.sh files to play nice the the SGE scheduler and I will gladly incorporate your changes. I opened up a new issue (#18) specific to this. Best wishes, |
Beta Was this translation helpful? Give feedback.
-
Closing this for now due to inactivity. |
Beta Was this translation helpful? Give feedback.
Hi @karinedurand, I have modified the
metaGEM.sh
script in this commit to take the-l
or--local
flag for running jobs on a local machine. Simply replace yourmetaGEM.sh
script with the newer version on the master branch and give it a try. You don't have to specify number of jobs, number of cores, memory, or hours, since these parameters are only used by the cluster workload scheduler for submitting jobs. Your jobs will run for as long as they need to (likely for a long time in the case of assemblies for example), they will run in series (i.e. only one at a time), and they will use as much memory as is available on your machine. Regarding the number of cores for the different tasks, this …