parmed.topologyobjects.ResidueList¶
-
class
parmed.topologyobjects.
ResidueList
(*args)[source]¶ Array of Residue instances
Methods
add_atom
(atom, resname, resnum[, chain, …])Adds a new atom to the ResidueList, adding a new residue to this list if it has a different name or number as the last residue
claim
()This method causes this list to “claim” all of the items it contains and subsequently indexes all of its items.
clear
(/)Remove all items from list.
copy
(/)Return a shallow copy of the list.
count
(value, /)Return number of occurrences of value.
index
(value[, start, stop])Return first index of value.
index_members
()Assigns the idx variable for every member of this list to its place in the list, if the members of this list permit
prune
()This function goes through the residue list and removes all empty residues from the list.
prune_unused
()This method inspects the used attribute of all of its members, if it has one, and deletes any item in which it is set to False
reverse
(/)Reverse IN PLACE.
sort
(*[, key, reverse])Stable sort IN PLACE.
append
extend
insert
pop
remove
-
__init__
(*args)¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
(*args)Initialize self.
add_atom
(atom, resname, resnum[, chain, …])Adds a new atom to the ResidueList, adding a new residue to this list if it has a different name or number as the last residue
append
(*args, **kwargs)Append object to the end of the list.
claim
()This method causes this list to “claim” all of the items it contains and subsequently indexes all of its items.
clear
(/)Remove all items from list.
copy
(/)Return a shallow copy of the list.
count
(value, /)Return number of occurrences of value.
extend
(*args, **kwargs)Extend list by appending elements from the iterable.
index
(value[, start, stop])Return first index of value.
index_members
()Assigns the idx variable for every member of this list to its place in the list, if the members of this list permit
insert
(*args, **kwargs)Insert object before index.
pop
(*args, **kwargs)Remove and return item at index (default last).
prune
()This function goes through the residue list and removes all empty residues from the list.
prune_unused
()This method inspects the used attribute of all of its members, if it has one, and deletes any item in which it is set to False
remove
(*args, **kwargs)Remove first occurrence of value.
reverse
(/)Reverse IN PLACE.
sort
(*[, key, reverse])Stable sort IN PLACE.
-