[BioRuby-cvs] bioruby/lib/bio alignment.rb,1.11,1.12

Naohisa Goto ngoto at pub.open-bio.org
Fri Nov 25 11:50:41 EST 2005


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

Modified Files:
	alignment.rb 
Log Message:
adds some document


Index: alignment.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/alignment.rb,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** alignment.rb	25 Nov 2005 15:36:43 -0000	1.11
--- alignment.rb	25 Nov 2005 16:50:39 -0000	1.12
***************
*** 186,189 ****
--- 186,191 ----
  
        # Returns consensus character of the site.
+       # If consensus is found, eturns a single-letter string.
+       # If not, returns nil.
        def consensus_string(threshold = 1.0)
          return nil if self.size <= 0
***************
*** 220,224 ****
        ]
  
!       # Returns an IUPAC consensus base for the site
        def consensus_iupac
          a = self.collect { |x| x.downcase }.sort.uniq
--- 222,228 ----
        ]
  
!       # Returns an IUPAC consensus base for the site.
!       # If consensus is found, eturns a single-letter string.
!       # If not, returns nil.
        def consensus_iupac
          a = self.collect { |x| x.downcase }.sort.uniq



More information about the bioruby-cvs mailing list