PageRenderTime 15ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/rcdk/man/frags.Rd

http://github.com/rajarshi/cdkr
Unknown | 49 lines | 48 code | 1 blank | 0 comment | 0 complexity | 5b36bcce3056e386bbe063d5b3edd853 MD5 | raw file
  1. \name{get.murcko.fragments}
  2. \alias{fragment}
  3. \alias{get.exhaustive.fragments}
  4. \alias{get.murcko.fragments}
  5. \title{
  6. Molecule Fragmentation Methods
  7. }
  8. \description{
  9. A variety of methods for fragmenting molecules are available ranging from
  10. exhaustive, rings to more specific methods such as Murcko frameworks. Fragmenting a
  11. collection of molecules can be a useful for a variety of analyses. In addition
  12. fragment based analysis can be a useful and faster alternative to traditional
  13. clustering of the whole collection, especially when it is large.
  14. Note that exhaustive fragmentation of large molecules (with many single bonds) can become
  15. time consuming.
  16. }
  17. \usage{
  18. get.murcko.fragments(mols, min.frag.size = 6, as.smiles = TRUE, single.framework = FALSE)
  19. get.exhaustive.fragments(mols, min.frag.size = 6, as.smiles = TRUE)
  20. }
  21. \arguments{
  22. \item{mols}{A molecule object or list of molecule objects. Each object should have a \code{jclass} of
  23. \code{IAtomContainer}}
  24. \item{min.frag.size}{The size of the smallest fragments to be considered}
  25. \item{as.smiles}{If \code{TRUE}, the fragments are returned as SMILES strings, otherwise as
  26. \code{IAtomContainer} objects}
  27. \item{single.framework}{If \code{TRUE}, then a single framework (i.e., the framework consisting of the
  28. union of all ring systems and linkers) is returned for each molecule. Otherwise, all combinations
  29. of ring systems and linkers are returned}
  30. }
  31. \examples{
  32. mol <- parse.smiles('c1ccc(cc1)CN(c2cc(ccc2[N+](=O)[O-])c3c(nc(nc3CC)N)N)C')[[1]]
  33. mf1 <- get.murcko.fragments(mol, as.smiles=TRUE, single.framework=TRUE)
  34. mf1 <- get.murcko.fragments(mol, as.smiles=TRUE, single.framework=FALSE)
  35. }
  36. \value{
  37. \code{get.murcko.fragments} returns a list with each element being a list with two elements: \code{rings} and
  38. \code{frameworks}. Each of these elements is either a character vector of SMILES strings or a list of
  39. \code{IAtomContainer} objects.
  40. \code{get.exhaustive.fragments} returns a list of length equal to the number of input molecules. Each
  41. element is a character vector of SMILES strings or a list of \code{IAtomContainer} objects.
  42. }
  43. \keyword{programming}
  44. \seealso{
  45. \code{\link{load.molecules}},
  46. \code{\link{parse.smiles}},
  47. }
  48. \author{Rajarshi Guha (\email{rajarshi.guha@gmail.com})}