[Bio] / FortyEight / create_import_job.pl Repository:
ViewVC logotype

Diff of /FortyEight/create_import_job.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4, Fri Oct 5 17:23:57 2007 UTC revision 1.5, Wed Oct 31 23:16:50 2007 UTC
# Line 28  Line 28 
28  use Job48;  use Job48;
29  use NRTools;  use NRTools;
30    
31  my $usage = "create_import_job [-import-biodb] [-from-job jobnum] [prev-nr prev-syn prev-sims]";  my $usage = "create_import_job [-new-nr-data dir] [-import-biodb] [-from-job jobnum] [prev-nr prev-syn prev-sims]";
32    
33  #  #
34  # Incoming NR data.  # Incoming NR data.
# Line 63  Line 63 
63      {      {
64          $do_biodb_import++;          $do_biodb_import++;
65      }      }
66        elsif ($arg =~ /^-new-nr-data/)
67        {
68            $dir_biodb_nr_input = shift @ARGV;
69            $do_biodb_import++;
70        }
71      elsif ($arg =~ /^-from-job/)      elsif ($arg =~ /^-from-job/)
72      {      {
73          $from_job_id = shift @ARGV;          $from_job_id = shift @ARGV;
# Line 145  Line 150 
150  #  #
151  # Initial validation.  # Initial validation.
152  #  #
153  &validate_dirs($dir_biodb_nr_input, $dir_reference_seed_data, $dir_rast_jobs);  &validate_dirs($dir_reference_seed_data, $dir_rast_jobs);
154    
155  if ($do_biodb_import)  if ($do_biodb_import)
156  {  {
# Line 191  Line 196 
196  my %NR_dirs;  my %NR_dirs;
197    
198  scan_NR_dir(\%NR_dirs, "$dir_reference_seed_data/NR");  scan_NR_dir(\%NR_dirs, "$dir_reference_seed_data/NR");
199    
200    if ($do_biodb_import)
201    {
202  scan_NR_dir(\%NR_dirs, "$dir_biodb_nr_input");  scan_NR_dir(\%NR_dirs, "$dir_biodb_nr_input");
203    }
204    
205  #scan_NR_dir(\%NR_dirs, "$dir_biodb_nr_input", { skip => qr(^(SwissProt|.*\.bak)) });  #scan_NR_dir(\%NR_dirs, "$dir_biodb_nr_input", { skip => qr(^(SwissProt|.*\.bak)) });
206    
207  #  #

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3