Created
November 25, 2021 15:30
-
-
Save rajarshi/5b8d9244712e1733431bdc97826f230b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(rcdk) | |
f <- function(mol) { | |
tmp <- get.murcko.fragments(list(mol), min.frag.size=3)[[1]] | |
cat("\rProcessed molregno",get.property(mol, 'cdk:Title'), 'which had', | |
length(tmp$rings), 'rings and', length(tmp$frameworks), 'frameworks')git | |
return(tmp) | |
} | |
miter <- iload.molecules('/Users/guha/chembl28_10k.smi', type='smi') | |
frags <- foreach(mol=miter) %do% f(mol) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment