struct
Chem::AtomView
- Chem::AtomView
- Struct
- Value
- Object
Overview
Gather, check and annotate types registering a format
Included Modules
- Array::Wrapper(Chem::Atom)
Defined in:
chem/core/atom_view.crchem/register_format.cr
Instance Method Summary
- #bonds : Array(Bond)
- #chains : ChainView
- #each_fragment(& : self -> ) : Nil
- #fragments : Array(self)
- #pos : Spatial::Positions3Proxy
-
#pos=(pos : Enumerable(Spatial::Vec3)) : Enumerable(Spatial::Vec3)
Sets the atom coordinates.
- #residues : ResidueView
- #to_gen(io : IO, fractional : Bool = false) : Nil
- #to_gen(fractional : Bool = false) : String
- #to_gen(path : Path | String, fractional : Bool = false) : Nil
- #to_mol(io : IO, variant : Mol::Variant = :v2000) : Nil
- #to_mol(variant : Mol::Variant = :v2000) : String
- #to_mol(path : Path | String, variant : Mol::Variant = :v2000) : Nil
- #to_mol2(io : IO) : Nil
- #to_mol2(path : Path | String) : Nil
- #to_mol2 : String
- #to_pdb(io : IO, conect conect_options : PDB::ConectOptions = PDB::ConectOptions.flags(Het, Disulfide), renumber : Bool = true, ter_on_fragment : Bool = false, include_header : Bool = true, include_end : Bool = true) : Nil
- #to_pdb(conect conect_options : PDB::ConectOptions = PDB::ConectOptions.flags(Het, Disulfide), renumber : Bool = true, ter_on_fragment : Bool = false, include_header : Bool = true, include_end : Bool = true) : String
- #to_pdb(path : Path | String, conect conect_options : PDB::ConectOptions = PDB::ConectOptions.flags(Het, Disulfide), renumber : Bool = true, ter_on_fragment : Bool = false, include_header : Bool = true, include_end : Bool = true) : Nil
- #to_xyz(io : IO, extended : Bool = false, fields : Array(String) = [] of String) : Nil
- #to_xyz(extended : Bool = false, fields : Array(String) = [] of String) : String
- #to_xyz(path : Path | String, extended : Bool = false, fields : Array(String) = [] of String) : Nil
- #write(output : IO | Path | String, format : Chem::Gen.class) : Nil
- #write(output : IO | Path | String, format : Chem::Mol.class) : Nil
- #write(output : IO | Path | String, format : Chem::Mol2.class) : Nil
- #write(output : IO | Path | String, format : Chem::PDB.class) : Nil
- #write(output : IO | Path | String, format : Chem::XYZ.class) : Nil
-
#write(output : IO | Path | String, format) : Nil
FIXME Make it compile time error.
- #write(path : IO | Path | String) : Nil
Instance methods inherited from module Indexable(Chem::Atom)
[](idxs : Tuple) : Tuple[](idxs : Enumerable(Int)) : Array(T)
[](*idxs : Int) : Tuple [], sentence(io : IO, separator : String = ", ", *, pair_separator : String = " and ", tail_separator : String = ", and ", & : T, IO -> ) : Nil
sentence(io : IO, separator : String = ", ", *, pair_separator : String = " and ", tail_separator : String = ", and ") : Nil
sentence(separator : String = ", ", *, pair_separator : String = " and ", tail_separator : String = ", and ", & : T -> ) : String
sentence(separator : String = ", ", *, pair_separator : String = " and ", tail_separator : String = ", and ") : String sentence, to_dcd(io : IO, title : String | Nil = nil) : Nil
to_dcd(title : String | Nil = nil) : String
to_dcd(path : Path | String, title : String | Nil = nil) : Nil to_dcd
Instance methods inherited from module Enumerable(Chem::Atom)
===(atom : Chem::Atom) : Bool===(chain : Chem::Chain) : Bool
===(residue : Chem::Residue) : Bool ===, average(weights : Indexable(Number))
average(weights : Indexable(Number), & : T -> _) average, find(pattern, if_none default = nil) find, find!(pattern) find!, mean
mean(& : T -> _) mean, to_dcd(io : IO, title : String | Nil = nil) : Nil
to_dcd(title : String | Nil = nil) : String
to_dcd(path : Path | String, title : String | Nil = nil) : Nil to_dcd, to_mol2(io : IO) : Nil
to_mol2(path : Path | String) : Nil
to_mol2 : String to_mol2, to_pdb(io : IO, conect conect_options : PDB::ConectOptions = PDB::ConectOptions.flags(Het, Disulfide), renumber : Bool = true, ter_on_fragment : Bool = false) : Nil
to_pdb(conect conect_options : PDB::ConectOptions = PDB::ConectOptions.flags(Het, Disulfide), renumber : Bool = true, ter_on_fragment : Bool = false) : String
to_pdb(path : Path | String, conect conect_options : PDB::ConectOptions = PDB::ConectOptions.flags(Het, Disulfide), renumber : Bool = true, ter_on_fragment : Bool = false) : Nil to_pdb, to_sdf(io : IO, variant : Mol::Variant = :v2000) : Nil
to_sdf(path : Path | String, variant : Mol::Variant = :v2000) : Nil
to_sdf(variant : Mol::Variant = :v2000) : String to_sdf, to_xyz(io : IO, extended : Bool = false, fields : Array(String) = [] of String) : Nil
to_xyz(extended : Bool = false, fields : Array(String) = [] of String) : String
to_xyz(path : Path | String, extended : Bool = false, fields : Array(String) = [] of String) : Nil to_xyz
Instance Method Detail
Sets the atom coordinates.
def to_pdb(io : IO, conect conect_options : PDB::ConectOptions = PDB::ConectOptions.flags(Het, Disulfide), renumber : Bool = true, ter_on_fragment : Bool = false, include_header : Bool = true, include_end : Bool = true) : Nil
#
def to_pdb(conect conect_options : PDB::ConectOptions = PDB::ConectOptions.flags(Het, Disulfide), renumber : Bool = true, ter_on_fragment : Bool = false, include_header : Bool = true, include_end : Bool = true) : String
#
def to_pdb(path : Path | String, conect conect_options : PDB::ConectOptions = PDB::ConectOptions.flags(Het, Disulfide), renumber : Bool = true, ter_on_fragment : Bool = false, include_header : Bool = true, include_end : Bool = true) : Nil
#
def to_xyz(path : Path | String, extended : Bool = false, fields : Array(String) = [] of String) : Nil
#
FIXME Make it compile time error. Should raise if format is not registered or format is incompatible with open_type. Better create an override with the other formats, and leave this as a fallback.