-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathminimap2_asm_vcf.sh
More file actions
32 lines (25 loc) · 930 Bytes
/
minimap2_asm_vcf.sh
File metadata and controls
32 lines (25 loc) · 930 Bytes
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
#!/bin/bash -l
#SBATCH --time=24:00:00
#SBATCH --ntasks=3
#SBATCH --mem=400g
#SBATCH --tmp=400g
#SBATCH --mail-type=ALL
#SBATCH --mail-user=pmorrell@umn.edu
#SBATCH -o %j.out
#SBATCH -e %j.err
set -e
set -o pipefail
# This script will run minimap2, which has a wide variety of applications for long reads.
MINIMAP2=/panfs/roc/groups/9/morrellp/pmorrell/Apps/HLi/minimap2/minimap2
# User provided input arguments
FASTA_FILE=/scratch.global/pmorrell/OUH602/OUH602_chr1H.fasta.gz
REF_FILE=/scratch.global/pmorrell_Morex_v3/HvulgareMorex_702_V3.hardmasked_chr1H.fa.gz
OUT_PREFIX=OUH602_hardmask_chr1H
OUT_DIR=/scratch.global/pmorrell/Morex_v3/out_dir
# Check if our dir exists, if not make it
mkdir -p ${OUT_DIR}
# Go into reference dir
cd ${OUT_DIR}
# Align with minimap
# These alignment settings are intended for generation of a VCF
$MINIMAP2 -cx asm5 --cs -r2k -t 3 ${REF_FILE} ${FASTA_FILE} > ${OUT_DIR}/${OUT_PREFIX}.paf