-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathEArun
More file actions
executable file
·21 lines (18 loc) · 826 Bytes
/
EArun
File metadata and controls
executable file
·21 lines (18 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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 "EArun: Please run ./install to setup necessary env variables"
exit
fi
env -i config=$1 src="$src" bash -c 'source $src/.env;eval $condaEnv;Rscript $src/DEanalysis.R $src/ $config 2>&1 | tee -a $(dirname $config)/EArun.$(date +%Y%m%d).log'
else
echo "=============== EArun path/to/config/file"
echo "This function is used to process the bulk RNAseq data and produce the QuickOmics R object."
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