pysoftk.format_printers package
Submodules
pysoftk.format_printers.format_mol module
- class pysoftk.format_printers.format_mol.Cnv(file_mol)[source]
Bases:
object
Class for converting files from X to Y format.
- Returns:
file – A file with the provided molecule in a chosen format.
- Return type:
str
- class pysoftk.format_printers.format_mol.Fmt(mol)[source]
Bases:
object
Class printing RDkit Mol Object in different formats
- Returns:
file – A file with the provided molecule in a chosen format.
- Return type:
str
- format_print(output_name)[source]
Function to print a pysoftk.object into an user provided output_format.
- Parameters:
fmt (class.str) – An user-provided valid format in which the pysoftk.object can be printed. Default is MOL2 format.
output_name (class.str) – A provided name for a file. Default is molecule.mol2
- mol_print(output_name)[source]
Function to print in MOL format
- Parameters:
output_name (str) – A provided name for a file.
- Raises:
ValueError: – If not an RDKit Mol Object raises TypeError as invalid molecule.