RDKitConvertFileFormat.py - Convert between molecular file formats
RDKitConvertFileFormat.py [--infileParams <Name,Value,...>] [ --outfileParams <Name,Value,...> ] [--overwrite] [-w <dir>] -i <infile> -o <outfile>
RDKitConvertFileFormat.py -h | --help | -e | --examples
Convert between molecular file formats.
The supported input file formats are: Mol (.mol), SD (.sdf, .sd), SMILES (.smi, .txt, .csv, .tsv), MOL2 (.mol2), PDB (.pdb)
The supported output file formats are: SD (.sdf, .sd), SMILES (.smi), PDB (.pdb)
Print examples.
Print this help message.
Input file name.
A comma delimited list of parameter name and value pairs for reading molecules from files. The supported parameter names for different file formats, along with their default values, are shown below:
Possible values for smilesDelimiter: space, comma or tab.
Output file name.
A comma delimited list of parameter name and value pairs for writing molecules to files. The supported parameter names for different file formats, along with their default values, are shown below:
Default value for compute2DCoords: yes for SMILES input file; no for all other file types.
Overwrite existing files.
Location of working directory which defaults to the current directory.
To convert a SD file into a isomeric SMILES file, type:
To convert a SD file into a non isomeric SMILES file, type
To convert a SMILES file into a SD file along with calculation of 2D coordinates, type:
To convert a MDL MOL file into a PDB file, type:
To convert a CSV SMILES file with column headers, SMILES strings in column 1, and name in column 2 into a SD file containing 2D coordinates, type:
RDKitDrawMolecules.py, RDKitRemoveDuplicateMolecules.py, RDKitSearchFunctionalGroups.py, RDKitSearchSMARTS.py
Copyright (C) 2024 Manish Sud. All rights reserved.
The functionality available in this script is implemented using RDKit, an open source toolkit for cheminformatics developed by Greg Landrum.
This file is part of MayaChemTools.
MayaChemTools is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.