-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Genetic #42
base: dev
Are you sure you want to change the base?
Genetic #42
Conversation
Looks like one of the tests in test_API.jl is failing on the CI, yet it works fine on my machine. I don't think any of my code could have affected this test, though I could be wrong? |
You're right there's no equivalent functionality at the moment. We should think that, but there's nothing it was useful for as we didn't have anything with distances before. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## dev #42 +/- ##
==========================================
- Coverage 98.43% 94.14% -4.29%
==========================================
Files 16 17 +1
Lines 701 734 +33
==========================================
+ Hits 690 691 +1
- Misses 11 43 +32 ☔ View full report in Codecov by Sentry. |
Pull Request Test Coverage Report for Build 1136154925Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
src/Genetics.jl
Outdated
struct GeneticType{PopData} <: AbstractGeneticTypes{PopData} | ||
dat::PopData |
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.
So, as a for instance, I would make this some arbitrary "Data
" type, which is defined when you construct the object (note Data
must not already exist!):
struct GeneticType{PopData} <: AbstractGeneticTypes{PopData} | |
dat::PopData | |
struct GeneticType{Data} <: AbstractGeneticTypes{Data} | |
dat::Data |
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.
Alrighty, got both constructors working. Wondering though if AbstractGenetic
is necessary? Since the two genetic types could just as easily be subtypes of Diversity.API.AbstractTypes
, unless you want genetic types to be treated differently?
Added function
geneDistance()
, which calculates genetic distance from genotype / sequence data.Note that:
dist2sim()
function so I have transformed the matrix manually in the tests (not pushed)