Skip to content
Snippets Groups Projects
Commit 133fa32b authored by Todor Kondic's avatar Todor Kondic
Browse files

Check for duplicates and remove the fatal error for missing SMILES

parent 14700fe8
No related branches found
No related tags found
No related merge requests found
......@@ -555,7 +555,11 @@ vald_comp_tab<-function(df,ndf,checkSMILES=F,checkMz=F,checkNames=F) {
for (i in ind) {
warning("SMILES missing at row: ",i, "; ID: ",df$ID[[i]]," .")
}
stop("Missing SMILES found.")
}
lsmiles<-nrow(df)
ll<-length(unique(df$SMILES))
if (ll<lsmiles) {
warning("There are duplicate SMILES in the compound list. Trouble ahead.")
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment