Skip to content

Bash functions to ease work on supercomputer using SLURM

License

Notifications You must be signed in to change notification settings

MooersLab/bashFunctions4oscer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

version license: mit

Bash functions to ease work on the University of Oklahoma's Supercomputer

The University of Oklahoma's supercomputer is called Schooner and is run by the Oklahoma Center for Supercomputing Education and Research (OSCER).

The supercomputer uses the SLURM job queuing software. Some of the functions ease the use of this system. Other functions ease doing boring tasks.

These functions can be adapted to run on local unix-like machines (e.g., macOS and Linux)! The file paths will need editing. The bash script calls two Python scripts in the subfolder.

May this script inspire you to write new bash functions!

Usage in bash or zsh shells

These functions work in either bash or zsh shells. Source the .bashFunctions file from your .bashrc or .zshrc file. Then, enter the function name in the terminal and hit return or enter to get a printout in the terminal of the documentation, which includes examples.

Useful functions of note

  • The gac function combines git add and git commit -m.
  • The take function combines mkdir and cd to the new directory.
  • The rmspaces function removes those annoying whitespaces in the filenames of all files in the current directory.
  • The rmunderscores function removes underscores in the filenames of all files in the current directory.
  • The rmcommas function removes commas in the filenames of all files in the current directory.

Table of function names and descriptions (planned)

Related repositories

Sources of funding

  • NIH: R01 CA242845
  • NIH: R01 AI088011
  • NIH: P30 CA225520 (PI: R. Mannel)
  • NIH: P20 GM103640 and P30 GM145423 (PI: A. West)