-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrunbatch_csv_to_xlsx.sh
49 lines (39 loc) · 1.03 KB
/
runbatch_csv_to_xlsx.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
#!/bin/bash
set -eo pipefail
shopt -s nullglob
# Fabian Charly Friedrich
# Start from a folder containing csv files from the nextflow blast pipeline
# bash runbatch_csv_to_xlsx.sh
# activate conda env
. /mnt/ngsnfs/tools/miniconda3/etc/profile.d/conda.sh
conda activate wochenende >> /dev/null
# wochenende output files
for file in ./*rep.*.csv
do
echo "$file"
srun -p short -c 1 python3 csv_to_xlsx_converter.py "$file" &
wait
done
# kraken2 and krakenuniq output files
for file in ./*.txt
do
echo "$file"
srun -p short -c 1 python3 csv_to_xlsx_converter.py "$file" &
wait
done
# Nextflow blast output files
for file in ./*annot.csv
do
conda activate nextflow >> /dev/null
echo "$file"
srun -p short -c 1 python3 csv_to_xlsx_converter.py "$file" &
wait
done
# Haybaler output files
for file in ./*haybaler.csv
do
conda activate nextflow >> /dev/null
echo "$file"
srun -p short -c 1 python3 csv_to_xlsx_converter.py "$file" &
wait
done