This repository contains scripts for RNA-Seq data analysis using JunctionSeq and QoRTs
The Control_Junctionseq.R
script performs RNA-Seq data analysis using the JunctionSeq package. It includes the following steps:
- Sets the working directory to the specified path.
- Loads the JunctionSeq library.
- Runs JunctionSeq analyses on the provided sample files.
- Writes size factors to a file.
- Builds plots for visualization.
- Plots dispersion estimates.
- Generates an MA plot.
- Writes complete results to files.
To use this script, follow these steps:
- Set the working directory using
setwd()
to the desired location of the RNA-Seq data. - Install the JunctionSeq library if not already installed using
install.packages("JunctionSeq")
. - Modify the
sample.files
,sample.names
,condition
,flat.gff.file
,nCores
, andanalysis.type
variables according to your data. - Run the script in an R environment.
The QoRTs_New.sh
script performs quality control and analysis using the QoRTs tool. It includes the following steps:
- Sets the SLURM job parameters.
- Runs QoRTs with the specified parameters, including strandedness, functions to run, input files, and output directory.
To use this script, follow these steps:
- Set the SLURM job parameters in the script header (e.g.,
#SBATCH -N
,#SBATCH --mem
,#SBATCH --time
,#SBATCH --mail-type
). - Modify the QoRTs command to specify the correct input files, annotation file, and output directory.
- Run the script on a SLURM-based cluster or adjust it for local execution.
The QoRTs_Sample.sh
script performs data preparation and analysis using the QoRTs tool. It includes the following steps:
- Sets the SLURM job parameters.
- Sets environment variables for temporary directories.
- Copies input files to the temporary directory.
- Changes the working directory to the temporary directory.
- Runs QoRTs with the specified parameters, including strandedness, minimum mapping quality, functions to run, input files, and output directory.
- Copies the output files back to the original output directory.
To use this script, follow these steps:
- Set the SLURM job parameters in the script header (e.g.,
#SBATCH -N
,#SBATCH --mem
,#SBATCH --time
,#SBATCH --mail-type
). - Modify the QoRTs command to specify the correct input files, annotation file, and output directory.
- Modify the variables
INPUT_DIR
andOUTPUT_DIR
to match your directory structure. - Run the script on a SLURM-based cluster or adjust it for local execution.
The QorTs.txt
file contains a series of commands for data processing, QC, merging replicates, performing differential splicing analyses, and generating browser tracks using QoRTs.
To use this script, follow these steps:
- Create the necessary output directories as specified in the commands.
- Modify the paths to the input files, output directories, and any other relevant parameters in each step.
- Run the commands step-by-step in the specified order.
This repository is licensed under the MIT License.