Method: Bio::PDB#helix

Defined in:
lib/bio/db/pdb/pdb.rb

#helix(helixID = nil) ⇒ Object

Gets HELIX records. If no arguments are given, it returns all HELIX records. (Returns an array of Bio::PDB::Record::HELIX instances.) If helixID is given, it only returns records corresponding to given helixID. (Returns an Bio::PDB::Record::HELIX instance.)



1748
1749
1750
1751
1752
1753
1754
# File 'lib/bio/db/pdb/pdb.rb', line 1748

def helix(helixID = nil)
  if helixID then
    self.record('HELIX').find { |f| f.helixID == helixID }
  else
    self.record('HELIX')
  end
end