[BioRuby-cvs] bioruby/lib/bio/sequence format.rb,1.1,1.2

Katayama Toshiaki k at pub.open-bio.org
Mon Feb 6 14:20:37 UTC 2006


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

Modified Files:
	format.rb 
Log Message:
* added RDoc header with Ruby's license
* format_* functions are moved under the module Bio::Sequence::Format
  and these are extended to Bio::Sequence object when used.
* format_gff method is added as a skelton (need to be implemented)


Index: format.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/sequence/format.rb,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** format.rb	23 Jan 2006 04:13:36 -0000	1.1
--- format.rb	6 Feb 2006 14:20:35 -0000	1.2
***************
*** 1,8 ****
--- 1,26 ----
+ #
+ # = bio/sequence/format.rb - various output format of the biological sequence
+ #
+ # Copyright::   Copyright (C) 2006
+ #               Toshiaki Katayama <k at bioruby.org>,
+ #               Naohisa Goto <ng at bioruby.org>
+ # License::     Ruby's
+ #
+ # = TODO
+ #
  # porting from N. Goto's feature-output.rb on BioRuby list.
+ #
+ # $Id$
+ #
+ 
  
  module Bio
  
+   autoload :Sequence, 'bio/sequence'
+ 
  class Sequence
  
+ module Format
+ 
    # Output the FASTA format string of the sequence.  The 1st argument is
    # used in the comment line.  If the 2nd argument (integer) is given,
***************
*** 19,22 ****
--- 37,44 ----
    end
  
+   def format_gff
+     raise NotImplementedError
+   end
+ 
    def format_genbank
      prefix = ' ' * 5
***************
*** 35,38 ****
--- 57,61 ----
    end
  
+ 
    private
  
***************
*** 104,108 ****
--- 127,134 ----
    end
  
+ end # Format
+ 
  end # Sequence
  
  end # Bio
+ 




More information about the bioruby-cvs mailing list