[BioRuby-cvs] bioruby/doc Tutorial.rd,1.19,1.20

Pjotr Prins pjotr at dev.open-bio.org
Mon Feb 11 08:03:36 UTC 2008


Update of /home/repository/bioruby/bioruby/doc
In directory dev.open-bio.org:/tmp/cvs-serv7397

Modified Files:
	Tutorial.rd 
Log Message:
Minor adjustments to Tutorial

Index: Tutorial.rd
===================================================================
RCS file: /home/repository/bioruby/bioruby/doc/Tutorial.rd,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** Tutorial.rd	11 Feb 2008 07:08:46 -0000	1.19
--- Tutorial.rd	11 Feb 2008 08:03:27 -0000	1.20
***************
*** 497,519 ****
    bioruby> a = Bio::Alignment.new(seqs)
    bioruby> a.consensus 
!   ==> "xa?gc?"
    # shows IUPAC consensus
!   p a.consensus_iupac       # ==> "ahgcr"
! 
    # iterates over each seq
    a.each { |x| p x }
!     # ==>
!     #    "atgca"
!     #    "aagca"
!     #    "acgca"
!     #    "acgcg"
    # iterates over each site
    a.each_site { |x| p x }
!     # ==>
!     #    ["a", "a", "a", "a"]
!     #    ["t", "a", "c", "c"]
!     #    ["g", "g", "g", "g"]
!     #    ["c", "c", "c", "c"]
!     #    ["a", "a", "a", "g"]
  
    # doing alignment by using CLUSTAL W.
--- 497,519 ----
    bioruby> a = Bio::Alignment.new(seqs)
    bioruby> a.consensus 
!   ==> "a?gc?"
    # shows IUPAC consensus
!   a.consensus_iupac 
!   ==> "ahgcr"
    # iterates over each seq
    a.each { |x| p x }
!   # ==>
!   #    "atgca"
!   #    "aagca"
!   #    "acgca"
!   #    "acgcg"
    # iterates over each site
    a.each_site { |x| p x }
!   # ==>
!   #    ["a", "a", "a", "a"]
!   #    ["t", "a", "c", "c"]
!   #    ["g", "g", "g", "g"]
!   #    ["c", "c", "c", "c"]
!   #    ["a", "a", "a", "g"]
  
    # doing alignment by using CLUSTAL W.




More information about the bioruby-cvs mailing list