User Tools

Site Tools


howto:bioinformatics

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
howto:bioinformatics [2021/06/28 11:35]
ischeepers [Web Portal Access]
howto:bioinformatics [2025/05/21 10:50] (current)
nmfuphi [Singularity]
Line 62: Line 62:
 chpc/BIOMODULES                              iperf/3.0.11 chpc/BIOMODULES                              iperf/3.0.11
 chpc/cp2k/2.6.2/openmpi-1.8.8/gcc-5.1.0      lapack/gcc/64/3.5.0 chpc/cp2k/2.6.2/openmpi-1.8.8/gcc-5.1.0      lapack/gcc/64/3.5.0
-chpc/dlpoly/1.9/openmpi-1.8.8/gcc-5.1.0      lapack/open64/64/3.5.0 +...
-chpc/dlpoly/4.07/openmpi-1.8.8/gcc-5.1.0     mpich/ge/gcc/64/3.1.4 +
-chpc/dlpoly/4.08/openmpi-1.8.8/gcc-5.1.0     mpich/ge/open64/64/3.1.4 +
-chpc/gaussian09/D01                          mpiexec/0.84_432 +
-chpc/gaussian09/E01                          mvapich/gcc/64/1.2rc1 +
-chpc/gromacs/5.1.2/openmpi-1.8.8/gcc-5.1.0   mvapich/open64/64/1.2rc1 +
-chpc/hdf5/1.8.16/intel/16.0.1                netcdf/gcc/64/4.3.3.1 +
-chpc/lammps/16Feb16/openmpi-1.8.8/gcc-5.1.0  netcdf/open64/64/4.3.3.1 +
-chpc/namd/2.11/openmpi-1.8.8/gcc-5.1.0       netperf/2.6.0 +
-chpc/netcdf/4.4.0-C/intel/16.0.1             open64/4.5.2.1 +
-chpc/netcdf/4.4.3-F/intel/16.0.1             openblas/dynamic/0.2.14 +
-chpc/openmpi/1.10.2/gcc-5.1.0                openlava/3.0 +
-chpc/openmpi/1.10.2/intel-16.0.1             openmpi/pgi/64/1.8.5 +
-chpc/openmpi/1.8.8/gcc-5.1.0                 puppet/3.7.5 +
-chpc/openmpi/1.8.8/intel-16.0.1              scalapack/gcc/64/1.8.0 +
-chpc/parallel_studio_xe/16.0.1/2016.1.150    scalapack/open64/64/1.8.0 +
-chpc/parallel_studio_xe/64/16.0.1/2016.1.150 sge/2011.11p1 +
-chpc/python/2.7.11                           slurm/14.11.6 +
-chpc/python/3.5.1                            torque/5.1.0+
 </file> </file>
  
Line 211: Line 193:
 username@login01:~ $ username@login01:~ $
 </code> </code>
 +
 +===== Software Environments =====
 +
 +==== Conda ====
 +Many scientific software tools rely on specific versions of libraries, compilers, and dependencies that often conflict with each other or with system-wide installations. **Conda** is a powerful, language-agnostic environment and package manager that helps solve this problem by allowing users to manage **Python**, **R**, **C/C++**, **FORTRAN**, and other language ecosystems in **isolated environments**.
 +
 +=== Shared Conda Environments ===
 +
 +For most use cases, especially in bioinformatics, CHPC provides pre-built, **shared Conda environments** installed under:
 +
 +  '/apps/chpc/bio/anaconda3-2020.02/envs'
 +
 +These environments are curated by CHPC staff to include commonly used tools in genomics, transcriptomics, and other domains.
 +
 +=== Step-by-step usage ===
 +
 +=== Step 1: Load required modules ===
 +To access Conda functionality, first load the required modules:
 +<code bash>
 +module load chpc/BIOMODULES
 +module load conda_init
 +</code>
 +
 +The second module updates your .bashrc file by adding necessary shell variables.
 +To apply these changes, you can either log out and log back in, or run: <code bash>source ~/.bashrc. </code>
 +After this setup, you won’t need to load additional modules for your jobs—only the eval and conda activate steps are required.
 +
 +=== Step 2: Initialize Conda in your shell ===
 +Activate Conda shell integration:
 +<code bash>
 +eval "$(conda shell.bash hook)"
 +</code>
 +
 +This command sets up your shell environment to recognize Conda commands like `conda activate`.
 +
 +=== Step 3: List available environments ===
 +<code bash>
 +conda info --envs
 +</code>
 +
 +This will display all available shared Conda environments and their paths.
 +
 +=== Step 4: Activate a shared environment ===
 +<code bash>
 +conda activate nameOfTheEnv
 +</code>
 +
 +Replace ''nameOfTheEnv'' with the name of an environment from the previous step.
 +
 +> **Tip:** If you're unsure which environment to use, contact CHPC support or explore the environment's contents with `conda list`.
 +
 +> **Note:** You do **not** need to install anything when using shared environments.
 +
 +=== Creating Private Conda Environments ===
 +
 +If you need software that is not included in the shared environments, you may create your own **private Conda environment**. This gives you full control over the software stack and package versions.
 +
 +> **Important:** Do **not** install environments in your home directory (''/home/<username>'') -use your Lustre project storage instead.
 +
 +=== Step-by-step setup ===
 +ssh to username@scp.chpc.ac.za, the password is the same as the one you use on lengau
 +=== Step 1: Load Conda ===
 +<code bash>
 +module load chpc/BIOMODULES
 +module load conda_init
 +eval "$(conda shell.bash hook)"
 +</code>
 +
 +=== Step 2: Create a new environment ===
 +<code bash>
 +conda create --prefix /mnt/lustre/<username>/myenv python=3.10
 +</code>
 +
 +This will create a Conda environment at the specified path with Python 3.10 installed. You can replace the Python version or leave it out if not needed.
 +
 +=== Step 3: Activate your environment ===
 +<code bash>
 +conda activate /mnt/lustre/<username>/myenv
 +</code>
 +
 +After activation, you can install any packages you need.
 +
 +=== Step 4: (Optional) Install Mamba for faster package management ===
 +<code bash>
 +conda install mamba -n base -c conda-forge
 +</code>
 +
 +> **Tip:** Mamba is a drop-in replacement for Conda that uses a faster dependency solver written in C++. Once installed, you can use `mamba` instead of `conda` for installing packages:
 +<code bash>
 +mamba install numpy pandas
 +</code>
 +
 +This significantly speeds up installations and environment solves, especially when working with large scientific packages.
 +
 +
 +=== Step 5: Install packages ===
 +<code bash>
 +conda install numpy pandas matplotlib
 +</code>
 +
 +You can install packages one by one, or include them during environment creation:
 +<code bash>
 +conda create --prefix /mnt/lustre/<username>/myenv python=3.10 numpy pandas
 +</code>
 +
 +=== Step 6: Remove unused environments ===
 +Old or unused environments can be removed to free up space:
 +<code bash>
 +conda remove --prefix /mnt/lustre/<username>/myenv --all
 +</code>
 +
 +=== Best Practices ===
 +  * ✅ Use **shared environments** whenever possible for consistency and faster setup.
 +  * 📁 Create private environments **only in Lustre** directories, such as ''/mnt/lustre/<username>''.
 +  * ⚠️ Do **not** use Conda in your ''$HOME'' directory, it may lead to quota issues or slow performance.
 +  * 📌 Use the ''--prefix'' flag to create environments with absolute paths, especially on clusters where ''--name'' may default to ''$HOME''.
 +  * 🧼 Periodically clean up unused environments with `conda remove --all`.
 +  * 🔁 Reuse environment definitions by exporting and sharing them with others or for reproducibility.
 +
 +=== Troubleshooting ===
 +  * ❓ **Conda not recognized?** Make sure you loaded `conda_init` and ran `eval "$(conda shell.bash hook)"`.
 +  * 🚫 **Permission denied?** You might be trying to write to a restricted directory like ''/apps'' or ''$HOME''.
 +  * 🔄 **Environment behaving unexpectedly?** Try deactivating (`conda deactivate`) and reactivating, or recreate the environment.
 +  * 🧪 **Conflicts during install?** Use `conda clean --all` to clear caches and retry with a minimal environment.
 +
 +==== Singularity ====
 +
 +Singularity is an open-source, cross-platform container platform specifically designed for scientific and high-performance computing environments. It prioritizes reproducibility, portability, and security, all essential for scientific workflows. Singularity enables users to package entire workflows, including software, libraries, and environment settings, into a single container image. This ensures consistent application execution across various systems without modification. This capability simplifies the migration of complex computational environments and supports reproducible research practices. [[https://docs.sylabs.io/guides/3.7/user-guide/|A detailed Singularity user guide is available here]].
 +
 +
 +=== Location of Bioinformatics Singularity Images at CHPC ===
 +
 +Singularity images for commonly used bioinformatics tools are stored in the following directories:
 +
 +<code>
 +/apps/chpc/bio  
 +/home/apps/chpc/bio
 +</code>
 +
 +To view the available .sif images, run the following script:
 +
 +<code bash>
 +#!/bin/bash
 +dirs=("/home/apps/chpc/bio" "/apps/chpc/bio")
 +
 +# Loop through and search for .sif files only in immediate subdirectories
 +for dir in "${dirs[@]}"; do
 +    if [ -d "$dir" ]; then
 +        echo "Searching for .sif files under $dir (only first subfolder level):"
 +        find "$dir" -mindepth 2 -maxdepth 2 -type f -name "*.sif" -readable -exec ls -al {} \; 2>/dev/null
 +    else
 +        echo "Directory $dir does not exist."
 +    fi
 +done
 +</code>
 +
 +=== Pulling a Singularity Image ===
 +
 +Before pulling a new image, run the script above to check if it’s not already available. Only proceed with pulling the image yourself if you’re confident in what you’re doing and plan to remove it afterwards.
 +
 +⚠️ **Important**: Singularity image files can be very large and may consume significant storage in your Lustre or project directory. Please remove any images you no longer need to help conserve shared storage resources.
 +
 +
 +**To pull Singularity images from public container registries (like DockerHub), follow these steps:**
 +
 +SSH into the CHPC Globus node:
 +
 +<code bash>
 +ssh username@globus.chpc.ac.za
 +</code>
 +
 +Load the Singularity module:
 +
 +<code bash>
 +module load chpc/singularity
 +</code>
 +
 +Navigate to your desired working directory:
 +
 +<code bash>
 +cd /path/to/working_directory
 +</code>
 +
 +Pull the image from DockerHub (or another registry):
 +
 +<code bash>
 +singularity pull docker://repository/image:tag
 +</code>
 +
 +This downloads and converts the image into a local .sif file saved in your current directory.
 +
 +===Running Singularity===
 +
 +<code bash>
 +singularity exec /path/to/image.sif <command> <OPTIONS>
 +</code>
 +
 +=== Running Singularity with External Databases ===
 +
 +Most bioinformatics containers don’t include large reference datasets. Instead, bind external directories at runtime.
 +
 +CHPC provides bioinformatics databases at:
 +
 +<code>
 +/mnt/lustre/bsp/DB
 +</code>
 +
 +These include reference genomes, annotation and index files used by BWA, BLAST, Kraken2, etc.
 +
 +** How to Bind a Database Directory **
 +
 +Use the --bind (or -B) option:
 +
 +<code bash>
 +singularity exec --bind /mnt/lustre/bsp/DB:/databases /path/to/my_image.sif <your_command>
 +</code>
 +
 +**Explanation**:
 +
 +/mnt/lustre/bsp/DB:/databases → Host path mapped to container path
 +
 +/path/to/my_image.sif → Singularity image path
 +
 +<your_command> → The tool command (e.g., bwa index, blastn, etc.)
 +
 +Inside the container, always refer to the database as /databases unless specified otherwise on the manual.
 +
 +== Binding Multiple Directories ==
 +
 +Use a comma-separated list:
 +
 +<code bash>
 +singularity exec --bind /mnt/lustre/bsp/DB:/databases,/mnt/lustre/username/data:/data /path/to/my_image.sif <your_command>
 +</code>
 +
 +This binds:
 +
 +- /mnt/lustre/bsp/DB to /databases
 +- /mnt/lustre/username/data to /data
 +
 +Use those paths in your tools or pipelines.
 +
 +**Best Practices**
 +
 +1. Use absolute paths for bindings.
 +
 +2. Keep host/container paths logical (e.g., /databases, /data).
 +
 +3. Clean up containers and intermediate data regularly.
 +
 +To clean up:
 +
 +<code bash>
 +rm /path/to/image.sif
 +rm -rf /path/to/working_directory/*.sif
 +</code>
 +
 +**Clean the Singularity cache periodically:**
 +
 +<code bash>
 +singularity cache clean
 +</code>
 +
 +=== PBS Template for Running a Singularity Container ===
 +
 +<code bash>
 +#!/bin/bash
 +#PBS -N singularity_job
 +#PBS -q normal
 +#PBS -l select=1:ncpus=24
 +#PBS -l walltime=12:00:00
 +#PBS -o singularity_output.log
 +#PBS -e singularity_error.log
 +#PBS -M your.email@domain.com
 +#PBS -m abe
 +
 +# Load necessary modules
 +module load chpc/singularity
 +
 +# Change to your working directory
 +cd $PBS_O_WORKDIR
 +
 +# Run your command inside the container
 +singularity exec --bind /mnt/lustre/projects/<your_project>:/data my_image.sif <your_command_inside_container>
 +</code>
 +
 +==== Nextflow ====
 +
 +Nextflow is a free and open-source workflow management system that enables the development and execution of data analysis pipelines. It simplifies complex computational workflows and ensures reproducibility, scalability, and portability—whether you’re working on a laptop, HPC cluster, or in the cloud. Nextflow workflows are written using DSL2, allowing modular code design and seamless integration with container technologies like Docker, Singularity, Conda, or manual installations.
 +[[https://www.nextflow.io/docs/latest/index.html|Official documentation is available here]].
 +
 +=== Running Nextflow on the CHPC Cluster ===
 +
 +CHPC supports Nextflow workflows through Singularity containers. Since compute nodes have no internet access, all dependencies must be downloaded in advance on the login node.
 +
 +=== 1. Connect to the Login Node ===
 +
 +Log into the CHPC login node using your Lengau credentials:
 +
 +<code bash> ssh username@scp.chpc.ac.za </code>
 +
 +Use this session to prepare your workflow and submit jobs.
 +
 +=== 2. Load the Nextflow Module ===
 +
 +Load the necessary environment modules:
 +
 +<code bash>module load chpc/BIOMODULES nextflow
 +module load chpc/singularity
 +</code>
 +
 +Note: Modules must be reloaded in every new session unless added to your ~/.bashrc.
 +
 +=== 3. Pull Workflow and Dependencies ===
 +
 +Pull your workflow and dependencies on the login1 node:
 +
 +Pull the workflow:
 +<code bash> nextflow pull nf-core/rnaseq </code>
 +
 +Run a test execution:
 +<code bash> nextflow run nf-core/rnaseq -profile test </code>
 +
 +This will:
 +
 +Cache the workflow in ~/.nextflow/assets/
 +
 +Download containers (if configured)
 +
 +Retrieve auxiliary files and dependencies
 +
 +=== Cached Files and Workflow Structure ===
 +
 +Workflow code is stored in:
 +<code>~/.nextflow/assets</code>
 +
 +Container images are stored in:
 +<code>~/.singularity</code>
 +
 +**🗂 Finding the nextflow.config File**
 +
 +After pulling a workflow, you’ll typically find the nextflow.config file in its root directory.
 +
 +Example:
 +<code bash>
 +cd ~/.nextflow/assets/nf-core/rnaseq/
 +ls
 +</code>
 +
 +Look for:
 +<code>nextflow.config</code>
 +If missing, config files may reside in the conf/ directory or be fetched remotely. You can always override settings by creating your own nextflow.config.
 +
 +🚫 No Manual PBS Scripts Needed
 +Nextflow automatically generates and submits PBS scripts. You only define resources in nextflow.config.
 +
 +=== ⚙️ Configuration with nextflow.config ===
 +
 +== 🔧 1. Global Resource Settings ==
 +
 +Set default resource usage for all workflow processes:
 +
 +<code nextflow> process {
 +    executor = 'pbs'
 +
 +    withLabel: big_job {
 +        queue = 'smp'
 +        cpus = 24
 +        memory = '120 GB'
 +        time = '24h'
 +    }
 +}
 + </code>
 +== 🏷️ 2. Custom Resource Labels ==
 +
 +Customize resources for specific process groups using labels:
 +
 +<code nextflow>
 +process {
 +    executor = 'pbs'
 +
 +    withLabel: big_job {
 +        cpus = 16
 +        memory = '64 GB'
 +        time = '12h'
 +        queue = 'smp'
 +    }
 +
 +    withLabel: short_job {
 +        cpus = 1
 +        memory = '1 GB'
 +        time = '15m'
 +        queue = 'smp'
 +    }
 +}
 +
 +</code>
 +
 +Use the label in your pipeline:
 +<code nextflow>
 +process bigTask {
 +label 'big_job'
 +...
 +}
 +</code>
 +
 +== 📦 3. Singularity Integration ==
 +
 +Enable Singularity support:
 +
 +<code nextflow> singularity.enabled = true 
 +singularity.autoMounts = true </code>
 +
 +Specify containers:
 +
 +From Docker Hub:
 +<code nextflow>
 +process.container = 'docker://biocontainers/fastqc:v0.11.9_cv8'
 +</code>    
 +From local image:
 +<code nextflow>
 +process.container = '/path/to/image.sif'
 +</code>
 +
 +Set cache directory to avoid re-downloads:
 +
 +<code nextflow> singularity.cacheDir = '/path/to/.singularity' </code>
 +== 🖥️ 4. PBS Executor Settings ==
 +
 +Customize PBS job submission:
 +
 +
 +<code nextflow> 
 +executor {
 +  name = 'pbs'
 +  queueSize = 20
 +  submitOptions = '-V -m abe -M your@email.com'
 +
 +</code>
 +
 +== 📂 5. Using Profiles ==
 +
 +Profiles let you switch configurations easily:
 +
 +<code nextflow> profiles {
 +  standard {
 +    process.executor = 'pbs'
 +    process.queue = 'smp'
 +  }
 +
 +  local {
 +    process.executor = 'local'
 +    docker.enabled = false
 +  }
 +
 +  cluster_singularity {
 +    process.executor = 'pbs'
 +    singularity.enabled = true
 +    process.container = 'file:///path/to/container.sif'
 +  }
 +}
 + </code>
 +Run a profile:
 +
 +<code bash> nextflow run main.nf -profile cluster_singularity </code>
 +
 +== 🚫 Offline Mode ==
 +
 +Run jobs on compute nodes without internet access:
 +
 +<code bash> nextflow run ~/.nextflow/assets/nf-core/rnaseq \ 
 +-profile singularity -offline </code>
 +⚠️ Always include -offline on compute nodes to prevent online fetching.
 +
 +=== 🧭 Debugging and Logs ===
 +
 +Each Nextflow process generates a unique work directory (work/ab/xyz123), containing:
 +
 +.command.run — generated PBS job script
 +
 +.command.sh — wrapped shell script
 +
 +.command.log — job output
 +
 +.exitcode — exit status
 +
 +To inspect a failed job:
 +
 +<code bash> cd work/ab/xyz123/
 +less .command.log </code>
 +
 +=== ✅ Summary ===
 +
 +nextflow.config centralizes all pipeline settings.
 +
 +No need to write PBS scripts manually.
 +
 +Resources, container usage, and submission options are all configurable.
 +
 +Profiles improve portability and reproducibility.
 +
 +Offline mode is essential for CHPC compute node compatibility.
 +
 +🧠 Tip: For workflows requiring reference data, bind directories just like with containers:
 +
 +<code bash> nextflow run /path/to/my_pipeline -profile singularity -offline \ 
 +--input /data/input.fastq \ 
 +--genomeDir /mnt/lustre/bsp/DB/genomes
 +</code>
 +
 +🧹 Clean Up:
 +Nextflow stores all its cache files in your home directory, so it's important to clean up these files once you're finished using a workflow to avoid running out of space.
 +<code bash>
 +rm -rf ~/.nextflow/assets/ 
 +rm -rf ~/.nextflow/tmp 
 +rm -rf ~/.singularity
 +</code>
 +
 +=== Need Help? ===
 +If you encounter issues or need a specific tool installed contact the CHPC support team at:
 +  * 📧 help@chpc.ac.za
 +  * https://users.chpc.ac.za/helpdesk/tickets/submit/
 +Include your job script and all errors encountered.
 ===== Basic examples ===== ===== Basic examples =====
  
Line 299: Line 804:
   - The use of job dependencies. We see it in the second //heredoc// in the line "//#PBS -W depend=afterok:${BLAST_JOBID}//". What this line does is that it says the job script only runs after the job with ID ${BLAST_JOBID} has successfully finished running, i.e. this job will not run if there are problems with the first job.   - The use of job dependencies. We see it in the second //heredoc// in the line "//#PBS -W depend=afterok:${BLAST_JOBID}//". What this line does is that it says the job script only runs after the job with ID ${BLAST_JOBID} has successfully finished running, i.e. this job will not run if there are problems with the first job.
  
-==== Gromacs ==== 
- 
-If you would like to try running gromacs on the gpu please take a look at [[howto:gpu_gromacs|this]]. 
- 
-The job script that follows is for running an MPI compiled version of gromacs 4.6.1 on nehalem. There are many different versions of gromacs, to see what's available try:<code bash>user@login01:~ $ module avail</code> 
- 
-The following example is for working with one of the "_nehalem" gromacs modules -- note it's quite important to use the correct version as the input data changes with versions... 
- 
-=== Job script === 
-<file bash gromacs_nehalem.qsub> 
-#!/bin/bash 
-#PBS -l select=10:ncpus=8:mpiprocs=8:jobtype=nehalem,place=excl 
-#PBS -l walltime=00:40:00 
-#PBS -q workq 
-#PBS -M user@someinstitution.ac.za 
-#PBS -m be 
-#PBS -V 
-#PBS -e /lustre/SCRATCH5/users/USERNAME/gromacs_data/std_err.txt 
-#PBS -o /lustre/SCRATCH5/users/USERNAME/gromacs_data/std_out.txt 
-#PBS -N GROMACS_JOB 
-#PBS -mb 
- 
-MODULEPATH=/opt/gridware/bioinformatics/modules:$MODULEPATH 
-source /etc/profile.d/modules.sh 
- 
-#######module add 
-module add gromacs/4.6.1_nehalem 
- 
-OMP_NUM_THREADS=1 
- 
-NP=`cat ${PBS_NODEFILE} | wc -l` 
- 
-EXE="mdrun_mpi" 
-ARGS="-s XXX -deffnm YYYY" 
- 
-cd /lustre/SCRATCH5/users/USERNAME/gromacs_data 
-mpirun -np ${NP} -machinefile ${PBS_NODEFILE} ${EXE} ${ARGS} 
-</file> 
- 
-=== Submit your job === 
-Finally submit your job using:<code bash>user@login01:~ $ qsub gromacs_nehalem.qsub</code> 
 ==== bowtie ==== ==== bowtie ====
  
Line 345: Line 809:
  
 === Job script === === Job script ===
-Then your job script called //gromacs_nehalem.qsub// will look something like this:+Then your job script called //bowtie_script.qsub// will look something like this:
 <file bash bowtie_script.qsub> <file bash bowtie_script.qsub>
 #! /bin/bash #! /bin/bash
-#PBS -l select=1:ncpus=12+#PBS -l select=1:ncpus=24
 #PBS -l place=excl #PBS -l place=excl
 #PBS -l walltime=06:00:00 #PBS -l walltime=06:00:00
 #PBS -q workq #PBS -q workq
-#PBS -o /export/home/username/scratch5/some_reads/stdout.txt +#PBS -o /home/username/lustre/some_reads/stdout.txt 
-#PBS -e /export/home/username/scratch5/some_reads/stderr.txt+#PBS -e /home/username/lustre/some_reads/stderr.txt
 #PBS -M youremail@address.com #PBS -M youremail@address.com
 #PBS -m be #PBS -m be
Line 394: Line 858:
 #PBS -l walltime=00:05:00 #PBS -l walltime=00:05:00
 #PBS -q workq #PBS -q workq
-#PBS -o /export/home/username/scratch5/namd2/stdout.txt +#PBS -o /home/username/lustre/namd2/stdout.txt 
-#PBS -e /export/home/username/scratch5/namd2/stderr.txt+#PBS -e /home/username/lustre/namd2/stderr.txt
 #PBS -m ae #PBS -m ae
 #PBS -M youremail@address.com #PBS -M youremail@address.com
Line 411: Line 875:
 === Submit your job === === Submit your job ===
 Finally submit your job using:<code bash>user@login01:~ $ qsub namd.qsub</code> Finally submit your job using:<code bash>user@login01:~ $ qsub namd.qsub</code>
- 
-==== bowtie ==== 
- 
-Things to note about this script -- bowtie currently does not run across multiple nodes. So using anything other than //select=1// will result in compute resources being wasted((Both because it will only run on a single node, and telling a process to use more threads than it has cores //usually// results in inefficiencies.)). 
- 
-=== Job script === 
-Then your job script called //gromacs_nehalem.qsub// will look something like this: 
-<file bash bowtie_script.qsub> 
-#! /bin/bash 
-#PBS -l select=1:ncpus=12 
-#PBS -l place=excl 
-#PBS -l walltime=06:00:00 
-#PBS -q workq 
-#PBS -o /lustre/SCRATCH5/users/username/some_reads/stdout.txt 
-#PBS -e /lustre/SCRATCH5/users/username/some_reads/stderr.txt 
-#PBS -M youremail@address.com 
-#PBS -m be 
-#PBS -N bowtiejob 
- 
-################## 
-MODULEPATH=/opt/gridware/bioinformatics/modules:$MODULEPATH 
-source /etc/profile.d/modules.sh 
-  
-#######module add 
-module add bowtie2/2.2.2 
-  
-NP=`cat ${PBS_NODEFILE} | wc -l` 
-  
-EXE="bowtie2" 
- 
-forward_reads="A_reads1.fq,B_reads_1.fq" 
-reverse_reads="A_reads1.fq,B_reads_1.fq" 
-output_file="piggy_hits.sam" 
-ARGS="sscrofa --shmem --threads ${NP} --sam -q -1 ${forward_reads} -2 ${reverse_reads} ${output_file}" 
- 
-cd /lustre/SCRATCH5/users/username/some_reads 
-${EXE} ${ARGS} 
-</file> 
-Note: username should contain your actual user name! 
- 
-=== Submit your job === 
-Finally submit your job using:<code bash>user@login01:~ $ qsub bowtie_script.qsub</code> 
  
 ==== R/bioconductor ==== ==== R/bioconductor ====
  
-There is an example here on how one might use R at the chp+There is an example here on how one might use R on Lengau
  
 http://wiki.chpc.ac.za/howto:r#r_bioconductor http://wiki.chpc.ac.za/howto:r#r_bioconductor
Line 477: Line 899:
  
 ===== Databases ===== ===== Databases =====
-Databases are accessible on the cluster in the <code bash>/mnt/lustre3p/bsp/DB</code> directory. +Databases are accessible on the cluster in the  directory <code bash>/mnt/lustre/bsp/DB</code>
 ===== Support ===== ===== Support =====
-Please [[http://www.chpc.ac.za/index.php/support-resources/log-a-support-query|contact us]] torequest software updates/installs; download big datasets; get advice on the best way to run your analysis; or to tell us what is/isn't working!+Please [[https://users.chpc.ac.za/helpdesk/tickets/submit |contact us]] to request software updates/installs; download big datasets; get advice on the best way to run your analysis; or to tell us what is/isn't working!
/app/dokuwiki/data/attic/howto/bioinformatics.1624872937.txt.gz · Last modified: 2021/12/09 16:42 (external edit)