PASA-Sapelo2: Difference between revisions

From Research Computing Center Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 54: Line 54:
   
   
cd $SLURM_SUBMIT_DIR
cd $SLURM_SUBMIT_DIR
<nowiki>#</nowiki> Initialize and start MySQL from inside of the container
 
 


<nowiki>#</nowiki> Initialize and start MySQL from inside of the container
<nowiki>#</nowiki> Initialize and start MySQL from inside of the container
Line 71: Line 72:


apptainer exec instance://pasa-mysql /bin/bash -c "source activate /opt/pasa && \$PASAHOME/Launch_PASA_pipeline.pl \
apptainer exec instance://pasa-mysql /bin/bash -c "source activate /opt/pasa && \$PASAHOME/Launch_PASA_pipeline.pl \
--CPU <u>20</u>  \


--config ./sample_data/mysql.confs/alignAssembly.config --create --run \
--config ./sample_data/mysql.confs/alignAssembly.config --create --run \
--CPU <u>20</u>  \


--ALIGNER gmap --genome ./sample_data/genome_sample.fasta --transcripts ./sample_data/all_transcripts.fasta.clean"
--ALIGNER gmap --genome ./sample_data/genome_sample.fasta --transcripts ./sample_data/all_transcripts.fasta.clean"

Revision as of 09:42, 5 June 2025

Category

Bioinformatics

Program On

Sapelo2

Version

2.5.3

Author / Distributor

https://github.com/PASApipeline/PASApipeline https://github.com/PASApipeline/PASApipeline/wiki

Description

"PASA, acronym for Program to Assemble Spliced Alignments (and pronounced 'pass-uh'), is a eukaryotic genome annotation tool that exploits spliced alignments of expressed transcript sequences to automatically model gene structures, and to maintain gene structure annotation consistent with the most recently available experimental sequence data. PASA also identifies and classifies all splicing variations supported by the transcript alignments."

More details are at https://github.com/PASApipeline/PASApipeline/wiki

Running Program

  • version 2.5.3 with MySQL support is installed as an Apptainer container in /apps/singularity-images/pasa-2.5.3-MySQL/ and the image name is pasa-2.5.3-mysql-production.sif.

To use this version of PASA with its sample data in a batch job, please follow these setup steps in your current job working directory before submitting a batch job:

cp -r /apps/singularity-images/pasa-2.5.3-MySQL/{1_init.sh,2_create_user_and_db.sh,3_cleanup.sh,pasa_conf,sub.sh,sample_data} .

Note:

Running the above cp commands will copy the following setup files and folder to your current job working directory:

  • Three MySQL config scripts: 1_init.sh, 2_create_user_and_db.sh, and 3_cleanup.sh
  • A PASA config folder: pasa_conf/
  • A sample batch job submission script: sub.sh
  • Sample data folder provided by PASA : sample_data/

Below is the sample batch job submission script (sub.sh) to run funannotate in a batch job using 80 CPU cores on the batch partition:

#!/bin/bash
#SBATCH --job-name=pasa-mysql
#SBATCH --partition=batch
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=20
#SBATCH --mem=80gb
#SBATCH --time=48:00:00
#SBATCH --output=log.%j.out
#SBATCH --mail-type=ALL
#SBATCH --mail-user=username@uga.edu

cd $SLURM_SUBMIT_DIR


# Initialize and start MySQL from inside of the container

./1_init.sh && ./2_create_user_and_db.sh # unzip the sample input date genome_sample.fasta.gz


# unzip the sample input date genome_sample.fasta.gz

gunzip sample_data/genome_sample.fasta.gz


# Run PASA pipeline with genome_sample.fasta

apptainer exec instance://pasa-mysql /bin/bash -c "source activate /opt/pasa && \$PASAHOME/Launch_PASA_pipeline.pl \

--CPU 20 \

--config ./sample_data/mysql.confs/alignAssembly.config --create --run \

--ALIGNER gmap --genome ./sample_data/genome_sample.fasta --transcripts ./sample_data/all_transcripts.fasta.clean"


# Clean up on the compute node and shut down MySQL

./3_cleanup.sh

Note:

  1. In the real submission script, at least all the above underlined values in Slurm headers need to be reviewed or to be replaced by the proper values.
  2. In the real submission script, the above the funannotate command lines in bold font can be replaced by your own PASA command lines.

Please refer to Running Jobs on Sapelo2 for more information running jobs on the Sapelo2 cluster.

Here is an example of job submission command:

sbatch ./sub.sh 

Documentation

https://github.com/PASApipeline/PASApipeline
https://github.com/PASApipeline/PASApipeline/wiki

Back to Top

Installation

Source code is obtained from https://github.com/PASApipeline/PASApipeline

System

64-bit Linux