annotate report_clonality/circos/parse-table.conf @ 53:0ef7f80ea061 draft

Uploaded
author davidvanzessen
date Thu, 25 Feb 2021 13:39:50 +0000
parents 124b7fd92a3e
children 81b3eb11ed2c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
52
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
1
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
2 ################################################################
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
3 #
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
4 # This is a fairly complicated configuration file. Take your time in
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
5 # experimenting and adjust one thing at a time :)
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
6 #
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
7 ################################################################
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
8
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
9 max_col_num = 200
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
10 max_row_num = 200
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
11
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
12 # skip this many rows before reading in header and data
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
13 skip_rows = 0
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
14
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
15 # is there a header line that identifies the columns?
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
16 header = yes
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
17
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
18 # is there a row that specifies the order of columns in the image?
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
19 # - if so, this must be the first line of the header
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
20 # - if the line exists (col_order_row=yes), employ the use_col_order_row to toggle whether it is used
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
21 col_order_row = no
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
22 use_col_order_row = no
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
23
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
24 # is there a row that specifies the size of columns in the image?
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
25 # - if so, this must be the next line of the header
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
26 # - if the line exists (col_size_row=yes), employ the use_col_size_row to toggle whether it is used
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
27 col_size_row = no
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
28 use_col_size_row = no
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
29
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
30 # is there a row that specifies the color of each column segment in the image?
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
31 # - if so, this must be the next line of the header
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
32 # - if the line exists (col_color_row=yes), employ the use_col_color_row to toggle whether it is used
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
33 col_color_row = no
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
34 use_col_color_row = no
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
35
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
36 # is there a column that specifies the order of rows in the image?
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
37 # - if so, this must be the first column
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
38 # - if the line exists (row_order_col=yes), employ the use_row_order_col to toggle whether it is used
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
39 row_order_col = no
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
40 use_row_order_col = no
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
41
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
42 # is there a column that specifies the color of each row segment in the image?
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
43 # - if so, this must be the second column
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
44 # - if the line exists (row_color_col=yes), employ the use_row_color_col to toggle whether it is used
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
45 row_color_col = no
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
46 use_row_color_col = no
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
47
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
48 # if you do not have a column/row that explicitly defines order
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
49 # of segments in the image, you can set this here. Use one (or more) of
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
50 # these values to specify how segments should be ordered.
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
51 # - row_major (row segments first, then column)
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
52 # - col_major (col segments first, then row)
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
53 # - ascii (asciibetic order)
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
54 # - row_size (total of rows for the segment - useful if the segment has both row and column contributions)
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
55 # - col_size (total of colums for the segment - useful if the segment has both row and column contributions)
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
56 # - row_to_col_ratio (ratio of total of rows to columns for the segment)
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
57 # - col_to_row_ratio (ratio of total of rows to columns for the segment)
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
58 # - size_asc (size, in ascending order)
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
59 # - size_desc (size, in descending order)
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
60
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
61 #segment_order = row_to_col_ratio,size_desc # col_major,size_desc
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
62 #segment_order = size_desc
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
63 segment_order = row_major,size_desc
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
64 #segment_order = ascii
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
65 #segment_order = file:etc/order-by-table-remapped.txt
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
66 #segment_order = size_desc,row_to_col_ratio
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
67 segment_color_order = row_major,size_desc
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
68
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
69 # values for segments can be normalized if the use_segment_normalization is set to yes
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
70 use_segment_normalization = no
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
71
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
72 # the normalization function can be one of the following, and is applied to
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
73 # all values that correspond to the segment's label
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
74 # total - sum of cell values for the segment label (row and col)
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
75 # average - average of cell values for the segment label (row and col)
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
76 # row_total, row_average - sum or average for cell values for the segment row
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
77 # col_total, col_average - sum or average for cell values for the segment col
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
78 # row_size, col_size, total_size - based on the optional size column (see col_size_row and row_size_col above)
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
79 # VALUE - segments are scaled to a constant VALUE (e.g. 1000)
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
80 segment_normalization_function = 1000
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
81
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
82 # normalization can be performed by either altering the actual data values or
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
83 # by applying a visual scaling of the segments. When 'value' is used, the data
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
84 # is changed. When 'visual' is used, then a chromosomes_scale line is reported
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
85 # by this script which you must include in circos.conf for the scaling to be applied
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
86 segment_normalization_scheme = value
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
87
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
88 ################################################################
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
89 # placement of cell ribbons on row/column segments
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
90 #
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
91 # for segments that share both column and row ribbons, the
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
92 # order of ribbon position can be adjusted with placement_order
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
93
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
94 placement_order = row,col # col,row or row,col
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
95
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
96 # within the row/column ribbon bundle for each segment,
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
97 # ribbon_bundle_order determines how the ribbons will be
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
98 # ordered
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
99 # - size - by value of the cell
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
100 # - ascii - sorted by destination label
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
101 # - native - sorted by order of destination segment
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
102
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
103 ribbon_bundle_order = native # size, ascii, native
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
104
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
105 # reverse the position of links in table/row segments?
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
106
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
107 reverse_rows = no
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
108 reverse_columns = no
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
109
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
110 # values for cells with the same row/column name can be treated
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
111 # independently. You can
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
112 # show - show these cells and not filter them at all
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
113 # hide - hide these cells from the image, but not resize the row/columns
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
114 # remove - entirely remove these cells from the data set (equivalent to setting cells to missing value)
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
115 intra_cell_handling = show
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
116
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
117 # ribbon layering - order in which the ribbons are drawn on the image
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
118 # size_asc - ascending by ribbon size (small ribbons drawn first, therefore large ribbons will be at front)
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
119 # size_desc - descending by ribbon size (large ribbons drawn first, therefore small ribbons will be at front)
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
120
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
121 ribbon_layer_order = size_asc
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
122
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
123 # if both (A,B)=x and (B,A)=y cells exist, you can choose to have the ribbon
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
124 # ends sized variably so that ribbon at A has width x and at B has width y
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
125
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
126 ribbon_variable = no
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
127 ribbon_variable_intra_collapse = yes
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
128
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
129 ################################################################
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
130 # cell value mapping allows you to remap the cell values using
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
131 # any Perl expression that uses X as the cell value. For example,
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
132 #
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
133 # cell_remap_formula = log(X)
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
134 # = sqrt(X)
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
135 # = X/10
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
136 # = X ? log(X) : 0
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
137 #
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
138 # This remapping takes place before any filters or scaling is applied. Its effect
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
139 # is the same as remapping the cell values in the input file.
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
140
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
141 use_cell_remap = no
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
142 cell_remap_formula = round(10*X)
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
143
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
144 ################################################################
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
145 # scale your values with a power rule (useful if the range of values
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
146 # is very large) to
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
147 # - atten_large: attenuate large values and maintain visibility
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
148 # of ribbons corresponding to small values, or
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
149 # - atten_small: attenuate small values to increase visibility
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
150 # of ribbons corresponding to large values
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
151 #
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
152 # given a value, v, and a maximum, m
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
153 #
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
154 # atten_small:
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
155 #
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
156 # v_new = m * ( exp(scale_factor * v / m) - 1 ) / ( exp(scale_factor) - 1 )
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
157 #
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
158 # atten_large:
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
159 #
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
160 # v_new = m * ( log(scale_factor * v ) ) / ( log(scale_factor * m ) )
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
161 #
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
162 # essentially the values are remapped to a log-type scale
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
163 # with the range 0..m
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
164
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
165 use_scaling = no
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
166 scaling_type = atten_large
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
167 scale_factor = 1
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
168
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
169 blank_means_missing = no
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
170 missing_cell_value = -
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
171
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
172 ################################################################
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
173 # Value cutoffs for cell values and ribbon formatting.
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
174 #
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
175 # You can toggle the visibility of ribbons for cells outside
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
176 # a min/max range. You can define one or more of these cutoffs.
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
177 # The cutoffs are applied to unscaled cell values.
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
178
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
179 #cell_min_value = 10
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
180 #cell_min_percentile = 10
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
181 #cell_max_value = 100
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
182 #cell_max_percentile = 100
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
183
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
184 # For cell values that do not pass the min/max filters above,
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
185 # you can specify whether they are hidden or removed. If the
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
186 # parameter is not defined, "hide" will be assumed.
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
187 # hide - cell values won't be shown, but row/col will not be resized
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
188 # remove - entirely remove these cells from the data set (equivalent to setting cells to missing value)
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
189
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
190 cutoff_cell_handling = hide
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
191
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
192 # The color of ribbons is by default the color of the row segment from
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
193 # which they originate. The block below allows you to remap the color
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
194 # of the ribbons based on cell percentile values. There are two ways
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
195 # to remap colors
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
196 #
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
197 # - color_remap=yes, color_autoremap=no
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
198 # Uses <percentile> blocks to define the percentile values and associated
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
199 # color/stroke_color characteristics for ribbons. Percentile value defined
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
200 # in the block (e.g. <percentile 55>) is the max percentile value for
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
201 # cells associated with this block.
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
202 # - color_remap=yes, color_autoremap=yes
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
203 # Uses colors associated with each percentile window of size
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
204 # percentile_sampling for each cell
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
205
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
206 <linkcolor>
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
207 color_source = row
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
208 percentile_source = larger
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
209 color_transparency = 1
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
210 color_remap = yes
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
211 color_autoremap = no
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
212
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
213 <percentile 50>
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
214 color = dgrey
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
215 transparency = 5
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
216 </percentile>
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
217
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
218 <percentile 60>
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
219 color = dgrey
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
220 transparency = 5
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
221 </percentile>
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
222
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
223 <percentile 70>
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
224 transparency = 1
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
225 </percentile>
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
226
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
227 <percentile 80>
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
228 transparency = 1
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
229 </percentile>
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
230
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
231 <percentile 90>
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
232 transparency = 1
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
233 stroke_color = black
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
234 stroke_thickness = 1p
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
235 </percentile>
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
236
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
237 <percentile 100>
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
238 transparency = 1
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
239 stroke_color = black
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
240 stroke_thickness = 3p
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
241 </percentile>
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
242
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
243 </linkcolor>
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
244
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
245 <linkparam>
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
246 color = vdgrey
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
247 #stroke_color = black
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
248 #stroke_thickness = 1p
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
249 </linkparam>
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
250
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
251 # If you are using color_autoremap=yes above, then
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
252 # define the percentile sampling window and
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
253 # the start/end HSV color values. Percentile window
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
254 # colors are interpolated between this HSV pair.
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
255 #
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
256 # HSV = (hue saturation value)
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
257 # hue=(0..360) saturation=(0..1) value=(0..1)
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
258
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
259 percentile_sampling = 5
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
260
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
261 # count - percentile based on counts
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
262 # value - percentile based on value
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
263
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
264 percentile_method = count
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
265
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
266 # use all values or only unique values when
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
267 # calculating percentiles
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
268 percentile_unique_only = yes
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
269
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
270 # use a function, f(X), to remap cell values when calculating percentiles
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
271 # for the purpose of color mapping. This allows you to apply a remapping to how
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
272 # colors are calculated, without actually changing the values. The remap
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
273 # applies only if percentile_method=value
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
274
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
275 # percentile_remap = sqrt(X)
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
276
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
277 # Which cell value set to use for percentile color mapping
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
278 # raw - original values
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
279 # filtered - values that pass min/max filters
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
280 # scaled - filtered values that have been scaled if use_scaling is set
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
281 percentile_data_domain = raw
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
282
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
283 <colors>
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
284 h0 = 0
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
285 s0 = 1
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
286 v0 = 1
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
287 h1 = 300
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
288 s1 = 1
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
289 v1 = 1
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
290 </colors>
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
291
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
292 # You can control the color and stroke of ribbons for each
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
293 # quartile (q1, q2, q3, q4). Any values defined here will
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
294 # overwrite colors determined by remapping.
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
295 #
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
296 # For example, if you have a lot of cells and wish to attenuate
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
297 # the visibility of ribbons associated with small values, you can
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
298 # set cell_q1_color=vvlgrey,cell_q1_nostroke=yes to fade the
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
299 # ribbons into the background.
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
300
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
301 #cell_q1_color = vvlgrey
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
302 #cell_q2_color = vlgrey
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
303 #cell_q3_color = lgrey
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
304 #cell_q4_color = red
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
305 #cell_q1_nostroke = yes
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
306 #cell_q2_nostroke = yes
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
307 #cell_q3_nostroke = yes
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
308 #cell_q4_nostroke = yes
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
309
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
310 # cell value multiplier, required when all data is small (e.g. <1), in which
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
311 # case set the multiplier to something like 1000 because Circos
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
312 # works only with integer scales
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
313
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
314 data_mult = 1
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
315
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
316 ################################################################
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
317 # Segment labels can be optionally set to a size that is
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
318 # proportional to the size of the segment. Set min/max size
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
319 # values here. If this line is commented out, then the label
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
320 # size is determined by the circos.conf file used to draw the image
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
321
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
322 #segment_label_size_range = 60,60
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
323
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
324 # progression controls how fast the label size changes from
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
325 # min to max (larger value of progression means values close to max
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
326 # are achieved for smaller segments)
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
327
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
328 segment_label_size_progression = 4
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
329
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
330 segment_label_uppercase = no
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
331
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
332 ################################################################
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
333 # Segment colors can be specified in the data file (in this
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
334 # case use row_color_col and col_color_row), otherwise colors
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
335 # are interpolated within an HSV range. Color interpolation can be
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
336 # done in two ways: based on segment index (interpolation steps through
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
337 # colors uniformly for each segment) and total size (interpolation
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
338 # steps through colors in proportion to segment size).
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
339
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
340 <segment_colors>
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
341 interpolate_type = size # size or count
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
342 h0 = 0
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
343 s0 = 0.8
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
344 v0 = 0.9
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
345 h1 = 300
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
346 s1 = 0.8
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
347 v1 = 0.9
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
348 </segment_colors>
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
349
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
350 ################################################################
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
351 # Shorten the labels of segments. Specify whether to do this
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
352 # with shorten_text=yes|no parameter and provide regular
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
353 # expressions in string_replace which define the text to
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
354 # replace.
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
355
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
356 shorten_text = yes
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
357
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
358 <string_replace>
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
359 IGH =
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
360 </string_replace>
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
361
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
362 # exit on any error
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
363 strict_sanity = yes
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
364
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
365 ################################################################
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
366 # if the segment_prefix is set, then rows and columns will be
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
367 # renamed to internal fields segment_prefix + DIGIT
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
368
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
369 #segment_prefix = id
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
370 color_prefix = color
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
371
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
372 ################################################################
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
373 # Delimiters
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
374
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
375 # field delimiter regular expression
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
376 # if this is not defined, any whitespace will be considered a delimiter
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
377 field_delim = \s
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
378
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
379 # collapse adjacent delimiters?
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
380 field_delim_collapse = yes
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
381
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
382 # remove any leading space in the input file
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
383 # by default, this is on - if you set this to "no", make sure that you don't have any leading spaces in your table!
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
384 strip_leading_space = yes
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
385
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
386 # remove quotes and thousand separators - concatenate characters to remove
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
387 #
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
388 # e.g. to remove characters a b c set remove_cell_rx=abc
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
389 # e.g. to remove characters " ' , set remove_cell_rx="',
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
390 remove_cell_rx = "',
124b7fd92a3e Uploaded
davidvanzessen
parents: 0
diff changeset
391