Debian Codegraph @

wdoc/chromhist.html

raw
1 <HTML>
2
3 <HEAD>
4 <TITLE> ACEDB source code documentation: histogramming </TITLE>
5
6 <LINK rel=stylesheet type="text/css"
7 href="./wdoc.css"
8 title="Style sheet for wdoc developer documents">
9
10 </HEAD>
11
12 <BODY>
13
14 <H1>Using the histogram features in Physical-Chromo-Map</H1>
15
16 <PRE>
17
18
19 Several people have asked how to use the facility in acedb to show
20 histograms of the chromosomal distribution of various items. There is
21 in fact quite a flexible system for doing this, but it is a little
22 intricate to use. I always have to relearn it myself whenever I use
23 it, so it seemed a good idea to write comprehensive instructions.
24
25 From a standard map display, go to "Physical Chromo Map" (the last
26 item on the menu). From there choose "Full Genome Distribution".
27 With a worm database, you should now see the six chromosomes with
28 yellow bars for the physically mapped regions. There are now two
29 relevant menu entries, "Create histogram from file" and "Create
30 histogram from keyset".
31
32 Create histogram from file
33 --------------------------
34
35 The file version is more flexible, so I will describe that first. The
36 file must have the ending ".hisinf" to be read in by the program. The
37 required format is
38
39 CLONE_NAME [n] [len]
40
41 where n is the number of items in that cosmid, and len is its length.
42 The clone must be on the physical map for the information to register.
43 If n is missing it is assumed to be 1. Multiple lines for the same
44 clone will add; this is fine for the n values, but the lengths also
45 add (unfortunately), so you should not have multiple lines per clone
46 if you give length information.
47
48 You can create multiple histograms for a single window by reading in
49 multiple files. For each data set, you get a little window that lets
50 you set a number of different parameters:
51
52 Histogram bin: bin size in Mb (i.e. as on image scales). Must be > 0.
53 If you set the bin width to 0 you suppress the column, even in line
54 mode.
55 Width factor: Let us call this wfac. In histogram mode, if you gave
56 lengths then the width of each block is wfac*ntot*1000000/lentot,
57 i.e. wfac=1 shows the normalised number per Mb. In a histogram
58 without length information, the block width is wfac*ntot/binsize,
59 equivalent to assuming there is complete coverage of information
60 in the bin (not a good assumption for sequence-based information!).
61 In line mode, lengths are ignored, and the line size for each
62 clone is wfac*n.
63 Colour: acedb colour: 0=WHITE, 1=BLACK, 2=LIGHTGREY, 3=DARKGREY,
64 4=RED, 5=GREEN, 6=BLUE, etc.
65 Offset: offset right of yellow bars, in character width units.
66 Name: gets printed above the column for each chromosome.
67 Is Line: 0 or 1 - 0 for a histogram, 1 for a line per clone
68
69 To see any effect after a change you must redraw the display with
70 "Full Genome Distribution".
71
72 If you quit the column specification window, you can get it back again
73 with "Edit histogram columns" from the menu.
74
75 Create histogram from keyset
76 ----------------------------
77
78 The "from keyset" option makes a list from the active keyset. It
79 takes all Clone objects that are either directly on the physical map,
80 or that are connected by a Positive tag2 relationship with clones on
81 the map, e.g. cDNA clones with hybridisation data. Note that the
82 latter functionality is only available via the keyset option. It then
83 works the same way as the file option without lengths.
84
85 Example
86 -------
87
88 There is an example file containing the number of CDS per cosmid from
89 in ~rd/worm.data/9510/cosmids.cds.hisinf:
90
91 AH6 13 37801
92 B0034 5 35228
93 B0228 9 38946
94 B0244 8 43546
95 ...
96
97 Load this file, set (bin 1, wfac 0.02, colour 3, offset 0, name
98 "His", isline 0), and to see something.
99
100 Now load the same file again, and use (bin 1, wfac 0.5, colour 6,
101 offset 5, name "Line", isline 1) to see an example of line display.
102
103 You can vary the histogram width in histogram mode without changing
104 anything else. If you set it very small, e.g. 0.1, you get something
105 that looks quite like the line display, but is in fact a little
106 different.
107
108 Make a keyset of all A* clones, load this with "Create histogram from
109 keyset" and set (bin 1, wfac 1, colour 4, offset 10, name "A*", isline
110 0). This shows the chromosomal distribution of the 97 unburied Axxxx
111 clones.
112
113 </PRE>
114
115 </BODY>
116
117 </HTML>