forked from jbloomlab/SARS-CoV-2-RBD_DMS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
alignment-and-phylogeny.sh
executable file
·31 lines (19 loc) · 1.09 KB
/
alignment-and-phylogeny.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
#!/bin/bash
#script to align Spike and RBD sequences using mafft, and infer phylogeny with RAxML
#grabnode at least 8 nodes or adjust -T option below (number of threads)
mafft --reorder --op 4.5 ./unaligned-sequences/Spikes.fasta > ./Spikes_aligned.fasta
mafft --reorder --op 4.5 ./unaligned-sequences/RBDs.fasta > ./RBDs_aligned.fasta
mafft --reorder --op 3.0 ./unaligned-sequences/Spikes_nt.fasta > ./Spikes_nt_aligned.fasta
mafft --reorder --op 3.0 ./unaligned-sequences/RBDs_nt.fasta > ./RBDs_nt_aligned.fasta
mkdir RBD_nt_tree
cd ./RBD_nt_tree
raxmlHPC-PTHREADS -s ../RBDs_nt_aligned.fasta -n RBD_nt_tree.txt -m GTRGAMMA -f a -p 10 -N autoMRE -x 10 -T 8
mkdir ../Spike_nt_tree
cd ../Spike_nt_tree
raxmlHPC-PTHREADS -s ../Spikes_nt_aligned.fasta -n Spike_nt_tree.txt -m GTRGAMMA -f a -p 10 -N autoMRE -x 10 -T 8
mkdir ../RBD_tree
cd ../RBD_tree
raxmlHPC-PTHREADS -s ../RBDs_aligned.fasta -n RBD_tree.txt -m PROTGAMMALG -f a -p 10 -N autoMRE -x 10 -T 8
mkdir ../Spike_tree
cd ../Spike_tree
raxmlHPC-PTHREADS -s ../Spikes_aligned.fasta -n Spike_tree.txt -m PROTGAMMALG -f a -p 10 -N autoMRE -x 10 -T 8