Useful scripts and examples for The University of Chicago's RCC resource (https://rcc.uchicago.edu).
-
.bashrcA starter .bashrc file to put in your shell so that you don't accidentallyrm * -
machine_info.pyA pythongn script to identify cpus, cores, and threads. -
monkey_shakespear.pyA python script to randomly generate Shakespear style sentences. -
sample_data/A collection of FASTA files for examples. -
blastA benchmarking demonstration using BLASTp for sequence alignment. Note: This has not been updated for Midway3.
Submits a single job to a single node. Noteably it does not use srun, as it isn't needed.
Submits a job to print "Hellow World" from 6 different notes. The nodes also report their hostname.
Submits a job to 6 nodes that each generate a monkey shakespear sentence. The results are all collected in a single file.
Submits a job that uses the sbatch ARRAY parameter to pass an index 0-10 to each job.
A complex job that is drive by a Python script tha performs the following tasks:
- Load in database file that is going to be split into equal chunks
- Create a custom
generated.sbatchfile for this run that uses our nodes and chunked database - Submit the file using sbatch and collect the
job idfrom the output - Create a
cleanup.sbatchscript to collect all the ouput and cleanup all the intermediary files to a folder - Submit
clean.sbatchas a dependency jbos
An exemple bash and python script showing how to create dependency jobs that require one job to finish before another starts.
A hybrid workflow that submits jobs to each node. On the node the script uses python multiprocessing.