PR to bring HLAfreq 0.0.5#1
Open
DAWells wants to merge 205 commits into
Open
Conversation
This prevents errors when data is unusually formatted, eg sample sizes with commas 1,000
Note that if AF doesn't sum to 1 this gives coverage outside 0-1
adding missing alleles
combineAF now uses the scipy dirichlet distribution means as the combined allele frequency. To do this it calculates c for each row as reported allele freq multiplied by the supplied weights argument, which defaults to 2n (which is also created as sample_size *2). The default prior is [1]*k. This function requires a single loci so this is asserted. The demo files have been updated accordingly. Mostly filtering to single loci, and removing unmeasured_alleles calls because these are handled by combineAF().
This fix is part of the changes made to calculate dirichlet means. Also check that each allele is unique in a dataset when combining. Fixed a bug in unmeasured_alleles.
This doesn't change anything as it sorts by default
Also allows plotting sample estimates onto distribution
Commited code but will imediately delete. Test demo to identify outlier populations based on pdf. However is unsuccessful because the AF pdf peaks are so sharp that effectively all real world populations have pdf zero.
Relsease 0.0.5
Update tests for python 3.13 and 3.14 and update install to conda's :: channel specification
thanks to @usethedata for diving in to this openjournals/joss-reviews#10122 (comment)
Address [reviewers comments](openjournals/joss-reviews#10122) Merge pull request #17 from BarinthusBio/dev - add asserts to test_correct_c_array and test_correct_c_array_alleles - check data type using is_string_dtype to handle pandas 3 update - use https for url links - avoid depreciation warning by setting include_groups for .apply on grouped data
Fill missing values in pivot with zero to match make_c_array where zeros are important.
Fix `test_correct_c_array` test
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v4...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [actions/deploy-pages](https://github.com/actions/deploy-pages) from 4 to 5. - [Release notes](https://github.com/actions/deploy-pages/releases) - [Commits](actions/deploy-pages@v4...v5) --- updated-dependencies: - dependency-name: actions/deploy-pages dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [actions/upload-pages-artifact](https://github.com/actions/upload-pages-artifact) from 3 to 4. - [Release notes](https://github.com/actions/upload-pages-artifact/releases) - [Commits](actions/upload-pages-artifact@v3...v4) --- updated-dependencies: - dependency-name: actions/upload-pages-artifact dependency-version: '4' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
…tions/checkout-6 Bump actions/checkout from 4 to 6
…tions/upload-pages-artifact-4 Bump actions/upload-pages-artifact from 3 to 4
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 3 to 6. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](actions/setup-python@v3...v6) --- updated-dependencies: - dependency-name: actions/setup-python dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
…tions/deploy-pages-5 Bump actions/deploy-pages from 4 to 5
…tions/setup-python-6 Bump actions/setup-python from 3 to 6
Bumps [actions/upload-pages-artifact](https://github.com/actions/upload-pages-artifact) from 4 to 5. - [Release notes](https://github.com/actions/upload-pages-artifact/releases) - [Commits](actions/upload-pages-artifact@v4...v5) --- updated-dependencies: - dependency-name: actions/upload-pages-artifact dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
…tions/upload-pages-artifact-5 Bump actions/upload-pages-artifact from 4 to 5
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.