Skip to content

Commit 75d0daa

Browse files
committed
v0.9.8
1 parent 1c70cb8 commit 75d0daa

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: GISAIDR
22
Type: Package
33
Title: R wrapper for GISAID "API"
4-
Version: 0.9.7
4+
Version: 0.9.8
55
Author: Wytamma Wirth
66
Maintainer: Wytamma Wirth <wytamma.wirth@me.com>
77
Description: programmatically interact with the GISAID database query.

R/query.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#' @param collection_date_complete include only entries with complete in collection date the results.
2323
#' @param total returns the total number of sequences matching the query.
2424
#' @param fast returns all of the accession_ids that match the query.
25-
#' @param aa_substitution_ceid returns all sequences with the selected amino acid mutation
25+
#' @param aa_substitution_ceid returns all sequences with the selected amino acid mutation
2626
#' @param nucl_mutation_ceid returns all sequences with the selected nucleotide mutation
2727
#' @return data.frame
2828
query <-
@@ -78,6 +78,8 @@ query <-
7878
nucl_mutation = nucl_mutation
7979
))
8080
}
81+
results <- results[!duplicated(results$accession_id), ] # Remove duplicate entries
82+
rownames(results) <- NULL # reset index
8183
return(results)
8284
} else if (total | load_all | fast) {
8385
return(

0 commit comments

Comments
 (0)