-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsc_picard_5.sh
More file actions
32 lines (18 loc) · 729 Bytes
/
sc_picard_5.sh
File metadata and controls
32 lines (18 loc) · 729 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
#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/
#download FASTA File
wget -P $dictDir 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/Homo_sapiens.GRCh38.dict \