-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Additional tests on distance matrix (#56)
* 🐛fix the taxodistance function (last taxa self-distance was 0) * ✅ taxonomicdistance * ⚡ taxonomicdistance benchmark * ✅ authority * 🩹 v0.4.1
- Loading branch information
Showing
5 changed files
with
53 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name = "NCBITaxonomy" | ||
uuid = "f88b31d2-eb98-4433-b52d-2dd32bc6efce" | ||
authors = ["Timothée Poisot <[email protected]>"] | ||
version = "0.4.0" | ||
version = "0.4.1" | ||
|
||
[deps] | ||
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
module TestSynonymsIssues | ||
|
||
using Test | ||
using NCBITaxonomy | ||
using Test | ||
using NCBITaxonomy | ||
|
||
@test_throws NameHasMultipleMatches taxon("gorilla"; casesensitive=false) | ||
@test isa(taxon("gorilla"; casesensitive=false, preferscientific=true), NCBITaxon) | ||
@test_throws NameHasMultipleMatches taxon("gorilla"; casesensitive = false) | ||
@test isa(taxon("gorilla"; casesensitive = false, preferscientific = true), NCBITaxon) | ||
|
||
@test authority(ncbi"Lamellodiscus kechemirae") == | ||
"Lamellodiscus kechemirae Amine & Euzet, 2005" | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
module TestTaxoDistance | ||
using NCBITaxonomy | ||
using Test | ||
|
||
tax = [ | ||
ncbi"Lamellodiscus", | ||
ncbi"Dactylogyrus", | ||
ncbi"Paradiplozoon", | ||
ncbi"Diplectanum", | ||
ncbi"Echinoplectanum", | ||
] | ||
|
||
TD = taxonomicdistance(tax) | ||
|
||
ETD = Float64[1 3 4 2 2; 3 1 4 3 3; 4 4 1 4 4; 2 3 4 1 2; 2 3 4 2 1] | ||
|
||
@test TD == ETD | ||
|
||
end |
f5a999a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
f5a999a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/78938
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: