-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclomics_example.sh
42 lines (34 loc) · 1.47 KB
/
clomics_example.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
#!/bin/bash
## Specify output folder
output_path="../1.mapped_CMs/clomics";
## Specify paths to Clomics executable and helper scripts
path_to_clomics="/software/clomics-2.0/bin/clomics";
path_to_main="./main";
## define Clomics-specific parameters
bg_threshold="3"; ## default bg_threshold="3"
n_peaks="200"; ## default n_peaks="200"
## Specify the number of processs to use
## if parallelizing CRD to CM conversion step
n_cores=1; ## default n_cores=1
## Specify chromosomes to use for CM mapping
chromosomes="22"; ## dash defines a range, default is "1-22" (all chromosomes from chr1 to chr22);
## Alternatively, "chromosomes" parameter can be defined as
## "1,5,10" (without spaces) when using, in this example, three chromosomes;
## or "22", when using a single chromosome
## Specify cell type/dataset name
dataset_name="test_data";
## Specify paths to count matrices for ChIP-seq/ATAC-seq data
input_path="../test_data/gzipped_bed";
k4me1_matrix="H3K4me1:${input_path}/H3K4me1_chr22.bed.gz";
k27ac_matrix="H3K27ac:${input_path}/H3K27ac_chr22.bed.gz";
## Run Clomics pipeline with the variables defined above
Rscript ${path_to_main}/main_clomics_script.R \
-path_to_clomics ${path_to_clomics} \
-path_to_src "${path_to_main}/src" \
-bg_threshold ${bg_threshold} \
-n_peaks ${n_peaks} \
-n_cores ${n_cores} \
-chromosomes ${chromosomes} \
-dataset_name ${dataset_name} \
-matrix_files "${k4me1_matrix},${k27ac_matrix}" \
-output_folder ${output_path}