-
Notifications
You must be signed in to change notification settings - Fork 0
/
txptome_prep_2022-07-06.sh
37 lines (29 loc) · 1.18 KB
/
txptome_prep_2022-07-06.sh
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
37
#!/bin/bash
#SBATCH -n 1
#SBATCH --mem=16G
#SBATCH -p hpcbio
#SBATCH --mail-type=BEGIN,END,FAIL
#SBATCH --mail-user=lvclark@illinois.edu
#SBATCH -J epinano
#SBATCH -D /home/groups/hpcbio/projects/libyarlay/libyarlay-oxfordRNA-2021Jun/src/slurm-out
cd /home/groups/hpcbio/projects/libyarlay/libyarlay-oxfordRNA-2021Jun/
TranscriptomeB=results/parent_transcriptomes/2022-06-14/CrossB_transcriptome.fa
TranscriptomeA=results/parent_transcriptomes/2022-06-14/CrossA_transcriptome.fa
### Strict mode: http://redsymbol.net/articles/unofficial-bash-strict-mode/
set -euo pipefail
IFS=$'\n\t'
#### Reference sequence indexing for EpiNano
### Modules
module purge
module load SAMtools/1.12-IGB-gcc-8.2.0
module load picard/2.10.1-Java-1.8.0_152
### Index
samtools faidx $TranscriptomeB
samtools faidx $TranscriptomeA
### Sequence dictionary
picard CreateSequenceDictionary R=$TranscriptomeB
picard CreateSequenceDictionary R=$TranscriptomeA
### Rename dictionaries -- EDIT if rerunning
cd /home/groups/hpcbio/projects/libyarlay/libyarlay-oxfordRNA-2021Jun/results/parent_transcriptomes/2022-06-14
mv CrossB_transcriptome.dict CrossB_transcriptome.fa.dict
mv CrossA_transcriptome.dict CrossA_transcriptome.fa.dict