-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path130_q2_summary.sh
executable file
·48 lines (39 loc) · 1.57 KB
/
130_q2_summary.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
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/env bash
# 03.08.2020 - Paul Czechowski - [email protected]
# ========================================================
# Denoise 2 sequencing runs using DAD2
# set -x
set -e
# Adjust base paths
# -----------------
if [[ "$HOSTNAME" != "Pauls-MacBook-Pro.local" ]] && [[ "$HOSTNAME" != "macmini-fastpost.staff.uod.otago.ac.nz" ]]; then
bold=$(tput bold)
normal=$(tput sgr0)
printf "${bold}$(date):${normal} Execution on remote...\n"
trpth="/workdir/pc683/OU_pcm_eukaryotes"
cores="$(nproc --all)"
elif [[ "$HOSTNAME" == "Pauls-MacBook-Pro.local" ]] || [[ "$HOSTNAME" == "macmini-fastpost.staff.uod.otago.ac.nz" ]]; then
bold=$(tput bold)
normal=$(tput sgr0)
printf "${bold}$(date):${normal} Execution on local...\n"
trpth="/Users/paul/Documents/OU_pcm_eukaryotes"
cores="2"
fi
# define relative input and output locations
# ---------------------------------
inpth_map[1]='Zenodo/Manifest/160202_18S_MF.txt'
inpth_tab[1]='Zenodo/Processing/120_18S_merged-tab.qza'
inpth_seq[1]='Zenodo/Processing/120_18S_merged-seq.qza'
otpth_tab[1]='Zenodo/Processing/130_18S_merged-tab.qzv'
otpth_seq[1]='Zenodo/Processing/130_18S_merged-seq.qzv'
# run script for 18S
# --------------------------
for ((i=1;i<=1;i++)); do
qiime feature-table summarize \
--i-table "$trpth"/"${inpth_tab[$i]}" \
--o-visualization "$trpth"/"${otpth_tab[$i]}" \
--m-sample-metadata-file "$trpth"/"${inpth_map[$i]}"
qiime feature-table tabulate-seqs \
--i-data "$trpth"/"${inpth_seq[$i]}" \
--o-visualization "$trpth"/"${otpth_seq[$i]}"
done