Jump to HeaderJump to Main ContentJump to Footer
Michigan State University
Michigan State University
ICER Institute for Cyber-Enabled Research
  • HPCC Status
  • ICER Docs

ICER Institute for Cyber-Enabled Research

  • About
    • Overview
    • News
    • Affiliations
    • Employment Opportunities
    • FAQ
    • Newsletters
    • 20th Anniversary
    Supercomputer hardware with blue and green lights and many wires connect it together.

    View and download photos of ICER's hardware.

    Photo Gallery
  • |
  • System Status
    • Overview
    • HPCC Service Status
    • ICER Status Dashboard
  • |
  • For HPCC Users
    • Overview
    • Getting Started
    • HPCC System Info
    • HPCC User Documentation
    • Buy-In Options
    • Topic of the Month
  • |
  • Research Services
    • Overview
    • Research Highlights
    • Publications
    • Citing ICER
    • Grant and Research Assistance
    • Academic Research Consulting Services
    • Opportunities and Communities
  • |
  • Training and Education
    • Overview
    • Webinars and Seminars
    • Asynchronous Tutorials
    • Classroom Support
  • |
  • Contact
    • Overview
    • Directory
ICER Institute for Cyber-Enabled Research
  • About
  • System Status
  • For HPCC Users
  • Research Services
  • Training and Education
  • Contact

< About

  • Overview
  • News
  • Affiliations
  • Employment Opportunities
  • FAQ
  • Newsletters
  • 20th Anniversary
Supercomputer hardware with blue and green lights and many wires connect it together.

View and download photos of ICER's hardware.

Photo Gallery

< System Status

  • Overview
  • HPCC Service Status
  • ICER Status Dashboard

< For HPCC Users

  • Overview
  • Getting Started
  • HPCC System Info
  • HPCC User Documentation
  • Buy-In Options
  • Topic of the Month

< Research Services

  • Overview
  • Research Highlights
  • Publications
  • Citing ICER
  • Grant and Research Assistance
  • Academic Research Consulting Services
  • Opportunities and Communities

< Training and Education

  • Overview
  • Webinars and Seminars
  • Asynchronous Tutorials
  • Classroom Support

< Contact

  • Overview
  • Directory
  • HPCC Status
  • ICER Docs
ICER > For HPCC Users > Topic of the Month >

Submitting jobs without qsub scripts

Submitting Jobs Without Qsub Scripts

When you submit a job with qsub, you would normally put a few lines of PBS directives followed by your commands in a job submission script say, job.qsub, and then type qsub job.qsub on the command line. However, if you want to submit multiple jobs in parallel, and they are only slightly different from each other, creating as many qsub scripts as there are jobs can be frustrating.  

In the example below, we used seqtk to randomly sample 1% of the reads from paired-end fastq files. We tried two different seeds (-s100 and -s500) and, to keep pairing, the seed was the same for read files 1 and 2. The way each of these four jobs is submitted is by echo-ing (echo) and piping (|) commands to qsub, without needing a script to contain them.

echo "module load seqtk/1.0; seqtk sample -s100 /mnt/research/common-data/Examples/RNASeq-Model/data/ERR315325_1.fastq 0.01 > ~/out1_r1.fq" | qsub -l walltime=00:30:00,mem=50mb -N out1_r1

echo "module load seqtk/1.0; seqtk sample -s100 /mnt/research/common-data/Examples/RNASeq-Model/data/ERR315325_2.fastq 0.01 > ~/out1_r2.fq" | qsub -l walltime=00:30:00,mem=50mb -N out1_r2

echo "module load seqtk/1.0; seqtk sample -s500 /mnt/research/common-data/Examples/RNASeq-Model/data/ERR315325_1.fastq 0.01 > ~/out2_r1.fq" | qsub -l walltime=00:30:00,mem=50mb -N out2_r1

echo "module load seqtk/1.0; seqtk sample -s500 /mnt/research/common-data/Examples/RNASeq-Model/data/ERR315325_2.fastq 0.01 > ~/out2_r2.fq" | qsub -l walltime=00:30:00,mem=50mb -N out2_r2

It should be noted that, in the above examples, each job is as simple as a one-liner command. For larger jobs, writing a qsub script in the usual way would still be preferable.

More information about Singularity and how to use it can be found on the HPCC Wiki (Singularity Introduction - MSU HPCC User Documentation).
 

Michigan State University
  • Documentation Homepage
  • HPCC Service Status
  • ICER Newsletter

Contact us

Contact Form Link

Address

Biomedical & Physical Sciences Building 567 Wilson Road, Room 1440 East Lansing, Michigan 48824-1226

Follow Us

  • Visit our Facebook page
  • Visit our page on X
  • Visit our Instagram page
  • Visit our LinkedIn page
  • Visit our YouTube page

If you're having accessibility issues, please let us know.

Michigan State University
  • Contact Information|
  • Site Map|
  • Privacy Statement|
  • Site Accessibility|
  • Call MSU: (517) 355-1855|
  • Visit: msu.edu|
  • Notice of Nondiscrimination|

SPARTANS WILL|© Michigan State University|