# the project directory contains specific GROUP name and current DATE
GROUP=XXX
DATE=`date +"%Y%m%d"`
mkdir ~/Project/${GROUP}_${DATE}
cd ~/Project/${GROUP}_${DATE}
git clone https://github.com/penglbio/Trinity
cd Trinity
DATAPATH=/the/path/of/the/raw/data/on/HPC
# if you are working on the HPC, copy the raw data
./script/copy_rawdata.sh $DATAPATH
# if you are working on the local machine, download the raw data
./script/copy_rawdata.sh $DATAPATH --download
# dry run to check if mv command is correct
./script/rename_rawdata.sh --dry-run
# then do it
./script/rename_rawdata.sh
cp example/example.HPC.plant.config.yaml config.yaml
cp example/example.plant.Snakefile Snakefile
cp example/example_design_table.tsv design_table.tsv
cp example/example_sap_tbl.tsv sap_tbl.tsv
# edit config.yaml and design_table.tsv
source init.sh
./dry_run.sh
# if you are working on the HPC
./run_HPC.sh
# if you are working on the local machine
./run.sh
# check the workflow progress in nohup.out file
tail nohup.log
# check the jobs on HPC
qstat
# to delete all the jobs at once
qselect -u <username> | xargs qdel
# if you get the error: Directory cannot be locked.
snakemake --unlock
./clean.sh
## remove batch effect using RUV
/cluster/home/xfu/R/3.5.1/bin/Rscript script/RUVSeq.R