Skip to content

Commit 3461807

Browse files
Filter genome drug resistant phenotype in data processing
1 parent e85f88f commit 3461807

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

R/data_processing.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,6 +1367,7 @@ cleanMetaData <- function(duckdb_path, path, ref_file_path = "data_raw/") {
13671367
dplyr::left_join(drug_class, by = c("cleaned_drug" = "drug")) |>
13681368
dplyr::left_join(drug_abbr, by = c("cleaned_drug" = "drug")) |>
13691369
dplyr::left_join(class_abbr, by = "drug_class") |>
1370+
dplyr::filter(genome_drug.resistant_phenotype %in% c("Resistant","Susceptible"))|>
13701371
DBI::dbWriteTable(conn = con, name = "filtered_metadata", overwrite = TRUE)
13711372

13721373
resistance_summary <- dplyr::tbl(con, "filtered_metadata") |>

0 commit comments

Comments
 (0)