RDKit
Open-source cheminformatics and machine learning.
|
#include <MolSupplier.v1API.h>
Public Types | |
using | ContainedType = v2::FileParsers::SDMolSupplier |
Public Types inherited from RDKit::v1::ForwardSDMolSupplier | |
using | ContainedType = v2::FileParsers::ForwardSDMolSupplier |
Public Member Functions | |
SDMolSupplier () | |
SDMolSupplier (const std::string &fileName, bool sanitize=true, bool removeHs=true, bool strictParsing=true) | |
SDMolSupplier (std::istream *inStream, bool takeOwnership=true, bool sanitize=true, bool removeHs=true, bool strictParsing=true) | |
void | moveTo (unsigned int idx) |
ROMol * | operator[] (unsigned int idx) |
std::string | getItemText (unsigned int idx) |
returns the text block for a particular item | |
unsigned int | length () |
void | setData (const std::string &text, bool sanitize=true, bool removeHs=true) |
void | setData (const std::string &text, bool sanitize, bool removeHs, bool strictParsing) |
void | setStreamIndices (const std::vector< std::streampos > &locs) |
Public Member Functions inherited from RDKit::v1::ForwardSDMolSupplier | |
ForwardSDMolSupplier () | |
ForwardSDMolSupplier (std::istream *inStream, bool takeOwnership=true, bool sanitize=true, bool removeHs=true, bool strictParsing=false) | |
~ForwardSDMolSupplier () override | |
void | setProcessPropertyLists (bool val) |
bool | getProcessPropertyLists () const |
bool | getEOFHitOnRead () const |
Public Member Functions inherited from RDKit::v1::MolSupplier | |
MolSupplier () | |
virtual | ~MolSupplier () |
void | init () |
void | reset () |
bool | atEnd () |
ROMol * | next () |
virtual void | close () |
Additional Inherited Members | |
Protected Attributes inherited from RDKit::v1::MolSupplier | |
std::unique_ptr< v2::FileParsers::MolSupplier > | dp_supplier |
Definition at line 128 of file MolSupplier.v1API.h.
Definition at line 142 of file MolSupplier.v1API.h.
|
inline |
Definition at line 143 of file MolSupplier.v1API.h.
|
inlineexplicit |
fileName | - the name of the SD file |
sanitize | - if true sanitize the molecule before returning it |
removeHs | - if true remove Hs from the molecule before returning it (triggers sanitization) |
strictParsing | - if set to false, the parser is more lax about correctness of the contents. |
Definition at line 154 of file MolSupplier.v1API.h.
References RDKit::v2::FileParsers::MolFileParserParams::removeHs, RDKit::v2::FileParsers::MolFileParserParams::sanitize, and RDKit::v2::FileParsers::MolFileParserParams::strictParsing.
|
inlineexplicit |
Definition at line 163 of file MolSupplier.v1API.h.
References RDKit::v2::FileParsers::MolFileParserParams::removeHs, RDKit::v2::FileParsers::MolFileParserParams::sanitize, and RDKit::v2::FileParsers::MolFileParserParams::strictParsing.
returns the text block for a particular item
idx | - which item to return |
Definition at line 188 of file MolSupplier.v1API.h.
References PRECONDITION.
Definition at line 192 of file MolSupplier.v1API.h.
References PRECONDITION.
Definition at line 174 of file MolSupplier.v1API.h.
References PRECONDITION.
Definition at line 178 of file MolSupplier.v1API.h.
References PRECONDITION.
|
inline |
Definition at line 204 of file MolSupplier.v1API.h.
References RDKit::v2::FileParsers::MolFileParserParams::removeHs, RDKit::v2::FileParsers::MolFileParserParams::sanitize, and RDKit::v2::FileParsers::MolFileParserParams::strictParsing.
|
inline |
Definition at line 196 of file MolSupplier.v1API.h.
References PRECONDITION, RDKit::v2::FileParsers::MolFileParserParams::removeHs, and RDKit::v2::FileParsers::MolFileParserParams::sanitize.
|
inline |
Resets our internal state and sets the indices of molecules in the stream. The client should be very careful about calling this method, as it's trivial to end up with a completely useless supplier.
locs | - the vector of stream positions. |
Note that this can be used not only to make reading selected molecules from a large SD file much faster, but it can also allow subsetting an SD file or rearranging the order of the molecules.
Definition at line 224 of file MolSupplier.v1API.h.
References PRECONDITION.