[BioRuby-cvs] bioruby/lib/bio/shell core.rb,1.12,1.13

Katayama Toshiaki k at pub.open-bio.org
Sun Nov 27 21:08:24 EST 2005


Update of /home/repository/bioruby/bioruby/lib/bio/shell
In directory pub.open-bio.org:/tmp/cvs-serv8437/bio/shell

Modified Files:
	core.rb 
Log Message:
* directory preparation for bioflat is separated to bio/shell/core


Index: core.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/shell/core.rb,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** core.rb	27 Nov 2005 17:39:00 -0000	1.12
--- core.rb	28 Nov 2005 02:08:22 -0000	1.13
***************
*** 161,164 ****
--- 161,184 ----
    end
  
+   ### bioflat
+ 
+   def create_flat_dir(dbname)
+     if prefix = create_save_dir
+       return prefix + BIOFLAT + dbname.to_s
+     else
+       return nil
+     end
+   end
+ 
+   def find_flat_dir(dbname)
+     dir = SAVEDIR + BIOFLAT + dbname.to_s
+     dir = USERDIR + BIOFLAT + dbname.to_s unless File.exists?(dir)
+     if File.exists?(dir)
+       return dir
+     else
+       return nil
+     end
+   end
+ 
    ### config
  
***************
*** 315,319 ****
      end
    end
- 
  
    ### history
--- 335,338 ----



More information about the bioruby-cvs mailing list