scripts:qc
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| scripts:qc [2025/03/11 12:26] – 37.26.174.181 | scripts:qc [2025/03/21 12:43] (current) – 37.26.174.181 | ||
|---|---|---|---|
| Line 12: | Line 12: | ||
| # SCRIPT FOR PERFORMING FASTQC | # SCRIPT FOR PERFORMING FASTQC | ||
| # NOTE: Run this script from the directory where the " | # NOTE: Run this script from the directory where the " | ||
| - | # / | + | # Example: |
| # | # | ||
| # PURPOSE: | # PURPOSE: | ||
| Line 47: | Line 47: | ||
| #SBATCH --mem=10gb | #SBATCH --mem=10gb | ||
| #SBATCH --cpus-per-task=10 | #SBATCH --cpus-per-task=10 | ||
| - | #SBATCH --job-name=fastqc_multiqc_00 | + | #SBATCH --job-name=fastqc_00 |
| #SBATCH --output=log/ | #SBATCH --output=log/ | ||
| Line 57: | Line 57: | ||
| src/ | src/ | ||
| </ | </ | ||
| + | === MultiQC === | ||
| + | |||
| + | MultiQC generates a report based on multiple FastQC reports and enables to view then simultaneously. MultiQC also takes Fastp reports as input and allocates a separate section. | ||
| == Dauther script == | == Dauther script == | ||
| Line 63: | Line 66: | ||
| # SCRIPT FOR PERFORMING MultiQC | # SCRIPT FOR PERFORMING MultiQC | ||
| # NOTE: Run this script from the directory where the " | # NOTE: Run this script from the directory where the " | ||
| - | # / | + | # Example: |
| # | # | ||
| # PURPOSE: | # PURPOSE: | ||
| Line 87: | Line 90: | ||
| output_dir=" | output_dir=" | ||
| - | echo " | + | echo " |
| mkdir -p " | mkdir -p " | ||
| - | multiqc -o " | + | multiqc -o " |
| </ | </ | ||
| - | |||
| - | === MultiQC === | ||
| - | |||
| - | MultiQC generates a report based on multiple FastQC reports and enables to view then simultaneously. MultiQC also takes Fastp reports as input and allocates a separate section. | ||
| == Parent script == | == Parent script == | ||
| Line 102: | Line 101: | ||
| #SBATCH --mem=10gb | #SBATCH --mem=10gb | ||
| #SBATCH --cpus-per-task=10 | #SBATCH --cpus-per-task=10 | ||
| - | #SBATCH --job-name=fastqc_multiqc_00 | + | #SBATCH --job-name=multiqc_00 |
| - | #SBATCH --output=log/ | + | #SBATCH --output=log/ |
| #parameters | #parameters | ||
| Line 115: | Line 114: | ||
| You can also perform them simultaneously with one parent script: | You can also perform them simultaneously with one parent script: | ||
| == Combined parent script == | == Combined parent script == | ||
| - | fastqc_multiqc_00.sh | + | qc_00.sh |
| < | < | ||
| #!/bin/bash | #!/bin/bash | ||
| Line 134: | Line 133: | ||
| </ | </ | ||
| - | You can also use the same scripts on trimmed files. Just add " | + | You can also use the same scripts on trimmed files. Just add " |
| + | |||
| + | fastqc_post_00.sh | ||
| < | < | ||
| - | #Input parameters | + | #!/ |
| + | #SBATCH --mem=10gb | ||
| + | #SBATCH --cpus-per-task=10 | ||
| + | #SBATCH --job-name=fastqc_post_00 | ||
| + | #SBATCH --output=log/ | ||
| + | |||
| + | #parameters | ||
| input=fq_trimmed | input=fq_trimmed | ||
| output=fastqc_trimmed | output=fastqc_trimmed | ||
| + | |||
| + | src/ | ||
| </ | </ | ||
| - | == Fastp == | + | multiqc_post_00.sh |
| - | If you want to add Fastp reports to MultiQC, you can add " | + | < |
| + | # | ||
| + | #SBATCH --mem=10gb | ||
| + | #SBATCH --cpus-per-task=10 | ||
| + | #SBATCH --job-name=multiqc_post_00 | ||
| + | #SBATCH --output=log/ | ||
| - | In daughter | + | # |
| + | |||
| + | input=fastqc_trimmed | ||
| + | output=multiqc_trimmed | ||
| + | |||
| + | src/ | ||
| + | </ | ||
| + | |||
| + | === Fastp === | ||
| + | If you want to add Fastp reports to MultiQC, you can add " | ||
| + | |||
| + | == Daughter | ||
| + | multiqc_fastp.sh: | ||
| < | < | ||
| + | # SCRIPT FOR PERFORMING MultiQC | ||
| + | # NOTE: Run this script from the directory where the " | ||
| + | # | ||
| + | # | ||
| + | # PURPOSE: | ||
| + | # This script performs MultiQC. | ||
| + | # | ||
| + | # PARAMETERS: | ||
| + | # 1: input_dir - Directory where FastQC reports are located. | ||
| + | # 2: output_dir - Directory where MultiQC report will be located | ||
| + | # SAMPLE USAGE: | ||
| + | # In a parent script: src/ | ||
| + | # | ||
| + | # IMPORTANT: | ||
| + | # - Run from a parent script. | ||
| + | |||
| + | # Check if correct number of arguments are provided | ||
| + | if [ " | ||
| + | echo " | ||
| + | exit 1 | ||
| + | fi | ||
| + | |||
| # Input parameters | # Input parameters | ||
| - | input_dir="$1" | + | input_dir=$1 |
| - | input_fastp="$2" | + | input_fastp=$2 |
| - | output_dir="$3" | + | output_dir=$3 |
| + | |||
| + | echo " | ||
| + | mkdir -p " | ||
| + | multiqc -o " | ||
| </ | </ | ||
| - | In parent script: | + | == Parent == |
| + | multiqc_fastp_00.sh | ||
| < | < | ||
| - | src/ | + | # |
| + | #SBATCH --mem=10gb | ||
| + | #SBATCH --cpus-per-task=10 | ||
| + | #SBATCH --job-name=multiqc_fastp_00 | ||
| + | #SBATCH --output=log/ | ||
| + | |||
| + | # | ||
| + | |||
| + | input=fastqc_trimmed | ||
| + | input_fastp=fq_trimmed | ||
| + | output=multiqc_trimmed | ||
| + | |||
| + | src/ | ||
| </ | </ | ||
scripts/qc.1741695963.txt.gz · Last modified: by 37.26.174.181
