You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Code/STARE.sh
+55-39Lines changed: 55 additions & 39 deletions
Original file line number
Diff line number
Diff line change
@@ -3,28 +3,30 @@ set -e # To abort the whole script if one function returns an error.
3
3
4
4
# See https://github.com/SchulzLab/STARE for more information and usage.
5
5
# Adapted from TEPIC: https://github.com/SchulzLab/TEPIC
6
-
help="STARE version 1.0.2
6
+
version_num="1.0.3"
7
+
help="STARE version ""$version_num""
7
8
Usage: ./STARE.sh
8
9
[-b/--bed_file bed file containing open chromatin regions]
10
+
[-a/--annotation gene annotation file in gtf-format]
9
11
[-g/--genome input fasta file in RefSeq format]
10
12
[-s/--pscm file with PSCMs in transfac format] OR [-p/--psem file with PSEMs of TFs]
11
-
[-a/--annotation gene annotation file in gtf-format, required to generate the gene view]
12
13
[-o/--output prefix_path of output files]\n
13
14
Optional parameters:
14
-
[-u/--genes file with rows of gene IDs/symbols to limit the output (else all in gtf)]
15
+
[-w/--window window size around TSS for mapping regions to genes (default 50KB; 5MB for ABC-mode)]
15
16
[-n/--column column in the -b file containing the average per base signal within a peak, start counting at 1]
16
-
[-y/--gc_content Mean GC-content to calculate PSEMs, by default this is automatically derived from your bed_file]
17
17
[-c/--cores number of cores to use (default 1)]
18
18
[-x/--exclude_bed bed-file with regions to exclude (e.g. blacklisted regions)]
19
-
[-w/--window window size around TSS for mapping regions to genes (default 50KB; 5MB for ABC-mode)]
20
-
[-e/--decay indicating whether exponential distance decay should be used (default TRUE, but not used in ABC-mode)]
21
-
[-f/--contact_folder folder with normalized Hi-C contact files for each chromosome in coordinate format. Expects gzipped files.]
19
+
[-u/--genes file with rows of gene IDs/symbols to limit the output (else all in gtf)]
20
+
[-i/--tss_mode 'all_tss' to average across all annotated TSS for ABC-scoring or '5_tss' to use only the 5' TSS (default all_tss)]
21
+
[-q/--adapted_abc whether to use the adapted ABC-score (default True)]
22
+
[-f/--contact_folder folder with normalized Hi-C contact files for each chromosome in coordinate format, expects gzipped files. Set to False to use a contact estimate based on distance.]
22
23
[-k/--bin_size bin-size of the Hi-C files]
23
24
[-t/--cutoff cut-off for the ABC-score (default 0.02), set to 0 to get all scored interactions]
24
-
[-q/--adapted_abc whether to use the adapted ABC-score (default True)]
25
-
[-m/--enhancer_window window size around enhancers for the -q adjustment (default 5MB, minimally set to -w)]
26
25
[-d/--pseudocount whether to use pseudocount for the contact frequency in the ABC-model (default True)]
26
+
[-m/--enhancer_window window size around enhancers for the -q adjustment (default 5MB, minimally set to -w)]
27
27
[-r/--existing_abc ABC-scoring file, if already calculated once for this input to avoid redundant calculation]
28
+
[-y/--gc_content Mean GC-content to calculate PSEMs, by default this is automatically derived from your bed_file]
29
+
[-e/--decay indicating whether exponential distance decay should be used (default TRUE, but not used in ABC-mode)]
28
30
[-z/--reshape write a binary output (default False), optional input for GAZE]"
echo"For the ABC-score calculation the column with the peak signal (-n/--column), the path to the normalized contact files (-f/--contact_folder) as well as the the bin size (-k/--bin_size) are required."
echo"For the ABC-score calculation the column with the peak signal (-n/--column), the path to the normalized contact files (-f/--contact_folder) as well as the the bin size (-k/--bin_size) are required."
150
+
exit 1;
151
+
fi
152
+
else
153
+
if [ -z"$column" ];
154
+
then
155
+
echo"For the ABC-score calculation the column with the peak signal (-n/--column) is required."
0 commit comments