From 7774d9b9a210a285e4e2bd71a869903a49a7a3cf Mon Sep 17 00:00:00 2001 From: Gammerdinger Date: Wed, 8 May 2024 10:00:01 -0400 Subject: [PATCH] Add tumor dropdown --- lessons/05_alignment_QC.md | 38 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/lessons/05_alignment_QC.md b/lessons/05_alignment_QC.md index befe73a..8fa2c2e 100644 --- a/lessons/05_alignment_QC.md +++ b/lessons/05_alignment_QC.md @@ -81,7 +81,7 @@ java -jar $PICARD/picard.jar CollectAlignmentSummaryMetrics \ Now this script is all set to run! Go ahead and save and quit.
- Click here to see what our final sbatchcode script for the collecting alignment metrics should look like + Click here to see what our final sbatchcode script for collecting the normal sample alignment metrics should look like
     
 ```
@@ -112,7 +112,7 @@ java -jar $PICARD/picard.jar CollectAlignmentSummaryMetrics \
 ```
 
 
-
+ Now we will want to **create the tumor version of this submission script using `sed`** (as we have done previously): @@ -120,6 +120,40 @@ Now we will want to **create the tumor version of this submission script using ` sed 's/normal/tumor/g' picard_metrics_normal.sbatch > picard_metrics_tumor.sbatch ``` +
+ Click here to see what our final sbatchcode script for collecting the tumor sample alignment metrics should look like +
+    
+```
+#!/bin/bash
+# This sbatch script is for collecting alignment metrics using Picard 
+
+# Assign sbatch directives
+#SBATCH -p priority
+#SBATCH -t 0-00:30:00
+#SBATCH -c 1
+#SBATCH --mem 16G
+#SBATCH -o picard_metrics_tumor_%j.out
+#SBATCH -e picard_metrics_tumor_%j.err
+
+# Load picard
+module load picard/2.27.5
+
+# Assign variables
+INPUT_BAM=/n/scratch/users/${USER:0:1}/${USER}/variant_calling/alignments/syn3_tumor_GRCh38.p7.coordinate_sorted.bam
+REFERENCE=/n/groups/hbctraining/variant_calling/reference/GRCh38.p7.fa
+OUTPUT_METRICS_FILE=/home/${USER}/variant_calling/reports/picard/syn3_tumor/syn3_tumor_GRCh38.p7.CollectAlignmentSummaryMetrics.txt
+
+# Run Picard CollectAlignmentSummaryMetrics
+java -jar $PICARD/picard.jar CollectAlignmentSummaryMetrics \
+  --INPUT $INPUT_BAM \
+  --REFERENCE_SEQUENCE $REFERENCE \
+  --OUTPUT $OUTPUT_METRICS_FILE
+```
+
+
+
+ Before we submit our jobs, let's **check the status of our previous `Picard` alignment processing steps**: ```