Skip to content

Jianhua-Wang/autosbatch

Repository files navigation

autosbatch

pypi python Build Status codecov License: MIT PyPI download month

submit hundreds of jobs to slurm automatically

Features

Sometimes, it's quite inconvenient when we submit hundreds of jobs to slurm. For example, one needs to align RNA-seq data from one hundred samples. He may start with a bash script that takes the fastq of one sample and write sbatch scripts which execute bash align.sh sample.fq multiple times. If he wants to run 50 samples at the same time, he should write 50 sbatch scripts and each script contains two align commands. Manually managing these sbatch scripts is inconvenient. autosbatch is very helpful for submitting slurm jobs automatically and it's just like the multiprocessing.Pool.

  • Automatically submit hundreds of jobs to Slurm with a few code.
  • The same usage as multiprocessing.Pool.
  • Provide command line tool for people who are not familiar with Python.

TODO

  • Support gpu allocation
  • Support MPI jobs

Credits

This package was created with Cookiecutter and the waynerv/cookiecutter-pypackage project template.