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

create python script to create data that are usable for evaluation #8

Open
elray1 opened this issue Nov 13, 2024 · 0 comments
Open

Comments

@elray1
Copy link
Contributor

elray1 commented Nov 13, 2024

  • latest available sequences covering the date range that was predicted with reference date 90 days ago
  • uses the reference tree that was available 90 days ago

can be adapted from https://github.com/reichlab/get-covid-clade-counts/blob/main/get_covid_clade_counts.py

can use code along these lines:

from cladetime import CladeTime, sequence

ct = CladeTime(tree_as_of="2024-08-02")
filtered_metadata = sequence.filter_metadata(
    ct.sequence_metadata,
    # DON'T FORGET TO DO THIS ADDITIONAL FILTERING ON COLLECTION DATES!
    collection_min_date="2024-07-01", 
    collection_max_date="2024-07-03"
)

assignments = ct.assign_clades(filtered_metadata)
@elray1 elray1 changed the title create python script and workflow to create data that are usable for evaluation create python script to create data that are usable for evaluation Nov 13, 2024
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

No branches or pull requests

1 participant