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

25 true fitness #26

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

25 true fitness #26

wants to merge 13 commits into from

Conversation

zorian15
Copy link
Collaborator

Description

Implemented a very basic fitness metric. The fitness of a virus is given by its average risk of infection for a random sample of hosts. Also includes a new parameter fitnessSampleSize that allows the user to specify how many random hosts to sample for fitness calculations.

Fitness values are stored in the .tips file and written as header metadata in the .fasta file of antigen-prime output.

Closes #25

Tests

No unit tests (yet at least) --- but this code use a lot of the base code in antigen.

Checklist:

  • The code uses informative and accurate variable and function names
  • The functionality is factored out into functions and methods with logical interfaces
  • Comments are up to date, document intent, and there are no commented-out code blocks
  • Commenting and/or documentation is sufficient for others to be able to understand intent and implementation
  • TODOs have been eliminated from the code
  • The corresponding issue number (e.g. #278) has been searched for in the code to find relevant notes
  • Documentation has been redeployed

@zorian15
Copy link
Collaborator Author

@Haddox @matsen @thienktran -- if anybody wants to give this a look to make sure my Java or logic isn't awful, feel free. Otherwise, will merge in if y'all are okay with these changes.

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

Successfully merging this pull request may close these issues.

Add "true fitness" metric to tips file
1 participant