Skip to content

Commit

Permalink
Remove geo_link variable if redundant
Browse files Browse the repository at this point in the history
  • Loading branch information
stitam committed Feb 8, 2024
1 parent 6a1ea8b commit d4cef7c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions R/ncbi_parse_biosample_xml.R
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@ ncbi_parse_biosample_xml_entry <- function(x, verbose = getOption("verbose")) {
message(paste0("No status for BioSample ", main_attrs$accession, "."))
}
}
if (all(c("geo", "geo_link") %in% names(out)) & nrow(out) == 1) {
if (grepl(out$geo, out$geo_link)) {
out <- dplyr::select(out, -geo_link)
}
}
if (nrow(out) > 1) {
if (verbose) {
message(paste0(
Expand Down

0 comments on commit d4cef7c

Please sign in to comment.