Skip to content

Commit

Permalink
v0.9.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Wytamma committed May 11, 2023
1 parent 1c70cb8 commit 75d0daa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: GISAIDR
Type: Package
Title: R wrapper for GISAID "API"
Version: 0.9.7
Version: 0.9.8
Author: Wytamma Wirth
Maintainer: Wytamma Wirth <[email protected]>
Description: programmatically interact with the GISAID database query.
Expand Down
4 changes: 3 additions & 1 deletion R/query.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#' @param collection_date_complete include only entries with complete in collection date the results.
#' @param total returns the total number of sequences matching the query.
#' @param fast returns all of the accession_ids that match the query.
#' @param aa_substitution_ceid returns all sequences with the selected amino acid mutation
#' @param aa_substitution_ceid returns all sequences with the selected amino acid mutation
#' @param nucl_mutation_ceid returns all sequences with the selected nucleotide mutation
#' @return data.frame
query <-
Expand Down Expand Up @@ -78,6 +78,8 @@ query <-
nucl_mutation = nucl_mutation
))
}
results <- results[!duplicated(results$accession_id), ] # Remove duplicate entries
rownames(results) <- NULL # reset index
return(results)
} else if (total | load_all | fast) {
return(
Expand Down

0 comments on commit 75d0daa

Please sign in to comment.