-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpipeline_exec.sh
executable file
·54 lines (39 loc) · 1.53 KB
/
pipeline_exec.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
48
49
50
#!/bin/bash
#=================
# main executable script of the ChIP seq pipeline
#=================
# developed by - Sourya Bhattacharyya
# Vijay-AY lab
# La Jolla Institute for Allergy and Immunology
#=================
CodeExec=`pwd`'/bin/pipeline.sh'
#=================
# script 1 - when fastq files of paired end read are provided as the input
#=================
genome='/home/sourya/genomes/bowtie2_index/hg19/hg19'
dirdata='/home/sourya/test1/'
inpfile1=$dirdata'fastafiles/001_R1.fastq.gz'
inpfile2=$dirdata'fastafiles/001_R2.fastq.gz'
outdir=$dirdata'Sample_TEST_ChIP'
prefix='001'
$CodeExec -f $inpfile1 -r $inpfile2 -C `pwd`'/configfile' -n $prefix -g $genome -d $outdir -t 8 -m "16G" -q 20 -D 1 -O 1 -T 1
#=================
# script 2 - when fastq files of single end end read are provided as the input
#=================
genome='/home/sourya/genomes/bowtie2_index/hg19/hg19'
dirdata='/home/sourya/test2/'
inpfile=$dirdata'merged_inp.fastq.gz'
outdir=$dirdata'Sample_TEST_ChIP'
prefix='002'
$CodeExec -f $inpfile -C `pwd`'/configfile' -n $prefix -g $genome -d $outdir -t 8 -m "16G" -q 20 -D 1 -O 1 -T 1
#=================
# script 3 - when a BAM file is provided as the input
# here reference genome is not used
# however, -w parameter is used to specify the genome for
# creating UCSC compatible tracks
#=================
dirdata='/home/sourya/test3/'
inpfile=$dirdata'inp.bam'
outdir=$dirdata'Sample_TEST_ChIP'
prefix='003'
$CodeExec -f $inpfile -C `pwd`'/configfile' -n $prefix -d $outdir -t 8 -m "16G" -q 20 -D 1 -O 1 -w "hg19" -T 1