Method: Bio::PDB::Chain#addLigand
- Defined in:
- lib/bio/db/pdb/chain.rb
#addLigand(ligand) ⇒ Object
Add a heterogen (ligand) to this chain
100 101 102 103 104 105 106 107 108 109 |
# File 'lib/bio/db/pdb/chain.rb', line 100 def addLigand(ligand) raise "Expecting a Bio::PDB::Residue" unless ligand.is_a? Bio::PDB::Residue @heterogens.push(ligand) if @heterogens_hash[ligand.residue_id] then $stderr.puts "Warning: heterogen_id (residue_id) #{ligand.residue_id.inspect} is already used" if $VERBOSE else @heterogens_hash[ligand.residue_id] = ligand end self end |