-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathEAqc
More file actions
executable file
·20 lines (17 loc) · 722 Bytes
/
EAqc
File metadata and controls
executable file
·20 lines (17 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash
# sva::ComBat_seq is not available in R/3.5.1
if [[ -n "$1" ]]; then
src="$(dirname $0)/src"
if [[ ! -f "$src/.env" ]]; then
echo "EAqc: Please run ./install to setup necessary env variables"
exit
fi
env -i src="$src" a=$1 b=$2 c=$3 bash -c 'source $src/.env;eval $condaEnv;Rscript $src/QCanalysis.R $src/ $a $b $c 2>&1 | tee -a $(dirname $a)/EAqc.$(date +%Y%m%d).log'
else
echo "=============== EAqc path/to/config/file"
exePath=$(dirname $0)
echo "An example config file can be found: $exePath/example/config.yml"
echo "'EAinit' can be used to create a config file for a RNAseq project downloaded from DNAnexus"
echo "==============="
exit 0
fi