[Bio] / FigTutorial / SEED_administration_issues.html Repository:
ViewVC logotype

Annotation of /FigTutorial/SEED_administration_issues.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (view) (download) (as text)

1 : olson 1.2 <h1>SEED Administration</h1>
2 :     <p>This tutorial discusses a number of issues that you will need to know about
3 :     in order to install, share, and maintain your SEED installation.</p>
4 :     <h2>Backing Up Your Data</h2>
5 : olson 1.1 The data and code stored within the SEED are organized as follows:
6 :     <pre>
7 :     ~fig on a Mac: /Users/fig; on Linux: /home/fig
8 :     FIGdisk
9 :     dist source code
10 :     FIG
11 :     Tmp temporary files
12 :     Data data in readable form
13 :     </pre>
14 : olson 1.2 <ol><li>
15 : olson 1.1 The directory <b>FIGdisk</b> holds both the code and data for the
16 :     SEED. The data is loaded into a database system that stores the data
17 :     in a location external to FIGdisk, but otherwise a running SEED is
18 :     encapsulated within FIGdisk. A symbolic link to FIGdisk is maintained
19 :     in the directory ~fig.
20 :     <br>
21 :     <li>
22 :     Within FIGdisk there are a two key directories:
23 :     <br>
24 :     <br><ol><li>
25 :     <b>dist</b> contains the source code, and
26 :    
27 :     <li>
28 :     <b>FIG</b> contains the execution environment and Data.
29 :     </ol>
30 :     <br>
31 :     <li>
32 :     Within FIG, there are a number of directories. The most important are
33 :     <br>
34 :     <br>
35 :     <ol>
36 :     <li>
37 :     <b>Data</b>, which contains all of the data in a human-readable form,
38 :     and
39 :     <br>
40 :     <br>
41 :     <li>
42 :     <b>Tmp</b>, which contains the temporary files built by SEED in
43 :     response to commands.
44 :     </ol>
45 :     </ol>
46 :     <br>
47 :     Hence, to backup your data, you should simply copy the Data
48 :     directory. It should be backed up to a separate disk. Suppose that
49 :     /Volumes/Backup is a backup disk. Then,
50 :     <br>
51 :     <pre>
52 :     cp -pRP /Users/fig/FIGdisk/FIG/Data /Volumes/Backup/Data.Backup
53 :     gzip -r /Volumes/Backup/Data.Backup
54 :     </pre>
55 :     <br>
56 :     would be a reasonable way to make a backup. The copy preserves
57 :     permissions, copies recursively, and does not follow symbolic links.
58 :     <br>
59 : olson 1.2 <h2>Copying a Version of the SEED</h2>
60 : olson 1.1
61 :     To make a second copy of the SEED (either for a friend or for yourself), you should use tar
62 :     to preserve a few symbolic links (which are relative, not absolute; this means that they can
63 :     be copied while still preserving the integrity of the whole system).
64 :     So, suppose that you have a FIGdisk in /Volumes/From/FIGdisk.Jan8 and you wish to copy it
65 :     to /Volumes/To. Use
66 :     <pre>
67 :     cd /Volumes/From
68 :     tar cf - FIGdisk.Jan8 | (cd /Volumes/To; tar xf -)
69 :     </pre>
70 :     <p>This should produce the desired copy. In this case, suppose that we are in a
71 :     Mac OS X
72 :     environment, and <b>From</b> and <b>To</b> are firewire disks. To install the system on a friends
73 :     Mac, you would unmount <b>To</b>, plug it into the new machine, and then set the symbolic link to the active
74 :     FIGdisk using
75 :     <br>
76 :     </p>
77 :     <table border="1" bgcolor="#CCCCCC">
78 :     <tr>
79 :     <td width="403"><font face="Courier New, Courier, mono">cd ~fig</font></td>
80 :     <td width="285">&nbsp;</td>
81 :     </tr>
82 :     <tr>
83 :     <td><font face="Courier New, Courier, mono">rm FIGdisk</font></td>
84 :     <td># fails if there is no existing FIGdisk on the machine</td>
85 :     </tr>
86 :     <tr>
87 :     <td><font face="Courier New, Courier, mono">ln -s /Volumes/To/FIGdisk.Jan8 FIGdisk</font></td>
88 :     <td>&nbsp;</td>
89 :     </tr>
90 :     <tr>
91 : olson 1.2 <td><font face="Courier New, Courier, mono">bash</font></td>
92 :     <td>Switch to using the bash shell</td>
93 :     </tr>
94 :     <tr>
95 : olson 1.1 <td><font face="Courier New, Courier, mono">cd FIGdisk</font></td>
96 :     <td>&nbsp;</td>
97 :     </tr>
98 :     <tr>
99 : olson 1.2 <td height="23"><font face="Courier New, Courier, mono">cp CURRENT_RELEASE DEFAULT_RELEASE</font></td>
100 : olson 1.1 <td># Causes the new configuration to use the code that was running in the
101 :     original installation</td>
102 :     </tr>
103 : olson 1.2 <tr>
104 :     <td height="23"><font face="Courier New, Courier, mono">./configure <em>arch-name</em></font></td>
105 :     <td># Configure the new SEED disk for architecture <em>arch-name</em>. </td>
106 :     </tr>
107 :     <tr>
108 :     <td height="23"><font face="Courier New, Courier, mono"> source config/fig-user-env.sh <br>
109 :     </font></td>
110 :     <td># Set up the environment for using the SEED</td>
111 :     </tr>
112 :     <tr>
113 :     <td height="23"><font face="Courier New, Courier, mono">start-servers <br>
114 :     </font></td>
115 :     <td># Start the database server and registration servers</td>
116 :     </tr>
117 :     <tr>
118 :     <td height="23"><font face="Courier New, Courier, mono">init_FIG <br>
119 :     </font></td>
120 :     <td># Initialize a new relational database</td>
121 :     </tr>
122 :     <tr>
123 :     <td height="23"><font face="Courier New, Courier, mono">fig load_all</font></td>
124 :     <td># Load the database from the SEED data files. This may take several hours</td>
125 :     </tr>
126 :     </table>
127 :     <p>At this point, the new SEED copy should be ready to use. You only need to
128 :     perform the configure, init_FIG, and fig load_all steps once after installing
129 :     a new copy of the SEED. After a reboot or other clean start of the computer,
130 :     you will only have to do these steps:</p>
131 : olson 1.3 <table border="1" bgcolor="#EEEEEE">
132 : olson 1.2 <tr>
133 :     <td width="403"><font face="Courier New, Courier, mono">cd ~fig/FIGdisk</font></td>
134 :     <td width="285">&nbsp;</td>
135 :     </tr>
136 :     <tr>
137 :     <td><font face="Courier New, Courier, mono">bash</font></td>
138 :     <td>Switch to using the bash shell</td>
139 :     </tr>
140 :     <tr>
141 :     <td height="23"><font face="Courier New, Courier, mono"> source config/fig-user-env.sh <br>
142 :     </font></td>
143 :     <td># Set up the environment for using the SEED</td>
144 :     </tr>
145 :     <tr>
146 :     <td height="23"><font face="Courier New, Courier, mono">start-servers <br>
147 :     </font></td>
148 :     <td># Start the database server and registration servers</td>
149 :     </tr>
150 : olson 1.1 </table>
151 : olson 1.2 <p>Upon setting up a new computer for running SEED, you should read the full
152 :     documentation for SEED installation, as it has a number of platform-specific
153 :     modifications that need to be performed. This document can currently be found
154 :     at the following
155 :     location in the SEED Wiki: </p>
156 : olson 1.1 <blockquote>
157 :     <p><a href="http://www-unix.mcs.anl.gov/SEEDWiki/moin.cgi/SeedInstallationInstructions"> http://www-unix.mcs.anl.gov/SEEDWiki/moin.cgi/SeedInstallationInstructions</a></p>
158 :     </blockquote>
159 : olson 1.2 <h2>Running Multiple Copies of the SEED</h2>
160 : olson 1.1
161 :     For individual users that use the SEED to support comparative analysis, a single copy is completely
162 :     adequate. Adding genomes can usually be done without disrupting normal use, and a very occasional major
163 :     reorganization that runs over the weekend is not a big deal.
164 :     <p>
165 :     The situation is somewhat different when the system is being used to support a major sequencing/annotation
166 :     effort. In this case, you have a user community that is sensitive to disruptions of service, and you
167 :     have frequent demands to update versions of data. In this case, it is best to have two systems: the
168 :     <b>production system</b> is used to support the larger user community, and the <b>update system</b> is
169 : overbeek 1.4 used to prepare updated versions of the system. Even so, work stoppages of 4-8 hours will occur when
170 : olson 1.1 new releases are swapped in. To swap in new data from the update system to the production system,
171 : gdpusch 1.6 you need to:
172 : olson 1.1 <ol>
173 : gdpusch 1.6 <li> Stop all work on the production machine for the duration of the update.
174 :     You do this by clicking on the "Seed Control Panel" link,
175 :     and then entering an explanatory message in the text box
176 :     and clicking on the "Disable SEED server" button.
177 :     <li> You now need to capture the assignments, annotations and
178 :     subsystems work that has been done on the production machine.
179 :     To do this, you need to know when the last production release
180 :     was installed. Suppose that it was July 1, 2004.
181 :     If that was the date, we recommend that you run<br><br>
182 :     <pre>
183 :     <b>extract_data_for_syncing_after_update 7/1/2004 /tmp/sync.data.july.1.2004</b>
184 :     </pre>
185 :     <br><br>
186 :     This will capture your updates and save them in the directory
187 :     /tmp/sync.data.july.1.2004.
188 :     <li> Now, you need to replace your <b>Data</b> directory (within
189 :     <b>FIGdisk/FIG</b>) with the new version from the update system. We
190 :     suggest that you do the following:
191 :     <ol>
192 :     <li> Archive the existing <b>Data</b> directory. These can usually be
193 :     discarded within a month or two, but keeping them around is a good
194 :     safety measure.
195 :     <li> Move a copy of the update <b>Data</b> directory into the
196 :     <b>FIGdisk/FIG</b> directory.
197 :     </ol>
198 :     At this point, you have a version of the data from the update system
199 :     in the right location, but the internal databases all contain the old data.
200 : overbeek 1.4 <li> Now, run
201 : gdpusch 1.6 <pre>
202 : overbeek 1.4 <b>fig load_all</b>
203 : gdpusch 1.6 </pre>
204 :     to reload the production databases with the data from the newly inserted Data directory.
205 :     This will usually take several hours.
206 :     <li> Now, you need to capture the changes made to the old production
207 :     version using something like
208 :     <br>
209 :     <pre>
210 :     <b>sync_new_system /tmp/sync.data.july.1.2004 make-assignments</b>
211 :     </pre>
212 :     <br>
213 :     <li> Make the production machine available for use.
214 :     <li> You should now bring your update system to the same state as the
215 :     production system. This can be done by making sure that
216 :     <b>/tmp/sync.data.july.1.2004</b> is accessible to the update system.
217 :     If the production and update systems are run on the same machine, then
218 :     the directory is already there. If not, copy it to <b>/tmp</b> on the
219 :     update machine. Then run
220 :     <br>
221 :     <pre>
222 :     <b>sync_new_system /tmp/sync.data.july.1.2004 make-assignments</b>
223 :     </pre>
224 :     <br>
225 :     on the update machine.
226 : olson 1.1 </ol>
227 :     Our experience is that anytime a group wishes to share a common production environment,
228 : overbeek 1.4 this 2-system approach is the way to do it. You can, if necessary,
229 :     put both systems on the same physical machine. This does require some
230 :     special handling in setting up two different <b>FIGdisk</b>
231 :     directories. We recommend using <b>FIGdisk.production</b> and
232 :     <b>FIGdisk.update</b>. However, in general it makes sense to use two
233 :     separate physical machines, for backup if nothing else. The update
234 :     system can usually be run on a $2000 (or less) box, although it is
235 :     desirable to spend a little more and get at least 1 gigabyte of main
236 :     memory and 200 gigabytes of external disk.
237 : olson 1.1 <br>
238 : olson 1.2 <h2>Adding a New Genome to an Existing SEED</h2>
239 : olson 1.1 To add a new genome to a running SEED is fairly easy, but there are a
240 :     number of details that do have to be handled with care.
241 :     <p>
242 :     The first thing to note is that the SEED does not include tools to call genes -- you are expected
243 :     to provide gene calls. This may change at some point, but for now you must call your own genes. A
244 :     number of good tools now exist in the public domain, and you will need to find one that seems adequate
245 :     for your needs.
246 :     <p>
247 :     Let us now
248 :     cover how to prepare the actual data. You need to construct a directory (in somewhere like ~fig/Tmp)
249 :     of the following form:
250 :     <br>
251 :     <table width="100%">
252 :     <tr>
253 :     <td><tt>GenomeId</tt></td>
254 :     <td></td>
255 :     <td></td>
256 :     <td></td>
257 :     <td>of the form xxxx.y where xxxx is the taxon ID and y is an integer</td>
258 :     </tr>
259 :    
260 :     <tr>
261 :     <td></td>
262 :     <td><tt>PROJECT</tt></td>
263 :     <td></td>
264 :     <td></td>
265 :     <td> a file containg a description of the source of the data</td>
266 :     </tr>
267 :    
268 :     <tr>
269 :     <td></td>
270 :     <td><tt>GENOME</tt></td>
271 :     <td></td>
272 :     <td></td>
273 :     <td>a file containing a single line identifying the genus, species and strain</td>
274 :     </tr>
275 :    
276 :     <tr>
277 :     <td></td>
278 :     <td><tt>TAXONOMY</tt></td>
279 :     <td></td>
280 :     <td></td>
281 :     <td>a file containing a single line containing the NCBI taxonomy</td>
282 :     </tr>
283 :    
284 :     <tr>
285 :     <td></td>
286 :     <td><tt>RESTRICTIONS</tt></td>
287 :     <td></td>
288 :     <td></td>
289 :     <td>a file containing a description of distribution restrictions (optional)</td>
290 :     </tr>
291 :    
292 :     <tr>
293 :     <td></td>
294 :     <td><tt>CONTIGS</tt></td>
295 :     <td></td>
296 :     <td></td>
297 :     <td>contigs in fasta format</td>
298 :     </tr>
299 :    
300 :     <tr>
301 :     <td></td>
302 :     <td><tt>assigned_functions</tt></td>
303 :     <td></td>
304 :     <td></td>
305 :     <td>function assignments for the protein-encoding genes (optional)</td>
306 :     </tr>
307 :    
308 :     <tr>
309 :     <td></td>
310 :     <td><tt>Features</tt></td>
311 :     </tr>
312 :    
313 :     <tr>
314 :     <td></td>
315 :     <td></td>
316 :     <td><tt>peg</tt></td>
317 :     </tr>
318 :    
319 :     <tr>
320 :     <td></td>
321 :     <td></td>
322 :     <td></td>
323 :     <td><tt>tbl</tt></td>
324 :     <td>describes locations and aliases for the protein-encoding genes</td>
325 :     </td>
326 :     </tr>
327 :    
328 :     <tr>
329 :     <td></td>
330 :     <td></td>
331 :     <td></td>
332 :     <td><tt>fasta</tt></td>
333 :     <td>fasta file of translations of the protein-encoding genes</td>
334 :     </td>
335 :     </tr>
336 :    
337 :     <tr>
338 :     <td></td>
339 :     <td></td>
340 :     <td><tt>rna</tt></td>
341 :     </tr>
342 :    
343 :     <tr>
344 :     <td></td>
345 :     <td></td>
346 :     <td></td>
347 :     <td><tt>tbl</tt></td>
348 :     <td>describes locations and aliases for the rna-encoding genes</td>
349 :     </td>
350 :     </tr>
351 :    
352 :     <tr>
353 :     <td></td>
354 :     <td></td>
355 :     <td></td>
356 :     <td><tt>fasta</tt></td>
357 :     <td>fasta file of the DNA corresponding to the genes</td>
358 :     </td>
359 :     </tr>
360 :    
361 :    
362 :     </table>
363 :    
364 :     <!--
365 :    
366 :     <pre>
367 :     GenomeID of the form xxxx.y where xxxx is the taxon ID and y is an integer
368 :    
369 :     PROJECT a file containg a description of the source of the data
370 :    
371 :     GENOME a file containing a single line identifying the genus, species and strain
372 :    
373 :     TAXONOMY a file containing a single line containing the NCBI taxonomy
374 :    
375 :     RESTRICTIONS a file containing a description of distribution restrictions (optional)
376 :    
377 :     contigs contigs in fasta format
378 :    
379 :     assigned_functions function assignments for the protein-encoding genes (optional)
380 :    
381 :     Features
382 :    
383 :     peg
384 :     tbl descibes locations and aliases for the protein-encoding genes
385 :    
386 :     fasta fasta file of translations of the protein-encoding genes
387 :    
388 :     rna
389 :     tbl describes locations and aliases for the rna-encoding genes
390 :    
391 :     fasta fasta file of the DNA corresponding to the genes
392 :     </pre>
393 :     -->
394 :     <br>
395 :     <br>
396 :     Let us expand on this very brief description:
397 :     <ol>
398 :     <li>
399 :     The name of the directory must be of the form xxxx.y where xxxx is the
400 :     taxon ID, and y is a sequence number. For example, 562.1 might be
401 :     used for <i>E.coli</i>, since 562 is the NCBI taxon ID for
402 :     <i>Escherichia coli</i>. The sequence number (y) is used to
403 :     distinguish multiple genomes having the same taxon ID.
404 :     <br><br>
405 :     <li>
406 :     The assigned_functions file contains assignments of function for the
407 :     protein-encoding genes. is of the form
408 :     <pre>
409 :     Id\tFunction\tConfidence (\t stands for a tab character)
410 :     </pre>
411 :     The Id must be a valid PEG Id. These are of the form:
412 :     <pre>
413 :     fig|xxxx.y.peg.z
414 :     </pre>
415 :     where xxxx.y is the genome Id, and z is an integer that uniquely distinguishes
416 :     the peg (protein-encoding gene).
417 :     <br>
418 :     <i>Confidence</i> is a single character code:
419 :     <br>
420 :     <ul>
421 :     <li>a space for "normal"
422 :     <li>w for "weak"
423 :     <li>e for experimentally verified
424 :     <li>s for "strong evidence (but not experimental)"
425 :     </ul>
426 :     The second tab and the confidence code can be omitted (it will default to a space).
427 :     The assigned_functions file is optional. You can leave it blank and, after adding the genome
428 :     to the SEED, ask for automated assignments.
429 :     <br><br>
430 :     <li>
431 :     The tbl files specify the locations of genes, as well as any aliases. Each line in a tbl line
432 :     is of the form
433 :     <br>
434 :     <pre>
435 :     Id\tLocation\tAliases (the aliases are separated by tabs)
436 :     </pre>
437 :     The Id must conform to the fig|xxxx.y.peg.z format described above. The <i>Location</i> is of the form
438 :     <br>
439 :     <pre>
440 :     L1,L2,L3...Ln
441 :    
442 :     where each Li describes a region on a contig and is of the form
443 :    
444 :     <i>Contig_Begin_End</i> where
445 :    
446 :     Contig is the Id of the contig,
447 :     Begin is the position of the first character, and
448 :     End is the position of the last character
449 :     </pre>
450 :     <ul>
451 :     <li>if Begin > End, the region being described is on the complementary strand, and
452 :     <li>the End position is the last character preceding the stop codon (i.e., the region
453 :     corresponding to a protein-encoding gene is thought of as including all bases from the
454 :     first base of the start codon to the last base before the stop codon.
455 :     </ul>
456 :     For example,
457 :     <pre>
458 :     fig|562.1.peg.15 Escherichia_coli_K12_14168_15295 dnaJ b0015 sp|P08622 gi|16128009
459 :     </pre>
460 :     describes the <i>dnaJ</i> gene encoded on the positive strand from 14168 through 15295 on the contig Escherichia_coli_K12.
461 :     The gene is from the genome 562.1, and it has 4 specified aliases.
462 :     <li>
463 :     The fasta files must have gene Ids that match tbl file entries. The <i>peg</i> fasta file contains translations,
464 :     while the <i>rna</i> fasta file contains DNA sequences.
465 :     <li>
466 :     Both the <i>peg</i> and the <i>rna</i> subdirectories are optional.
467 :     </ol>
468 :     <br>
469 :     The SEED provides a utility that can be used to produce such a directory from a GenBank entry. Thus,
470 :     <br>
471 :     <pre>
472 :     parse_genbank 562.4 ~/Tmp/562.4 < genbank.entry.for.a.new.E.coli.genome
473 :     </pre>
474 :     would attempt to produce a properly formatted directory (~/Tmp/562.4) containing
475 :     the data encoded in the GenBank entry from the file <i>genbank.entry.for.a.new.E.coli.genome</i>.
476 :     This script is far from perfect, and there is huge variance in encodings in GenBank
477 :     files. So, use it at your own risk (and, manually check the output).
478 :     <p>
479 :     You would be well advised to look at some of the subdirectories included in the FIGdisk/FIG/Data/Organisms directory
480 :     to see examples of how it should be done.
481 :     <p>
482 :     So, supposing that you have built a valid directory (say, <i>/Users/fig/Tmp/562.4</i>), you can add the genome using
483 :     <pre>
484 :     fig add_genome /Users/fig/Tmp/562.4
485 :     </pre>
486 :     <br>
487 :     The <i>add_genome</i> request will add your new genome and queue a computational request that similarities
488 :     be computed for the protein-encoding genes.
489 :    
490 : olson 1.2 <h2>Computing Similarities</h2>
491 : olson 1.1
492 :     Adding a genome does not automatically get similarities computed for the new genome; it queues the request.
493 :     To get the similarities actually computed, you need to establish a computational environment on which
494 :     the blast runs will be made, and then initiate a request on the machine running the SEED.
495 :     <p>
496 :     This is not a completely trivial process because there are a variety of different ways to compute
497 :     similarities:
498 :     <ol>
499 :     <li> You can just compute them on the system running the SEED. This can take several days, but this
500 :     is often a perfectly reasonable way to get the job done.
501 :     <li>Alternatively, you may be in an environment where you have a set of networked machines (say, 4-5 machines),
502 :     and you wish to just exploit these machines to do the blast runs.
503 :     <li> Finally, you may be dealing with a large genome or genomes (and, hence, the need for many days of computation).
504 :     In this case, it makes sense to utilize a large computational resource, and this resource may either
505 :     be a local cluster or a service provided over the net.
506 :     </ol>
507 :     <br>
508 :     To establish the flexibility needed to support all of these alternatives, we implemented the following
509 :     approach:
510 :     <ul>
511 :     <li>
512 :     The user can describe one or more <b>similarity computational environments</b>
513 :     in a configuration file called <i>similarities.config</i>. The details of this encoding
514 :     are beyond the scope of this document.
515 :     These environments all represent potential ways to compute similarities.
516 :     <br>
517 :     <li>
518 :     When a SEED systems administrator (usually, the normal SEED user) wishes to run similarities,
519 :     he runs a program specifying a specific similarity computational environment. This causes all
520 :     the queued similarity requests to be batched up and sent off to the specified server (which may simply
521 :     be on the same machine). He would use the <b>generate_similarities</b> command specifying two parameters: the
522 :     first specifies a similarities computational environment, and the second specifies whether or not automated assignments
523 :     should be computed as the similarity computations complete and the results are installed.
524 :     As the similarities complete, they will automatically be installed. Further, if a set of similarities arrive
525 :     for a given protein-encoding gene, and if there is no current assignment of function for the gene,
526 :     an automated assignment may be computed. Whether or not such automated assignments are computed is determined
527 :     by the second parameter in the command used by the systems administrator to initiate the request. For example,
528 :     <pre>
529 :     generate_similarities local auto-assignments
530 :     </pre>
531 :     specifies a similarity computational environment labeled <i>local</i>, which presumably means "run the blast
532 :     requests on this machine", and requests automated assignments for all protein-encoding genes that currently either
533 :     have no assigned function or have an assigned function that is "hypothetical".
534 :     </ul>
535 :     <br>
536 :    
537 :     We anticipate that at least one major center (Argonne National Lab) and, perhaps, more will create well-defined
538 :     interfaces for handling high-volume requests. At FIG, we will maintain a set of instructions on how to set up
539 :     your configuration to exploit these resources.
540 :    
541 : olson 1.2 <h2>Deleting Genomes from a Version of the SEED </h2>
542 : olson 1.1
543 :     There are two common instances in which one wishes to delete genomes from a running version of the SEED: one is
544 :     when you wish to replace an existing version of a genome (in which case the replacement is viewed as first
545 :     deleting the existing copy and then adding the new copy), and the second is when you wish to create a copy
546 :     of the SEED containing a subset of the entire collection of genomes.
547 :     <p>
548 :     To delete a set of genomes from a running version of the SEED, just use
549 :     <pre>
550 :     fig delete_genomes G1 G2 ...Gn (where G1 G2 ... Gn designates a list of genomes)
551 :     </pre>
552 :     For example,
553 :     <pre>
554 :     fig delete_genomes 562.1
555 :     </pre>
556 :     could be used to delete a single genome with a genome ID of 562.1.
557 :     <p>
558 :     To make a copy with some genomes deleted to give to someone else requires a little different approach.
559 :     To extract a set of genomes from an existing version of the SEED, you need to run the command
560 :     <pre>
561 :     extract_genomes Which ExistingData ExtractedData
562 :     </pre>
563 :    
564 :     The first argument is either the word "unrestricted" or the name of a file containing a list of
565 :     genome IDs (the genomes that are to be retained in the extraction). The second argument is
566 :     the path to the current Data directory. The third argument specifies the name of a directory
567 :     that is created holding the extraction. Thus,
568 :     <pre>
569 :     extract_genomes unrestricted /Users/fig/FIGdisk/FIG/Data /Volumes/Tmp/ExtractedData
570 :     </pre>
571 :     would created the extracted Data directory for you. If you wish to then produce a fully distributable
572 :     version of the SEED from the existing version and the extracted Data directory, you would
573 :     use
574 :     <pre>
575 :     make_a_SEED /Users/fig/FIGdisk /Volumes/Tmp/ExtractedData /Volumes/MyFriend/FIGdisk.ReadyToGo
576 :     rm -rf /Volumes/Tmp/ExtractedData
577 :     </pre>
578 :    
579 : gdpusch 1.6 <h2>Periodic Reintegration of Similarities</h2>
580 : olson 1.1
581 :     When the initial SEED was constructed, similarities were computed. For most similarities of the form
582 :     "Id1 and Id2 are similar", entries were "recorded" for both Id1 and Id2. This is not always true,
583 :     since we truncate the number of similarities associated with any single Id (leaving us in a situation
584 :     in which we may have similarity recorded for Id1, but not Id2). When a genome is added, if Id1 was an added
585 :     protein-encoding gene (peg), then the similarity is "recorded" for Id1 but not Id2. This means that when looking
586 :     at genes from previously existing organisms, you never get links back to the added pegs. This is not totally
587 :     satisfactory.
588 :     <p>
589 :     Periodically, it is probably a good idea to "reinitegrate the similarities". This can be done by
590 :     just running
591 :     <pre>
592 :     reintegrate_sims
593 :     # update_sims /dev/null /dev/null ~/FIGdisk/FIG/Data/NewSims/* ; rm -f ~/FIGdisk/FIG/Data/NewSims/* index_sims
594 :     </pre>
595 :     The job will probably run for quite a while (perhaps as much as a day or two).
596 :    
597 : olson 1.2 <h2>Computing "Pins" and "Clusters"</h2>
598 : olson 1.1
599 :     The SEED displays potentially significant clusters on prokaryotic chromosomes. In the
600 :     process of finding preserved contiguity, it computes "pins", which are simply a set of genes
601 :     that are believed to be orthologs that cluster with similar genes. If you add your own genome,
602 :     you will probably want to compute and enter these into the active database. This can be done
603 :     using
604 :     <pre>
605 :     compute_pins_and_clusters G1 G2 G3 ...
606 :     </pre>
607 :     where the arguments are genome Ids. Thus,
608 :     <pre>
609 :     compute_pins_and_clusters 562.4
610 :     </pre>
611 :     would compute and add entries for all of the <i>pegs</i> in genome 562.4.

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3