-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpicard5.sh
More file actions
36 lines (20 loc) · 748 Bytes
/
picard5.sh
File metadata and controls
36 lines (20 loc) · 748 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
33
34
35
36
#!/bin/bash
#presets
#SBATCH --mem=240000
#SBATCH --ntasks=16
#picard - presets
fastaDir=/PATH/TO/data/reference_genome/Homo_sapiens.GRCh38.dna.primary_assembly.fa
dictDir=/PATH/TO/data/reference_genome/Homo_sapiens.GRCh38.dict
mkDir $dictDir
#download FASTA File
cd $dictDir
wget -c ftp://ftp.ensembl.org/pub/release-96/fasta/homo_sapiens/dna/Homo_sapiens.GRCh38.dna.primary_assembly.fa.gz
gunzip Homo_sapiens.GRCh38.dna.primary_assembly.fa.gz
#generate FASTA index file
module load ngs/samtools/1.9
samtools faidx $fastaDir
#picard_5 - create sequence dictionary
#nota bene: FASTA File and sequence dictionary must be located in the same folder!
java -jar /PATH/TO/picard.jar CreateSequenceDictionary \
R=$fastaDir \
O=$dictDir \