module Chem::Templates

Defined in:

chem/templates.cr
chem/templates/atom.cr

Class Method Summary

Class Method Detail

def self.alias(new_name : String, to existing_name : String) : Nil #

Registers an aliases to a known residue template into the global registry. Refer to the Registry documentation and Registry#alias for details.


[View source]
def self.load(filepath : Path | String) : Nil #

Loads and registers the residue template(s) from a structure file or YAML file into the global registry.

Refer to the Registry documentation and Registry#load for more information.


[View source]
def self.parse(filepath : String) : Nil #

Parses and registers the residue templates encoded in the given YAML content into the global registry. Refer to the Registry documentation and Registry#parse for details.


[View source]
def self.register(structure : Structure) : Nil #

Creates and registers a residue template from a structure into the global registry. Refer to the Registry documentation and Registry#register for details.


[View source]