load.molecules(molfiles=NA, aromaticity = TRUE, typing = TRUE, isotopes = TRUE, verbose=FALSE)
iload.molecules(molfile, type="smi", aromaticity = TRUE, typing = TRUE, isotopes = TRUE)character vector of filenames. Note that the full
path to the files should be provided. URL's can also be used as
paths. In such a case, the URL should start with "http://"TRUE then aromaticity detection is
performed on all loaded molecules. If this fails for a given
molecule, then the molecule is set to NA in the return listTRUE then atom typing is
performed on all loaded molecules. The assigned types will be CDK
internal types. If this fails for a given
molecule, then the molecule is set to NA in the return listTRUE then atoms are configured with isotopic massesload.molecules returns a list of CDK Molecule objects, which can be
used in other rcdk functions. iload.molecules is an iterating version of the loader and is applicable for
large SMILES or SDF files. In contrast to load.molecules this does not load
all the molecules into memory at one go, and as a result lets you process arbitrarily
large structure files.
TRUE by default for this function) and then call
convert.implicit.to.explicit. On the other hand for a format
such as SMILES, implicit or explicit hydrogens will be present.view.molecule.2d, convert.implicit.to.explicitmoliter <- iload.molecules("big.sdf", type="sdf")
while(hasNext(moliter)) {
mol <- nextElem(moliter)
print(get.property(mol, "cdk:Title"))
}Run the code above in your browser using DataLab