sequence_counts

outbreak_data.sequence_counts(location=None, sub_admin=False, **req_args)

Get the number of clinical sequences collected for a location.

Parameters
  • location -- A string containing a location ID. If not specified, the global total counts are returned.

  • subadmin -- False -> daily counts, True -> sub-location counts.

Returns

A pandas dataframe of sequence counts.

Parameter example 1

{ 'location': 'USA_US-HI' }

Parameter example 2

{ 'location': 'MEX', 'sub_admin': True }

Example Usage

Get number of daily sequence counts in New York, Colorado, Florida and Texas:

>>> df = outbreak_data.sequence_counts('USA', sub_admin = True)
>>> states = df.loc[['USA_US-NY', 'USA_US-FL', 'USA_US-CO', 'USA_US-TX']]
>>> states

             total_count
location_id
USA_US-NY         346598
USA_US-FL         211068
USA_US-CO         243188
USA_US-TX         302701