Skip to content

Commit 4bec193

Browse files
Update GL-DPPD-7110-A_build-genome-annots-tab.R
readd line
1 parent 8bbf66d commit 4bec193

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

GeneLab_Reference_Annotations/Workflow_Documentation/GL_RefAnnotTable-A/workflow_code/GL-DPPD-7110-A_build-genome-annots-tab.R

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,14 @@ install_and_load_org_db <- function(target_organism, target_org_db, ref_tab_path
188188
library(target_org_db, character.only = TRUE)
189189
}
190190

191+
# Define list of supported organisms which do not use annotations from an org.db
192+
no_org_db <- c("Lactobacillus acidophilus", "Mycobacterium marinum", "Oryza sativa", "Pseudomonas aeruginosa",
193+
"Serratia liquefaciens", "Staphylococcus aureus", "Streptococcus mutans", "Vibrio fischeri")
194+
195+
# Run the function unless the target_organism is in no_org_db
196+
if (!(target_organism %in% no_org_db) && (target_organism %in% currently_accepted_orgs)) {
197+
install_and_load_org_db(target_organism, target_org_db, ref_tab_path)
198+
}
191199

192200
############################################
193201
######## Build annotation table ############

0 commit comments

Comments
 (0)