lib/PDB/residue.rb
# determines if the number of non-hydrogen atoms matches required number for residue
determines if the number of non-hydrogen atoms matches required number for residue
determines if the number of non - hydrogen atoms matches required number for residue
def isValid
      nonHydrogenAtoms = self.atoms.select{|atom| atom.atom != "H"}
      if (nonHydrogenAtoms.size == AMINO_ACID_SIZES[self.resname])
        @isvalid = true
      end
      puts "ISVALID : #{self.isvalid} #{nonHydrogenAtoms.size} "
    end
def isValid nonHydrogenAtoms = self . atoms . select { | atom | atom . atom != "H" } if ( nonHydrogenAtoms . size == AMINO_ACID_SIZES [ self . resname ] ) @isvalid = true end puts "ISVALID : #{self.isvalid} #{nonHydrogenAtoms.size} " end
determines if the number of non-hydrogen atoms matches required number for residue
determines if the number of non - hydrogen atoms matches required number for residue
# check that the amino acid is complete