[Bio] / FigKernelScripts / extract_data_for_syncing_after_update.pl Repository:
ViewVC logotype

Annotation of /FigKernelScripts/extract_data_for_syncing_after_update.pl

Parent Directory Parent Directory | Revision Log Revision Log


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

1 : olson 1.6 #
2 :     # Copyright (c) 2003-2006 University of Chicago and Fellowship
3 :     # for Interpretations of Genomes. All Rights Reserved.
4 :     #
5 :     # This file is part of the SEED Toolkit.
6 :     #
7 :     # The SEED Toolkit is free software. You can redistribute
8 :     # it and/or modify it under the terms of the SEED Toolkit
9 :     # Public License.
10 :     #
11 :     # You should have received a copy of the SEED Toolkit Public License
12 :     # along with this program; if not write to the University of Chicago
13 :     # at info@ci.uchicago.edu or the Fellowship for Interpretation of
14 :     # Genomes at veronika@thefig.info or download a copy from
15 :     # http://www.theseed.org/LICENSE.TXT.
16 :     #
17 :    
18 : overbeek 1.2 use P2Pupdate;
19 :    
20 : overbeek 1.1 use FIG;
21 :     my $fig = new FIG;
22 :    
23 : overbeek 1.4 (
24 : overbeek 1.1 ($sync_from_date = shift @ARGV) &&
25 : overbeek 1.4 ($dir = shift @ARGV)
26 : overbeek 1.1 )
27 : overbeek 1.4 || die "usage: usage: extract_data_for_syncing_after_update SyncFromDate(MM/DD/YYYY) Dir";
28 :     (! -d $dir) || die "$dir already exists";
29 :     mkdir($dir,0777) || die "could not make $dir";
30 : overbeek 1.5 $assignments_package = "$dir/assignments_package";
31 :     $annotations_package = "$dir/annotations_package";
32 :     $trans_rules_package = "$dir/trans_rules_package";
33 :     $subsys_package = "$dir/subsys_package";
34 : overbeek 1.1
35 : overbeek 1.2 &P2Pupdate::package_translation_rules($FIG_Config::fig,$trans_rules_package);
36 : overbeek 1.1 &P2Pupdate::package_subsystems($fig,$subsys_package,0);
37 :    
38 : overbeek 1.3 my(@genomes) = $fig->genomes;
39 : overbeek 1.1 &P2Pupdate::package_assignments($fig,"master","master",$sync_from_date,\@genomes,$assignments_package);
40 : overbeek 1.3 &P2Pupdate::package_annotations($fig,"master",$sync_from_date,\@genomes,$annotations_package);
41 : overbeek 1.1

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3