[BioRuby-cvs] bioruby/lib/bio/db/pdb residue.rb,1.3,1.4

Naohisa Goto ngoto at pub.open-bio.org
Sun Dec 18 12:34:49 EST 2005


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

Modified Files:
	residue.rb 
Log Message:
changed the ID generation codes


Index: residue.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/db/pdb/residue.rb,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** residue.rb	18 Dec 2005 15:09:46 -0000	1.3
--- residue.rb	18 Dec 2005 17:34:47 -0000	1.4
***************
*** 52,58 ****
            @id = nil
          else
!           @id = @resSeq.to_s << @iCode
            if @hetatm
!             @id = 'LIGAND' << @id
            end
          end
--- 52,58 ----
            @id = nil
          else
!           @id = "#{@resSeq}#{@iCode.strip}"
            if @hetatm
!             @id = 'LIGAND' + @id
            end
          end
***************
*** 72,78 ****
        def resSeq=(resSeq)
          @resSeq = resSeq.to_i
!         @id      = resSeq.to_s << @iCode
          if @hetatm
!           @id = 'LIGAND' << @id
          end
        end
--- 72,78 ----
        def resSeq=(resSeq)
          @resSeq = resSeq.to_i
!         @id      = "#{@resSeq}#{@iCode.strip}"
          if @hetatm
!           @id = 'LIGAND' + @id
          end
        end
***************
*** 80,86 ****
        def iCode=(iCode)
          @iCode = iCode
!         @id    = @resSeq.to_s << iCode
          if @hetatm
!           @id = 'LIGAND' << @id
          end
        end
--- 80,86 ----
        def iCode=(iCode)
          @iCode = iCode
!         @id    = "#{@resSeq}#{@iCode.strip}"
          if @hetatm
!           @id = 'LIGAND' + @id
          end
        end



More information about the bioruby-cvs mailing list