aboutsummaryrefslogtreecommitdiff
path: root/R/chent.R
diff options
context:
space:
mode:
Diffstat (limited to 'R/chent.R')
-rw-r--r--R/chent.R15
1 files changed, 15 insertions, 0 deletions
diff --git a/R/chent.R b/R/chent.R
index 60c42c4..6f77582 100644
--- a/R/chent.R
+++ b/R/chent.R
@@ -138,6 +138,21 @@ chent <- R6Class("chent",
if (chyaml) {
self$get_chyaml()
}
+
+ # Define main identifiers as NA if still not available
+ if (is.null(self$smiles)) {
+ self$smiles <- NA
+ attr(self$smiles, "source") <- "user"
+ }
+ if (is.null(self$inchikey)) {
+ self$inchikey<- NA
+ attr(self$inchikey, "source") <- "user"
+ }
+ if (is.null(self$mw)) {
+ self$mw<- NA
+ attr(self$mw, "source") <- "user"
+ }
+
invisible(self)
},

Contact - Imprint