File: randomlinks.conf

package info (click to toggle)
circos-tools 0.16-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 19,684 kB
  • sloc: perl: 4,450; sh: 46; makefile: 15
file content (114 lines) | stat: -rw-r--r-- 3,234 bytes parent folder | download
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114

karyotype = data/karyotype.txt

# no links within a chromosome
nointra = yes

# no links between chromosomes
nointer = no

# regular expression that selects which chromosomes from the
# karyotype file to consider
chr_rx = .

# average/sd size of link

size = 50,10

# which named rule set to use?
ruleset = dense_in_noise

# each rule in a rule set contains the following parts, separated by spaces
#
# rx1 - first regular expression selects first chromosome in link
# rx2 - second regular expression selects second chromosome in link
# avg - average number of links between chromosome pair selected by rx1,rx2
# sd  - standard deviation of number of links between chromosome pair selected by rx1,rx2
# sampling (optional) - triggers the rule at reduced frequency
#
# rules are applied in the following order,
#
# - from least to most specific, and if of the same specificity
# - from largest to smallest sampling values
#
# in other words, rules that apply to the largest number of chromosome pairs
# are applied first
#
# rule examples:
#
# rule = . . 10 5  
# rule = chr10 . 20 5
# rule = chr10 . 20 5 0.2 (triggers 20% of the time)
# rule = chr10 . r2
# rule = chr10 . r2 - 0.1 (triggers 10% of the time, - indicates unused field)

<rules very_sparse>
# each chromosome pair has 1 link (avg=1,sd=0)
rule = . . 1 0 0.1
</rules>

<rules sparse>
# each chromosome pair has a 30% chance of 1 link (avg=1,sd=0)
rule = . . 1 0 0.1
# each chromosome pair has a 15% chance of 2 links (avg=2,sd=0)
rule = . . 2 0 0.05
# each chromosome pair has a 5% chance of 10 links (avg=10,sd=0)
rule = . . 10 0 0.01
</rules>

<rules sparse_or_dense>
# any chromosome pair has a 25% chance of having links (avg=10, sd=5)
rule = . .    10 5 0.5
# any chromosome pair has a 10% chance of having more links (avg=100, sd=25)
rule = . .    10 5 0.25
</rules>

<rules targeted>
# each chromosome pair has 1 link (avg=1,sd=0)
rule = chr8 chr14 20 5
rule = chr7 chr16 20 5
rule = chr6 chr1$ 20 5
rule = chr20 chr17 20 5
</rules>

<rules dense_in_noise>
# all chromosome pairs (notice sampling term is missing, therefore assumed = 1)
# have 1 link (avg=1,sd=0)
rule = . . 1 0
# a couple of pairs have more links
# chr13-chr8 has 30 links
# chr5-chr14 has 20 links
# chr15-chr20 has 50 links
rule = chr13 chr8 30 0
rule = chr5 chr14 20 0
rule = chr15 chr20 50 0
</rules>

<rules simple>
rule = . . 1 0
rule = chr1$ chr10 10 0
rule = chr2$ chr11 10 0
rule = chr3$ chr12 10 0
rule = chr4$ chr13 10 0
rule = chr5$ chr14 10 0
</rules>

<rules busy>
rule = .        .     10 5
# the rNNN format for average number of links indicates a relative multiplier
# and the value (NNN) is used to multiply the current number of links between
# chromosomes that matched by previous rules
#
# for example, chr10 chr3 is matched by the above rule and this pair
# is given avg=10,sd=5 links. Let's say that the random number chosen with
# these parameters is 12. This pair is also matched by the rule below which 
# applies a relative multipler of 3 to the number of links. Thus, chr10 chr3
# have 3*12=36 links after this rule is applied.
rule = chr1$ chr3     r3
rule = chr1$ chr5     r5
rule = chr5  chr7     r10
rule = chr10 5|10|15  r15
rule = chr10 chr15    r20
</rules>