Module | Bio::PDB::HetatmFinder
In: | lib/bio/db/pdb/utils.rb

methods to access HETATMs

XXX#each_heterogen must be defined.

Bio::PDB::HetatmFinder is included by Bio::PDB::PDB, Bio::PDB::Model, Bio::PDB::Chain, and Bio::PDB::Heterogen.

### Methods

each_hetatm find_hetatm hetatms

### Public Instance methods

each_hetatm() {|hetatm| ...}

iterates over each HETATM

[Source]

         # File lib/bio/db/pdb/utils.rb, line 355
    355:     def each_hetatm(&x) #:yields: hetatm
    356:       self.each_heterogen { |heterogen| heterogen.each(&x) }
    357:     end

find_hetatm() {|hetatm| ...}

returns an array containing all HETATMs for which given block is not `false` (similar to Enumerable#find_all).

[Source]

         # File lib/bio/db/pdb/utils.rb, line 346
    346:     def find_hetatm
    347:       array = []
    348:       self.each_hetatm do |hetatm|
    349:         array.push(hetatm) if yield(hetatm)
    350:       end
    351:       return array
    352:     end

hetatms()

returns all HETATMs

[Source]

         # File lib/bio/db/pdb/utils.rb, line 360
    360:     def hetatms
    361:       array = []
    362:       self.each_heterogen { |heterogen| array.concat(heterogen.hetatms) }
    363:       return array
    364:     end

[Validate]