-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathminimap2_PacBio.sh
More file actions
35 lines (29 loc) · 1.09 KB
/
minimap2_PacBio.sh
File metadata and controls
35 lines (29 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash -l
#SBATCH --time=10:00:00
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=10
#SBATCH --mem=200g
#SBATCH --tmp=200g
#SBATCH --mail-type=ALL
#SBATCH --mail-user=pmorrell@umn.edu
#SBATCH -o %A_%a.out
#SBATCH -e %A_%a.err
set -euo pipefail
#module load minimap2/2.26
MINIMAP2=/users/6/pmorrell/Apps/HLi/minimap2/minimap2
# User provided input arguments
REF_FILE=/home/morrellp/pmorrell/shared/References/Reference_Sequences/Barley/Morex_v3/Barley_MorexV3_pseudomolecules_plastids.fasta
SAMPLE=WBDC078
OUT_PREFIX=${SAMPLE}_PacBio
#IN_DIR=/scratch.global/pmorrell/WBDC_resequencing/${SAMPLE}
OUT_DIR=/scratch.global/pmorrell/WBDC_resequencing/${SAMPLE}/PacBio
# Path to a file containing a list of FASTQ files
# cd ${IN_DIR}
#find "$PWD" -type f -name "*.fastq.gz" >${SAMPLE}_fastq.txt
FASTQ_LIST=/scratch.global/pmorrell/WBDC_resequencing/${SAMPLE}/${SAMPLE}_fastq.txt
# Check if our dir exists, if not make it
mkdir -p ${OUT_DIR}
# Go into reference dir
cd ${OUT_DIR}
# Align with minimap2 using a loop
$MINIMAP2 -ax map-hifi -t 8 -I6g ${REF_FILE} $(cat ${FASTQ_LIST}) > ${OUT_DIR}/${OUT_PREFIX}.sam