most_recent_cl_data¶
- outbreak_data.most_recent_cl_data(pango_lin, mutations=None, location=None, submission=False, **req_args)¶
Get most recent date of clinical sequencing data by location.
- Parameters
pango_lin -- A string or list of pango lineages. If a list, behavior is OR.
mutations -- A string or list of mutations. If a list, behavior is OR.
location -- A location ID. If not specified, global data are returned.
submission -- True -> submission dates; False -> collection dates.
- Returns
The most recent date in YYYY-MM-DD.
- Parameter example
{ 'pango_lin': 'ba.2.86.1', 'location': 'USA_US-HI' }
Example Usage
View the last date of sample matching for BA.2.86 in New York:
>>> date = outbreak_data.most_recent_cl_data('BA.2.86', location = 'USA_US-NY' )
>>> date
Timestamp('2024-01-16 00:00:00')