Chem::Chain
Inherits Chem::ResidueCollection / Chem::AtomCollection / Reference / Object
Constructors
Instance methods
<=>(rhs : self) : Int32
The comparison operator.
Returns -1, 0 or 1 depending on whether self precedes
rhs, equals to rhs or comes after rhs. The comparison is
done based on chain identifier.
chains = Structure.read("peptide.pdb").chains
chains[0] <=> chains[1] # => -1
chains[1] <=> chains[1] # => 0
chains[2] <=> chains[1] # => 1
clear
Sourcedelete(residue : Residue) : Residue | Nil
Sourcedig(number : Int32) : Residue
Sourcedig(number : Int32, *subindexes)
Sourcedig?(number : Int32) : Residue | Nil
Sourcedig?(number : Int32, *subindexes)
Sourceeach_atom
Sourceeach_atom
Sourceeach_residue
Sourceeach_residue
Sourceid
Sourcen_atoms
Sourcen_residues
Sourcepolymer?
Sourcerenumber_residues_by_connectivity
Renumber residues based on bond information. Residue ordering is computed based on the link bond if available.
reset_cache
Sourcespec(io : IO) : Nil
Writes the chain specification to the given IO.
Chain specification is a short string representation encoding chain information including the id.
spec
Returns the chain specification.
Chain specification is a short string representation encoding chain information including the id.
structure(*args, **options)
Sourcestructure(*args, **options, &)
Sourceto_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>
top
Source