From 804e3a73b76b5fc547698aecab2c47228f90ad50 Mon Sep 17 00:00:00 2001 From: hyginn Date: Tue, 13 Oct 2020 20:33:04 +1000 Subject: [PATCH] bugfix: import all taxonomy IDs as integer --- scripts/ABC-dbUtilities.R | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/ABC-dbUtilities.R b/scripts/ABC-dbUtilities.R index 89c4784..c74c849 100644 --- a/scripts/ABC-dbUtilities.R +++ b/scripts/ABC-dbUtilities.R @@ -31,7 +31,7 @@ #TOC> ========================================================================== -#TOC> +#TOC> #TOC> Section Title Line #TOC> ------------------------------------------------------- #TOC> 1 INITIALISATIONS AND PARAMETERS 61 @@ -54,7 +54,7 @@ #TOC> 3.15 dbSeq2JSON() 608 #TOC> 3.16 dbRow2JSON() 637 #TOC> 4 TESTS 657 -#TOC> +#TOC> #TOC> ========================================================================== @@ -212,7 +212,7 @@ dbAddProtein <- function(db, jsonDF) { name = jsonDF$name[i], RefSeqID = jsonDF$RefSeqID[i], UniProtID = jsonDF$UniProtID[i], - taxonomyID = jsonDF$taxonomyID[i], + taxonomyID = as.integer(jsonDF$taxonomyID[i]), sequence = dbSanitizeSequence(jsonDF$sequence[i])) db$protein <- rbind(db$protein, x) }