Class: Bio::PDB::ChemicalComponent::Record

Inherits:
Record show all
Defined in:
lib/bio/db/pdb/chemicalcomponent.rb

Overview

Single field (normally single line) of a entry

Constant Summary collapse

RESIDUE =

RESIDUE field. It would be wrong because the definition described in documents seems ambiguous.

def_rec([ 11, 13, Pdb_LString[3], :hetID ],
[ 16, 20, Pdb_Integer,    :numHetAtoms ]
)
CONECT =

CONECT field It would be wrong because the definition described in documents seems ambiguous.

def_rec([ 12, 15, Pdb_Atom,         :name ],
[ 19, 20, Pdb_Integer,      :num ],
[ 21, 24, Pdb_Atom,         :other_atoms ],
[ 26, 29, Pdb_Atom,         :other_atoms ],
[ 31, 34, Pdb_Atom,         :other_atoms ],
[ 36, 39, Pdb_Atom,         :other_atoms ],
[ 41, 44, Pdb_Atom,         :other_atoms ],
[ 46, 49, Pdb_Atom,         :other_atoms ],
[ 51, 54, Pdb_Atom,         :other_atoms ],
[ 56, 59, Pdb_Atom,         :other_atoms ],
[ 61, 64, Pdb_Atom,         :other_atoms ],
[ 66, 69, Pdb_Atom,         :other_atoms ],
[ 71, 74, Pdb_Atom,         :other_atoms ],
[ 76, 79, Pdb_Atom,         :other_atoms ]
)
HET =

HET field. It is the same as Bio::PDB::Record::HET.

Bio::PDB::Record::HET
HETSYN =

HETSYN field. It is very similar to Bio::PDB::Record::HETSYN.

def_rec([  9, 10, Pdb_Continuation, nil ],
[ 12, 14, Pdb_LString(3),   :hetID ],
[ 16, 70, Pdb_String,       :hetSynonyms ]
)
HETNAM =

HETNAM field. It is the same as Bio::PDB::Record::HETNAM.

Bio::PDB::Record::HETNAM
FORMUL =

FORMUL field. It is the same as Bio::PDB::Record::FORMUL.

Bio::PDB::Record::FORMUL
Default =

default definition for unknown fields.

Bio::PDB::Record::Default
Definition =

Hash to store allowed definitions.

create_definition_hash
End =

END record class.

Because END is a reserved word of Ruby, it is separately added to the hash

Bio::PDB::Record::End

Constants inherited from Record

Record::AUTHOR, Record::CAVEAT, Record::CISPEP, Record::COMPND, Record::CRYST1, Record::DBREF, Record::ENDMDL, Record::EXPDTA, Record::HEADER, Record::HELIX, Record::HYDBND, Record::JRNL, Record::KEYWDS, Record::LINK, Record::MASTER, Record::MODEL, Record::MODRES, Record::MTRIX1, Record::MTRIX2, Record::MTRIX3, Record::OBSLTE, Record::ORIGX1, Record::ORIGX2, Record::ORIGX3, Record::REMARK, Record::REVDAT, Record::RemarkN, Record::SCALE1, Record::SCALE2, Record::SCALE3, Record::SEQADV, Record::SEQRES, Record::SHEET, Record::SIGATM, Record::SIGUIJ, Record::SITE, Record::SLTBRG, Record::SOURCE, Record::SPRSDE, Record::SSBOND, Record::TER, Record::TITLE, Record::TURN, Record::TVECT

Constants included from DataType

DataType::Pdb_AChar, DataType::Pdb_Atom, DataType::Pdb_Character, DataType::Pdb_Continuation, DataType::Pdb_Date, DataType::Pdb_IDcode, DataType::Pdb_Residue_name, DataType::Pdb_SymOP

Class Method Summary collapse

Methods inherited from Record

#add_continuation, #continue?, continue?, create_definition_hash, def_rec, #do_parse, #each_symbol, #initialize_from_string, #inspect, new_direct, new_inherit, #original_data, #record_name, symbols

Methods included from DataType::ConstLikeMethod

#Pdb_LString, #Pdb_Real, #Pdb_String

Class Method Details

.get_record_class(str) ⇒ Object

Look up the class in Definition hash



116
117
118
119
# File 'lib/bio/db/pdb/chemicalcomponent.rb', line 116

def self.get_record_class(str)
  t = fetch_record_name(str)
  return Definition[t]
end