-
Notifications
You must be signed in to change notification settings - Fork 0
/
job_submission.sh
32 lines (25 loc) · 1.15 KB
/
job_submission.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
#!/bin/bash
#specify your project directory,change for different analysis
project_dir=/gpfs/data/mcnerney-lab/Tanner/TCM264
#change directory to where the fastq files are
cd $project_dir/input
#this for loop will take the input fastq files and run the scripts for all of them one pair after another
for i in $(ls *R1*.gz)
do
otherfilename="${i/R1/R2}"
echo $i
echo $otherfilename
#here you can specify whether to run MACS2 peak calling and the p value threshold, these two parameters will be passed along to the run_job.sh file
#whether to run macs2, if you include this flag, the problem will run macs2 peak caller, if not, the program will skip macs2.
run_macs2=true
#p value for macs2. Use p value as the significant thrshold and specify it to be 0.1 if you are running IDR.
p_value=0.1 # Adjust as needed
sbatch --job-name=run_ATAC_wrapper --time=12:00:00 \
-o $project_dir/logs/run_ATAC_seq.out \
-e $project_dir/logs/run_ATAC_seq.err \
--partition=tier2q \
--nodes=1 \
--ntasks-per-node=8 \
--mem-per-cpu=10000 \
--wrap="sh $project_dir/scripts/run_job.sh $i $otherfilename $run_macs2 $p_value $project_dir"
done