Skip to content
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

Complete greedyMix features #24

Open
2 of 4 tasks
wleoncio opened this issue Jul 19, 2022 · 2 comments
Open
2 of 4 tasks

Complete greedyMix features #24

wleoncio opened this issue Jul 19, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@wleoncio
Copy link
Member

wleoncio commented Jul 19, 2022

The function currently loads the raw data, but doesn't process it. Check the code in greedyPopMix() and the original MATLAB code to see what else needs to be done (e.g. call handleData()).

To close the issue, make sure greedyMix() works for the following formats:

  • BAPS (test case)
  •  VCF
  •  BAM
  •  GenePop
@wleoncio wleoncio added the enhancement New feature or request label Jul 19, 2022
@wleoncio wleoncio self-assigned this Jul 19, 2022
wleoncio added a commit that referenced this issue Apr 8, 2024
wleoncio added a commit that referenced this issue Apr 8, 2024
wleoncio added a commit that referenced this issue Apr 8, 2024
This is a desirable feature, but was not implemented in the original BAPS, so better leave it out until the original planned features is working.
wleoncio added a commit that referenced this issue Apr 8, 2024
wleoncio added a commit that referenced this issue Apr 8, 2024
wleoncio added a commit that referenced this issue Apr 8, 2024
* baps-format:
  Increment version number to 0.0.0.9025
  Skips `greedyMix()` example until #24 is fixed
  Updated documentation (#24)
  Fails for FAST input to `greedyMix()` (#24)
  Fixed calculation og `ninds` (#24)
  Bugfixes to `indMix()` and subfunctions (#24)
  Improved handling of BAPS format (#24)
  Fixed calculation of `ninds` `ekat` (#24)
  Added processing of BAPS format
@wleoncio
Copy link
Member Author

Implemented rest of algo, which got us back to the issue of an endless loop. Investigating indMix(), closely comparing its output with the one on the original BAPS...

wleoncio added a commit that referenced this issue Apr 11, 2024
wleoncio added a commit that referenced this issue Apr 11, 2024
wleoncio added a commit that referenced this issue Apr 11, 2024
wleoncio added a commit that referenced this issue Apr 11, 2024
wleoncio added a commit that referenced this issue Apr 11, 2024
* issue-24:
  Increment version number to 0.0.0.9026
  Added (commented) test for BAPS data (#24)
  Renamed global environment, fixed assignments (#24)
  Fixes to `laskeMuutokset()` (#24)
  Syntax fix to `indMix()` (#24)
  Retranslated `computeDiffInCounts()` (#24)
  Changed default `npops` to 3 (#24)
  `laskeMuutokset()` reads `npop` from parent functions (#24)
  Using a dedicated environment for globals (#24)
  Retranslated `computePopulationLogml()` (#24)
  Added/renamed BAPS example data (#24)
wleoncio added a commit that referenced this issue Jul 2, 2024
wleoncio added a commit that referenced this issue Jul 2, 2024
wleoncio added a commit that referenced this issue Jul 2, 2024
wleoncio added a commit that referenced this issue Jul 2, 2024
* issue-24:
  Increment version number to 0.0.0.9028
  Updated docs
  Added unit tests (#24)
  Fixed `greedyMix()` for BAPS files (#24) 🍾
  Fixed `indMix()` and subfunctions (#24)
  Fixed tests (#24)
wleoncio added a commit that referenced this issue Aug 26, 2024
wleoncio added a commit that referenced this issue Aug 26, 2024
wleoncio added a commit that referenced this issue Aug 26, 2024
* issue-24:
  Increment version number to 0.0.0.9029
  Disabled FASTA tests on greedyMix() (#24)
  Added synthetic FASTA file (#24)
  Ensure diffInCounts returns as.matrix (#24)
  Adapted tests to FASTA on greedyMix() (#24)
  Removed baps file pointing to fasta
  Improved conversion from FASTA to BAPS (#24)
  Improved handling of FASTA data (#24)
  `process_BAPS_data()` can handle file being an R object
  Added function to convert from FASTA to BAPS (#24)
  Unwrapped `greedyMix() example (#24)
wleoncio added a commit that referenced this issue Sep 13, 2024
* issue-24:
  Updated docs
  Temp-wrapping disfunctional code
  Aligned processing of Genepop with MATLAB code
  Dropped support for GenePop on `importFile()`
  Added `process_GenePop_data()`
  Fixed `addAlleles()`
  handleData defaults to BAPS format
  Added unit tests for `greedyMix()` on GenePop (#24)
  Added GenePop data, txt and gen (#24)
wleoncio added a commit that referenced this issue Sep 27, 2024
wleoncio added a commit that referenced this issue Sep 27, 2024
wleoncio added a commit that referenced this issue Sep 27, 2024
* issue-24:
  Updated NEWS.md (#24)
  Increment version number to 0.0.0.9030
  Added logml tests for #24
  Fixed calculation of distances
  Fixed calculation of logml
  Adjusted unit tests
  Fixed output
  Syntax fixes
@wleoncio
Copy link
Member Author

Done for all originally-supported formats, namely BAPS and GenePop. VCF and BAM are not on the original code, so one needs to reshape them into a format the rest of the function can use. For FASTA, a function was created to convert it to BAPS. It's still broken, but might be the easiest way to go here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant