Reference

genomicsurveillance.util

The util module contains classes and functions to run the genomicsurveillance model.

genomicsurveillance.utils.create_date_list(periods: int, start_date: str = '2020-09-01', freq: str = 'd')list

Creates a consecutive date list starting at start_day for period days.

Parameters
  • periods – number of days

  • start_date – a date in format in the format YYYY-MM-DD

  • freq – frequency, defaults to “d” (days)

Returns

a list of dates

Return type

list

genomicsurveillance.utils.create_spline_basis(x, knot_list=None, num_knots=None, degree: int = 3, add_intercept=True)

Creates a spline basis functions.

Parameters
  • x – array of size num time steps

  • knot_list – indices of knots

  • num_knots – number of knots

  • degree – degree of the spline function

  • add_intercept – appends an additional column of ones, defaults to False

Returns

list of knots, basis functions

Return type

Tuple[np.ndarray, np.ndarray]

genomicsurveillance.utils.epiestim_R(cases: numpy.ndarray, mu: float, sigma: Optional[float], cv: Optional[float], a: float = 1, b: float = 5, tau: int = 7, q_lower: float = 0.025, q_upper: float = 0.975)

Calculates the R value as described in Anne Core et. al. 2013.

Parameters
  • cases – Array with daily number of cases.

  • mu – Mean of the serial interval distribution.

  • sigma – Standard deviation of the serial interval distribution, defaults to None.

  • cv – Coefficient of variation of the serial interval distribution, defaults to None. Either sigma OR cv must be specified.

  • a – Prior shape of the gamma distribution of R.

  • b – Prior scale of the gamma distribution of R.

  • tau – Time interval in days over which the convolution is performed.

  • q_lower – Lower bound of the returned R value.

  • q_upper – Upper bound of the returned R value.

Returns

An array with shape (3, cases.shape[0]) containing the mean, lower and upper bounds of the calculated R value.

genomicsurveillance.utils.epiestim_discretise_serial_interval(k: int, mu: float = 6.3, sigma: Optional[float] = None, cv: Optional[float] = 0.62)

Discretises a gamma distribution according to Cori et al. 2013.

Parameters
  • k – Day of the serial interval (k >= 0).

  • mu – Mean of the serial interval distribution.

  • sigma – Standard deviation of the serial interval distribution, defaults to None.

  • cv – Coefficient of variation of the serial interval distribution, defaults to None. Either sigma OR cv must be specified.

Returns

Discretised serial interval distribution.

genomicsurveillance.utils.infection_to_test(k: int, mu=1.92, sigma=0.65)

Infection to postive test result. Derived from the incubation time distribution in Bi et. al. (2020).

genomicsurveillance.utils.preprocess_lineage_tensor(lineage_list: list, lineage_tensor: numpy.ndarray, aliases: Optional[dict] = None, vocs: list = [], cutoff: int = 100, refractory: bool = False)

Preprocesses the lineage tensor.

Parameters
  • lineage_list – A list of all lineages.

  • lineage_tensor – The lineage tensor (shape: (num_location, num_time, num_lineages).

  • aliases – A dictionary with 1:1 mappings of lineages that shall be renamed.

  • vocs – Variants of concerns, not to be merged.

Returns

The list of merged lineages and the reduced lineage tensor.

genomicsurveillance.utils.time_to_str(date)

Helper function to convert pd.DateTime objects into str.

Parameters

date – A pd.DateTime object

Returns

A string in the formal ‘YYYY-MM-DD’

genomicsurveillance.models

genomicsurveillance.models.MultiLineage

alias of genomicsurveillance.models.clock_reset.MultiLineageClockReset

genomicsurveillance.handlers

genomicsurveillance.data

genomicsurveillance.data.get_england()

Returns meta data for england only.

genomicsurveillance.data.get_meta_data(meta_data: bytes = b',pop18,lad19cd,lad19nm,lad19id,utla19cd,utla19nm,utla19id,rgn19cd,rgn19nm,rgn19id,ctry19cd,ctry19nm,ctry19id\n0,93242,E06000001,Hartlepool,0,E06000001,Hartlepool,0,E12000001,North East,0,E92000001,England,0\n1,140545,E06000002,Middlesbrough,1,E06000002,Middlesbrough,0,E12000001,North East,0,E92000001,England,0\n2,136718,E06000003,Redcar and Cleveland,2,E06000003,Redcar and Cleveland,0,E12000001,North East,0,E92000001,England,0\n3,197213,E06000004,Stockton-on-Tees,3,E06000004,Stockton-on-Tees,0,E12000001,North East,0,E92000001,England,0\n4,106566,E06000005,Darlington,4,E06000005,Darlington,0,E12000001,North East,0,E92000001,England,0\n5,128432,E06000006,Halton,5,E06000006,Halton,0,E12000002,North West,1,E92000001,England,0\n6,209547,E06000007,Warrington,6,E06000007,Warrington,0,E12000002,North West,1,E92000001,England,0\n7,148942,E06000008,Blackburn with Darwen,7,E06000008,Blackburn with Darwen,0,E12000002,North West,1,E92000001,England,0\n8,139305,E06000009,Blackpool,8,E06000009,Blackpool,0,E12000002,North West,1,E92000001,England,0\n9,260645,E06000010,"Kingston upon Hull, City of",9,E06000010,"Kingston upon Hull, City of",0,E12000003,Yorkshire and The Humber,2,E92000001,England,0\n10,339614,E06000011,East Riding of Yorkshire,10,E06000011,East Riding of Yorkshire,0,E12000003,Yorkshire and The Humber,2,E92000001,England,0\n11,159821,E06000012,North East Lincolnshire,11,E06000012,North East Lincolnshire,0,E12000003,Yorkshire and The Humber,2,E92000001,England,0\n12,172005,E06000013,North Lincolnshire,12,E06000013,North Lincolnshire,0,E12000003,Yorkshire and The Humber,2,E92000001,England,0\n13,209893,E06000014,York,13,E06000014,York,0,E12000003,Yorkshire and The Humber,2,E92000001,England,0\n14,257174,E06000015,Derby,14,E06000015,Derby,0,E12000004,East Midlands,3,E92000001,England,0\n15,355218,E06000016,Leicester,15,E06000016,Leicester,0,E12000004,East Midlands,3,E92000001,England,0\n16,39697,E06000017,Rutland,16,E06000017,Rutland,0,E12000004,East Midlands,3,E92000001,England,0\n17,331069,E06000018,Nottingham,17,E06000018,Nottingham,0,E12000004,East Midlands,3,E92000001,England,0\n18,192107,E06000019,"Herefordshire, County of",18,E06000019,"Herefordshire, County of",0,E12000005,West Midlands,4,E92000001,England,0\n19,177799,E06000020,Telford and Wrekin,19,E06000020,Telford and Wrekin,0,E12000005,West Midlands,4,E92000001,England,0\n20,255833,E06000021,Stoke-on-Trent,20,E06000021,Stoke-on-Trent,0,E12000005,West Midlands,4,E92000001,England,0\n21,192106,E06000022,Bath and North East Somerset,21,E06000022,Bath and North East Somerset,0,E12000009,South West,5,E92000001,England,0\n22,463405,E06000023,"Bristol, City of",22,E06000023,"Bristol, City of",0,E12000009,South West,5,E92000001,England,0\n23,213919,E06000024,North Somerset,23,E06000024,North Somerset,0,E12000009,South West,5,E92000001,England,0\n24,282644,E06000025,South Gloucestershire,24,E06000025,South Gloucestershire,0,E12000009,South West,5,E92000001,England,0\n25,263100,E06000026,Plymouth,25,E06000026,Plymouth,0,E12000009,South West,5,E92000001,England,0\n26,135780,E06000027,Torbay,26,E06000027,Torbay,0,E12000009,South West,5,E92000001,England,0\n27,221996,E06000030,Swindon,27,E06000030,Swindon,0,E12000009,South West,5,E92000001,England,0\n28,201041,E06000031,Peterborough,28,E06000031,Peterborough,0,E12000006,East of England,6,E92000001,England,0\n29,214109,E06000032,Luton,29,E06000032,Luton,0,E12000006,East of England,6,E92000001,England,0\n30,182463,E06000033,Southend-on-Sea,30,E06000033,Southend-on-Sea,0,E12000006,East of England,6,E92000001,England,0\n31,172525,E06000034,Thurrock,31,E06000034,Thurrock,0,E12000006,East of England,6,E92000001,England,0\n32,277855,E06000035,Medway,32,E06000035,Medway,0,E12000008,South East,7,E92000001,England,0\n33,121676,E06000036,Bracknell Forest,33,E06000036,Bracknell Forest,0,E12000008,South East,7,E92000001,England,0\n34,158527,E06000037,West Berkshire,34,E06000037,West Berkshire,0,E12000008,South East,7,E92000001,England,0\n35,163203,E06000038,Reading,35,E06000038,Reading,0,E12000008,South East,7,E92000001,England,0\n36,149112,E06000039,Slough,36,E06000039,Slough,0,E12000008,South East,7,E92000001,England,0\n37,150906,E06000040,Windsor and Maidenhead,37,E06000040,Windsor and Maidenhead,0,E12000008,South East,7,E92000001,England,0\n38,167979,E06000041,Wokingham,38,E06000041,Wokingham,0,E12000008,South East,7,E92000001,England,0\n39,268607,E06000042,Milton Keynes,39,E06000042,Milton Keynes,0,E12000008,South East,7,E92000001,England,0\n40,290395,E06000043,Brighton and Hove,40,E06000043,Brighton and Hove,0,E12000008,South East,7,E92000001,England,0\n41,215133,E06000044,Portsmouth,41,E06000044,Portsmouth,0,E12000008,South East,7,E92000001,England,0\n42,252796,E06000045,Southampton,42,E06000045,Southampton,0,E12000008,South East,7,E92000001,England,0\n43,141538,E06000046,Isle of Wight,43,E06000046,Isle of Wight,0,E12000008,South East,7,E92000001,England,0\n44,526980,E06000047,County Durham,44,E06000047,County Durham,0,E12000001,North East,0,E92000001,England,0\n45,380790,E06000049,Cheshire East,45,E06000049,Cheshire East,0,E12000002,North West,1,E92000001,England,0\n46,340502,E06000050,Cheshire West and Chester,46,E06000050,Cheshire West and Chester,0,E12000002,North West,1,E92000001,England,0\n47,320274,E06000051,Shropshire,47,E06000051,Shropshire,0,E12000005,West Midlands,4,E92000001,England,0\n48,565968,E06000052,Cornwall,48,E06000052,Cornwall,0,E12000009,South West,5,E92000001,England,0\n49,2242,E06000053,Isles of Scilly,49,E06000053,Isles of Scilly,0,E12000009,South West,5,E92000001,England,0\n50,498064,E06000054,Wiltshire,50,E06000054,Wiltshire,0,E12000009,South West,5,E92000001,England,0\n51,171623,E06000055,Bedford,51,E06000055,Bedford,0,E12000006,East of England,6,E92000001,England,0\n52,283606,E06000056,Central Bedfordshire,52,E06000056,Central Bedfordshire,0,E12000006,East of England,6,E92000001,England,0\n53,320274,E06000057,Northumberland,53,E06000057,Northumberland,0,E12000001,North East,0,E92000001,England,0\n54,395784,E06000058,"Bournemouth, Christchurch and Poole",54,E06000058,"Bournemouth, Christchurch and Poole",0,E12000009,South West,5,E92000001,England,0\n55,376484,E06000059,Dorset,55,E06000059,Dorset,0,E12000009,South West,5,E92000001,England,0\n56,199448,E07000004,Aylesbury Vale,56,E10000002,Buckinghamshire,4,E12000008,South East,7,E92000001,England,0\n57,95927,E07000005,Chiltern,57,E10000002,Buckinghamshire,4,E12000008,South East,7,E92000001,England,0\n58,70043,E07000006,South Bucks,58,E10000002,Buckinghamshire,4,E12000008,South East,7,E92000001,England,0\n59,174641,E07000007,Wycombe,59,E10000002,Buckinghamshire,4,E12000008,South East,7,E92000001,England,0\n60,125758,E07000008,Cambridge,60,E10000003,Cambridgeshire,5,E12000006,East of England,6,E92000001,England,0\n61,89362,E07000009,East Cambridgeshire,61,E10000003,Cambridgeshire,5,E12000006,East of England,6,E92000001,England,0\n62,101491,E07000010,Fenland,62,E10000003,Cambridgeshire,5,E12000006,East of England,6,E92000001,England,0\n63,177352,E07000011,Huntingdonshire,63,E10000003,Cambridgeshire,5,E12000006,East of England,6,E92000001,England,0\n64,157519,E07000012,South Cambridgeshire,64,E10000003,Cambridgeshire,5,E12000006,East of England,6,E92000001,England,0\n65,97527,E07000026,Allerdale,65,E10000006,Cumbria,6,E12000002,North West,1,E92000001,England,0\n66,67137,E07000027,Barrow-in-Furness,66,E10000006,Cumbria,6,E12000002,North West,1,E92000001,England,0\n67,108387,E07000028,Carlisle,67,E10000006,Cumbria,6,E12000002,North West,1,E92000001,England,0\n68,68424,E07000029,Copeland,68,E10000006,Cumbria,6,E12000002,North West,1,E92000001,England,0\n69,52881,E07000030,Eden,69,E10000006,Cumbria,6,E12000002,North West,1,E92000001,England,0\n70,104532,E07000031,South Lakeland,70,E10000006,Cumbria,6,E12000002,North West,1,E92000001,England,0\n71,126678,E07000032,Amber Valley,71,E10000007,Derbyshire,7,E12000004,East Midlands,3,E92000001,England,0\n72,79530,E07000033,Bolsover,72,E10000007,Derbyshire,7,E12000004,East Midlands,3,E92000001,England,0\n73,104628,E07000034,Chesterfield,73,E10000007,Derbyshire,7,E12000004,East Midlands,3,E92000001,England,0\n74,71977,E07000035,Derbyshire Dales,74,E10000007,Derbyshire,7,E12000004,East Midlands,3,E92000001,England,0\n75,115490,E07000036,Erewash,75,E10000007,Derbyshire,7,E12000004,East Midlands,3,E92000001,England,0\n76,92221,E07000037,High Peak,76,E10000007,Derbyshire,7,E12000004,East Midlands,3,E92000001,England,0\n77,101125,E07000038,North East Derbyshire,77,E10000007,Derbyshire,7,E12000004,East Midlands,3,E92000001,England,0\n78,104493,E07000039,South Derbyshire,78,E10000007,Derbyshire,7,E12000004,East Midlands,3,E92000001,England,0\n79,144317,E07000040,East Devon,79,E10000008,Devon,8,E12000009,South West,5,E92000001,England,0\n80,130428,E07000041,Exeter,80,E10000008,Devon,8,E12000009,South West,5,E92000001,England,0\n81,81695,E07000042,Mid Devon,81,E10000008,Devon,8,E12000009,South West,5,E92000001,England,0\n82,96110,E07000043,North Devon,82,E10000008,Devon,8,E12000009,South West,5,E92000001,England,0\n83,86221,E07000044,South Hams,83,E10000008,Devon,8,E12000009,South West,5,E92000001,England,0\n84,132844,E07000045,Teignbridge,84,E10000008,Devon,8,E12000009,South West,5,E92000001,England,0\n85,68143,E07000046,Torridge,85,E10000008,Devon,8,E12000009,South West,5,E92000001,England,0\n86,55528,E07000047,West Devon,86,E10000008,Devon,8,E12000009,South West,5,E92000001,England,0\n87,103160,E07000061,Eastbourne,87,E10000011,East Sussex,9,E12000008,South East,7,E92000001,England,0\n88,92855,E07000062,Hastings,88,E10000011,East Sussex,9,E12000008,South East,7,E92000001,England,0\n89,102744,E07000063,Lewes,89,E10000011,East Sussex,9,E12000008,South East,7,E92000001,England,0\n90,95656,E07000064,Rother,90,E10000011,East Sussex,9,E12000008,South East,7,E92000001,England,0\n91,160175,E07000065,Wealden,91,E10000011,East Sussex,9,E12000008,South East,7,E92000001,England,0\n92,185862,E07000066,Basildon,92,E10000012,Essex,10,E12000006,East of England,6,E92000001,England,0\n93,151561,E07000067,Braintree,93,E10000012,Essex,10,E12000006,East of England,6,E92000001,England,0\n94,76550,E07000068,Brentwood,94,E10000012,Essex,10,E12000006,East of England,6,E92000001,England,0\n95,90070,E07000069,Castle Point,95,E10000012,Essex,10,E12000006,East of England,6,E92000001,England,0\n96,177079,E07000070,Chelmsford,96,E10000012,Essex,10,E12000006,East of England,6,E92000001,England,0\n97,192523,E07000071,Colchester,97,E10000012,Essex,10,E12000006,East of England,6,E92000001,England,0\n98,131137,E07000072,Epping Forest,98,E10000012,Essex,10,E12000006,East of England,6,E92000001,England,0\n99,86594,E07000073,Harlow,99,E10000012,Essex,10,E12000006,East of England,6,E92000001,England,0\n100,64425,E07000074,Maldon,100,E10000012,Essex,10,E12000006,East of England,6,E92000001,England,0\n101,86981,E07000075,Rochford,101,E10000012,Essex,10,E12000006,East of England,6,E92000001,England,0\n102,145803,E07000076,Tendring,102,E10000012,Essex,10,E12000006,East of England,6,E92000001,England,0\n103,89179,E07000077,Uttlesford,103,E10000012,Essex,10,E12000006,East of England,6,E92000001,England,0\n104,117090,E07000078,Cheltenham,104,E10000013,Gloucestershire,11,E12000009,South West,5,E92000001,England,0\n105,89022,E07000079,Cotswold,105,E10000013,Gloucestershire,11,E12000009,South West,5,E92000001,England,0\n106,86543,E07000080,Forest of Dean,106,E10000013,Gloucestershire,11,E12000009,South West,5,E92000001,England,0\n107,129285,E07000081,Gloucester,107,E10000013,Gloucestershire,11,E12000009,South West,5,E92000001,England,0\n108,119019,E07000082,Stroud,108,E10000013,Gloucestershire,11,E12000009,South West,5,E92000001,England,0\n109,92599,E07000083,Tewkesbury,109,E10000013,Gloucestershire,11,E12000009,South West,5,E92000001,England,0\n110,175729,E07000084,Basingstoke and Deane,110,E10000014,Hampshire,12,E12000008,South East,7,E92000001,England,0\n111,120681,E07000085,East Hampshire,111,E10000014,Hampshire,12,E12000008,South East,7,E92000001,England,0\n112,131819,E07000086,Eastleigh,112,E10000014,Hampshire,12,E12000008,South East,7,E92000001,England,0\n113,116339,E07000087,Fareham,113,E10000014,Hampshire,12,E12000008,South East,7,E92000001,England,0\n114,85283,E07000088,Gosport,114,E10000014,Hampshire,12,E12000008,South East,7,E92000001,England,0\n115,96293,E07000089,Hart,115,E10000014,Hampshire,12,E12000008,South East,7,E92000001,England,0\n116,125813,E07000090,Havant,116,E10000014,Hampshire,12,E12000008,South East,7,E92000001,England,0\n117,179753,E07000091,New Forest,117,E10000014,Hampshire,12,E12000008,South East,7,E92000001,England,0\n118,95142,E07000092,Rushmoor,118,E10000014,Hampshire,12,E12000008,South East,7,E92000001,England,0\n119,125169,E07000093,Test Valley,119,E10000014,Hampshire,12,E12000008,South East,7,E92000001,England,0\n120,124295,E07000094,Winchester,120,E10000014,Hampshire,12,E12000008,South East,7,E92000001,England,0\n121,96876,E07000095,Broxbourne,121,E10000015,Hertfordshire,13,E12000006,East of England,6,E92000001,England,0\n122,154280,E07000096,Dacorum,122,E10000015,Hertfordshire,13,E12000006,East of England,6,E92000001,England,0\n123,104205,E07000098,Hertsmere,123,E10000015,Hertfordshire,13,E12000006,East of England,6,E92000001,England,0\n124,133214,E07000099,North Hertfordshire,124,E10000015,Hertfordshire,13,E12000006,East of England,6,E92000001,England,0\n125,93045,E07000102,Three Rivers,125,E10000015,Hertfordshire,13,E12000006,East of England,6,E92000001,England,0\n126,96767,E07000103,Watford,126,E10000015,Hertfordshire,13,E12000006,East of England,6,E92000001,England,0\n127,129281,E07000105,Ashford,127,E10000016,Kent,14,E12000008,South East,7,E92000001,England,0\n128,164553,E07000106,Canterbury,128,E10000016,Kent,14,E12000008,South East,7,E92000001,England,0\n129,109709,E07000107,Dartford,129,E10000016,Kent,14,E12000008,South East,7,E92000001,England,0\n130,116969,E07000108,Dover,130,E10000016,Kent,14,E12000008,South East,7,E92000001,England,0\n131,106385,E07000109,Gravesham,131,E10000016,Kent,14,E12000008,South East,7,E92000001,England,0\n132,169955,E07000110,Maidstone,132,E10000016,Kent,14,E12000008,South East,7,E92000001,England,0\n133,120293,E07000111,Sevenoaks,133,E10000016,Kent,14,E12000008,South East,7,E92000001,England,0\n134,112578,E07000112,Folkestone and Hythe,134,E10000016,Kent,14,E12000008,South East,7,E92000001,England,0\n135,148519,E07000113,Swale,135,E10000016,Kent,14,E12000008,South East,7,E92000001,England,0\n136,141819,E07000114,Thanet,136,E10000016,Kent,14,E12000008,South East,7,E92000001,England,0\n137,130508,E07000115,Tonbridge and Malling,137,E10000016,Kent,14,E12000008,South East,7,E92000001,England,0\n138,118054,E07000116,Tunbridge Wells,138,E10000016,Kent,14,E12000008,South East,7,E92000001,England,0\n139,88527,E07000117,Burnley,139,E10000017,Lancashire,15,E12000002,North West,1,E92000001,England,0\n140,116821,E07000118,Chorley,140,E10000017,Lancashire,15,E12000002,North West,1,E92000001,England,0\n141,79770,E07000119,Fylde,141,E10000017,Lancashire,15,E12000002,North West,1,E92000001,England,0\n142,80815,E07000120,Hyndburn,142,E10000017,Lancashire,15,E12000002,North West,1,E92000001,England,0\n143,144246,E07000121,Lancaster,143,E10000017,Lancashire,15,E12000002,North West,1,E92000001,England,0\n144,91405,E07000122,Pendle,144,E10000017,Lancashire,15,E12000002,North West,1,E92000001,England,0\n145,141818,E07000123,Preston,145,E10000017,Lancashire,15,E12000002,North West,1,E92000001,England,0\n146,60057,E07000124,Ribble Valley,146,E10000017,Lancashire,15,E12000002,North West,1,E92000001,England,0\n147,70895,E07000125,Rossendale,147,E10000017,Lancashire,15,E12000002,North West,1,E92000001,England,0\n148,110527,E07000126,South Ribble,148,E10000017,Lancashire,15,E12000002,North West,1,E92000001,England,0\n149,113949,E07000127,West Lancashire,149,E10000017,Lancashire,15,E12000002,North West,1,E92000001,England,0\n150,111223,E07000128,Wyre,150,E10000017,Lancashire,15,E12000002,North West,1,E92000001,England,0\n151,100421,E07000129,Blaby,151,E10000018,Leicestershire,16,E12000004,East Midlands,3,E92000001,England,0\n152,182643,E07000130,Charnwood,152,E10000018,Leicestershire,16,E12000004,East Midlands,3,E92000001,England,0\n153,92499,E07000131,Harborough,153,E10000018,Leicestershire,16,E12000004,East Midlands,3,E92000001,England,0\n154,112423,E07000132,Hinckley and Bosworth,154,E10000018,Leicestershire,16,E12000004,East Midlands,3,E92000001,England,0\n155,51100,E07000133,Melton,155,E10000018,Leicestershire,16,E12000004,East Midlands,3,E92000001,England,0\n156,102126,E07000134,North West Leicestershire,156,E10000018,Leicestershire,16,E12000004,East Midlands,3,E92000001,England,0\n157,57056,E07000135,Oadby and Wigston,157,E10000018,Leicestershire,16,E12000004,East Midlands,3,E92000001,England,0\n158,69366,E07000136,Boston,158,E10000019,Lincolnshire,17,E12000004,East Midlands,3,E92000001,England,0\n159,140741,E07000137,East Lindsey,159,E10000019,Lincolnshire,17,E12000004,East Midlands,3,E92000001,England,0\n160,99039,E07000138,Lincoln,160,E10000019,Lincolnshire,17,E12000004,East Midlands,3,E92000001,England,0\n161,115985,E07000139,North Kesteven,161,E10000019,Lincolnshire,17,E12000004,East Midlands,3,E92000001,England,0\n162,93980,E07000140,South Holland,162,E10000019,Lincolnshire,17,E12000004,East Midlands,3,E92000001,England,0\n163,141853,E07000141,South Kesteven,163,E10000019,Lincolnshire,17,E12000004,East Midlands,3,E92000001,England,0\n164,94869,E07000142,West Lindsey,164,E10000019,Lincolnshire,17,E12000004,East Midlands,3,E92000001,England,0\n165,139329,E07000143,Breckland,165,E10000020,Norfolk,18,E12000006,East of England,6,E92000001,England,0\n166,129464,E07000144,Broadland,166,E10000020,Norfolk,18,E12000006,East of England,6,E92000001,England,0\n167,99370,E07000145,Great Yarmouth,167,E10000020,Norfolk,18,E12000006,East of England,6,E92000001,England,0\n168,151811,E07000146,King\'s Lynn and West Norfolk,168,E10000020,Norfolk,18,E12000006,East of England,6,E92000001,England,0\n169,104552,E07000147,North Norfolk,169,E10000020,Norfolk,18,E12000006,East of England,6,E92000001,England,0\n170,141137,E07000148,Norwich,170,E10000020,Norfolk,18,E12000006,East of England,6,E92000001,England,0\n171,138017,E07000149,South Norfolk,171,E10000020,Norfolk,18,E12000006,East of England,6,E92000001,England,0\n172,70827,E07000150,Corby,172,E10000021,Northamptonshire,19,E12000004,East Midlands,3,E92000001,England,0\n173,84484,E07000151,Daventry,173,E10000021,Northamptonshire,19,E12000004,East Midlands,3,E92000001,England,0\n174,93906,E07000152,East Northamptonshire,174,E10000021,Northamptonshire,19,E12000004,East Midlands,3,E92000001,England,0\n175,101266,E07000153,Kettering,175,E10000021,Northamptonshire,19,E12000004,East Midlands,3,E92000001,England,0\n176,225146,E07000154,Northampton,176,E10000021,Northamptonshire,19,E12000004,East Midlands,3,E92000001,England,0\n177,92515,E07000155,South Northamptonshire,177,E10000021,Northamptonshire,19,E12000004,East Midlands,3,E92000001,England,0\n178,79478,E07000156,Wellingborough,178,E10000021,Northamptonshire,19,E12000004,East Midlands,3,E92000001,England,0\n179,56832,E07000163,Craven,179,E10000023,North Yorkshire,20,E12000003,Yorkshire and The Humber,2,E92000001,England,0\n180,91134,E07000164,Hambleton,180,E10000023,North Yorkshire,20,E12000003,Yorkshire and The Humber,2,E92000001,England,0\n181,160533,E07000165,Harrogate,181,E10000023,North Yorkshire,20,E12000003,Yorkshire and The Humber,2,E92000001,England,0\n182,53244,E07000166,Richmondshire,182,E10000023,North Yorkshire,20,E12000003,Yorkshire and The Humber,2,E92000001,England,0\n183,54920,E07000167,Ryedale,183,E10000023,North Yorkshire,20,E12000003,Yorkshire and The Humber,2,E92000001,England,0\n184,108736,E07000168,Scarborough,184,E10000023,North Yorkshire,20,E12000003,Yorkshire and The Humber,2,E92000001,England,0\n185,89106,E07000169,Selby,185,E10000023,North Yorkshire,20,E12000003,Yorkshire and The Humber,2,E92000001,England,0\n186,127151,E07000170,Ashfield,186,E10000024,Nottinghamshire,21,E12000004,East Midlands,3,E92000001,England,0\n187,116839,E07000171,Bassetlaw,187,E10000024,Nottinghamshire,21,E12000004,East Midlands,3,E92000001,England,0\n188,113272,E07000172,Broxtowe,188,E10000024,Nottinghamshire,21,E12000004,East Midlands,3,E92000001,England,0\n189,117786,E07000173,Gedling,189,E10000024,Nottinghamshire,21,E12000004,East Midlands,3,E92000001,England,0\n190,108841,E07000174,Mansfield,190,E10000024,Nottinghamshire,21,E12000004,East Midlands,3,E92000001,England,0\n191,121566,E07000175,Newark and Sherwood,191,E10000024,Nottinghamshire,21,E12000004,East Midlands,3,E92000001,England,0\n192,117671,E07000176,Rushcliffe,192,E10000024,Nottinghamshire,21,E12000004,East Midlands,3,E92000001,England,0\n193,149161,E07000177,Cherwell,193,E10000025,Oxfordshire,22,E12000008,South East,7,E92000001,England,0\n194,154327,E07000178,Oxford,194,E10000025,Oxfordshire,22,E12000008,South East,7,E92000001,England,0\n195,140504,E07000179,South Oxfordshire,195,E10000025,Oxfordshire,22,E12000008,South East,7,E92000001,England,0\n196,133732,E07000180,Vale of White Horse,196,E10000025,Oxfordshire,22,E12000008,South East,7,E92000001,England,0\n197,109800,E07000181,West Oxfordshire,197,E10000025,Oxfordshire,22,E12000008,South East,7,E92000001,England,0\n198,114881,E07000187,Mendip,198,E10000027,Somerset,23,E12000009,South West,5,E92000001,England,0\n199,122791,E07000188,Sedgemoor,199,E10000027,Somerset,23,E12000009,South West,5,E92000001,England,0\n200,167861,E07000189,South Somerset,200,E10000027,Somerset,23,E12000009,South West,5,E92000001,England,0\n201,100109,E07000192,Cannock Chase,201,E10000028,Staffordshire,24,E12000005,West Midlands,4,E92000001,England,0\n202,118574,E07000193,East Staffordshire,202,E10000028,Staffordshire,24,E12000005,West Midlands,4,E92000001,England,0\n203,103965,E07000194,Lichfield,203,E10000028,Staffordshire,24,E12000005,West Midlands,4,E92000001,England,0\n204,129490,E07000195,Newcastle-under-Lyme,204,E10000028,Staffordshire,24,E12000005,West Midlands,4,E92000001,England,0\n205,112126,E07000196,South Staffordshire,205,E10000028,Staffordshire,24,E12000005,West Midlands,4,E92000001,England,0\n206,135880,E07000197,Stafford,206,E10000028,Staffordshire,24,E12000005,West Midlands,4,E92000001,England,0\n207,98397,E07000198,Staffordshire Moorlands,207,E10000028,Staffordshire,24,E12000005,West Midlands,4,E92000001,England,0\n208,76678,E07000199,Tamworth,208,E10000028,Staffordshire,24,E12000005,West Midlands,4,E92000001,England,0\n209,91401,E07000200,Babergh,209,E10000029,Suffolk,25,E12000006,East of England,6,E92000001,England,0\n210,137532,E07000202,Ipswich,210,E10000029,Suffolk,25,E12000006,East of England,6,E92000001,England,0\n211,102493,E07000203,Mid Suffolk,211,E10000029,Suffolk,25,E12000006,East of England,6,E92000001,England,0\n212,136626,E07000207,Elmbridge,212,E10000030,Surrey,26,E12000008,South East,7,E92000001,England,0\n213,79928,E07000208,Epsom and Ewell,213,E10000030,Surrey,26,E12000008,South East,7,E92000001,England,0\n214,147889,E07000209,Guildford,214,E10000030,Surrey,26,E12000008,South East,7,E92000001,England,0\n215,87253,E07000210,Mole Valley,215,E10000030,Surrey,26,E12000008,South East,7,E92000001,England,0\n216,147757,E07000211,Reigate and Banstead,216,E10000030,Surrey,26,E12000008,South East,7,E92000001,England,0\n217,88000,E07000212,Runnymede,217,E10000030,Surrey,26,E12000008,South East,7,E92000001,England,0\n218,99334,E07000213,Spelthorne,218,E10000030,Surrey,26,E12000008,South East,7,E92000001,England,0\n219,88874,E07000214,Surrey Heath,219,E10000030,Surrey,26,E12000008,South East,7,E92000001,England,0\n220,87496,E07000215,Tandridge,220,E10000030,Surrey,26,E12000008,South East,7,E92000001,England,0\n221,125610,E07000216,Waverley,221,E10000030,Surrey,26,E12000008,South East,7,E92000001,England,0\n222,101167,E07000217,Woking,222,E10000030,Surrey,26,E12000008,South East,7,E92000001,England,0\n223,64850,E07000218,North Warwickshire,223,E10000031,Warwickshire,27,E12000005,West Midlands,4,E92000001,England,0\n224,128902,E07000219,Nuneaton and Bedworth,224,E10000031,Warwickshire,27,E12000005,West Midlands,4,E92000001,England,0\n225,107194,E07000220,Rugby,225,E10000031,Warwickshire,27,E12000005,West Midlands,4,E92000001,England,0\n226,127580,E07000221,Stratford-on-Avon,226,E10000031,Warwickshire,27,E12000005,West Midlands,4,E92000001,England,0\n227,142484,E07000222,Warwick,227,E10000031,Warwickshire,27,E12000005,West Midlands,4,E92000001,England,0\n228,63869,E07000223,Adur,228,E10000032,West Sussex,28,E12000008,South East,7,E92000001,England,0\n229,159827,E07000224,Arun,229,E10000032,West Sussex,28,E12000008,South East,7,E92000001,England,0\n230,120750,E07000225,Chichester,230,E10000032,West Sussex,28,E12000008,South East,7,E92000001,England,0\n231,112448,E07000226,Crawley,231,E10000032,West Sussex,28,E12000008,South East,7,E92000001,England,0\n232,142217,E07000227,Horsham,232,E10000032,West Sussex,28,E12000008,South East,7,E92000001,England,0\n233,149716,E07000228,Mid Sussex,233,E10000032,West Sussex,28,E12000008,South East,7,E92000001,England,0\n234,110025,E07000229,Worthing,234,E10000032,West Sussex,28,E12000008,South East,7,E92000001,England,0\n235,98662,E07000234,Bromsgrove,235,E10000034,Worcestershire,29,E12000005,West Midlands,4,E92000001,England,0\n236,78113,E07000235,Malvern Hills,236,E10000034,Worcestershire,29,E12000005,West Midlands,4,E92000001,England,0\n237,84989,E07000236,Redditch,237,E10000034,Worcestershire,29,E12000005,West Midlands,4,E92000001,England,0\n238,101891,E07000237,Worcester,238,E10000034,Worcestershire,29,E12000005,West Midlands,4,E92000001,England,0\n239,127340,E07000238,Wychavon,239,E10000034,Worcestershire,29,E12000005,West Midlands,4,E92000001,England,0\n240,101062,E07000239,Wyre Forest,240,E10000034,Worcestershire,29,E12000005,West Midlands,4,E92000001,England,0\n241,147373,E07000240,St Albans,241,E10000015,Hertfordshire,13,E12000006,East of England,6,E92000001,England,0\n242,122746,E07000241,Welwyn Hatfield,242,E10000015,Hertfordshire,13,E12000006,East of England,6,E92000001,England,0\n243,148105,E07000242,East Hertfordshire,243,E10000015,Hertfordshire,13,E12000006,East of England,6,E92000001,England,0\n244,87754,E07000243,Stevenage,244,E10000015,Hertfordshire,13,E12000006,East of England,6,E92000001,England,0\n245,248249,E07000244,East Suffolk,245,E10000029,Suffolk,25,E12000006,East of England,6,E92000001,England,0\n246,178881,E07000245,West Suffolk,246,E10000029,Suffolk,25,E12000006,East of England,6,E92000001,England,0\n247,153866,E07000246,Somerset West and Taunton,247,E10000027,Somerset,23,E12000009,South West,5,E92000001,England,0\n248,285372,E08000001,Bolton,248,E08000001,Bolton,0,E12000002,North West,1,E92000001,England,0\n249,190108,E08000002,Bury,249,E08000002,Bury,0,E12000002,North West,1,E92000001,England,0\n250,547627,E08000003,Manchester,250,E08000003,Manchester,0,E12000002,North West,1,E92000001,England,0\n251,235623,E08000004,Oldham,251,E08000004,Oldham,0,E12000002,North West,1,E92000001,England,0\n252,220001,E08000005,Rochdale,252,E08000005,Rochdale,0,E12000002,North West,1,E92000001,England,0\n253,254408,E08000006,Salford,253,E08000006,Salford,0,E12000002,North West,1,E92000001,England,0\n254,291775,E08000007,Stockport,254,E08000007,Stockport,0,E12000002,North West,1,E92000001,England,0\n255,225197,E08000008,Tameside,255,E08000008,Tameside,0,E12000002,North West,1,E92000001,England,0\n256,236370,E08000009,Trafford,256,E08000009,Trafford,0,E12000002,North West,1,E92000001,England,0\n257,326088,E08000010,Wigan,257,E08000010,Wigan,0,E12000002,North West,1,E92000001,England,0\n258,149571,E08000011,Knowsley,258,E08000011,Knowsley,0,E12000002,North West,1,E92000001,England,0\n259,494814,E08000012,Liverpool,259,E08000012,Liverpool,0,E12000002,North West,1,E92000001,England,0\n260,180049,E08000013,St. Helens,260,E08000013,St. Helens,0,E12000002,North West,1,E92000001,England,0\n261,275396,E08000014,Sefton,261,E08000014,Sefton,0,E12000002,North West,1,E92000001,England,0\n262,323235,E08000015,Wirral,262,E08000015,Wirral,0,E12000002,North West,1,E92000001,England,0\n263,245199,E08000016,Barnsley,263,E08000016,Barnsley,0,E12000003,Yorkshire and The Humber,2,E92000001,England,0\n264,310542,E08000017,Doncaster,264,E08000017,Doncaster,0,E12000003,Yorkshire and The Humber,2,E92000001,England,0\n265,264671,E08000018,Rotherham,265,E08000018,Rotherham,0,E12000003,Yorkshire and The Humber,2,E92000001,England,0\n266,582506,E08000019,Sheffield,266,E08000019,Sheffield,0,E12000003,Yorkshire and The Humber,2,E92000001,England,0\n267,300196,E08000021,Newcastle upon Tyne,267,E08000021,Newcastle upon Tyne,0,E12000001,North East,0,E92000001,England,0\n268,205985,E08000022,North Tyneside,268,E08000022,North Tyneside,0,E12000001,North East,0,E92000001,England,0\n269,150265,E08000023,South Tyneside,269,E08000023,South Tyneside,0,E12000001,North East,0,E92000001,England,0\n270,277417,E08000024,Sunderland,270,E08000024,Sunderland,0,E12000001,North East,0,E92000001,England,0\n271,1141374,E08000025,Birmingham,271,E08000025,Birmingham,0,E12000005,West Midlands,4,E92000001,England,0\n272,366785,E08000026,Coventry,272,E08000026,Coventry,0,E12000005,West Midlands,4,E92000001,England,0\n273,320626,E08000027,Dudley,273,E08000027,Dudley,0,E12000005,West Midlands,4,E92000001,England,0\n274,327378,E08000028,Sandwell,274,E08000028,Sandwell,0,E12000005,West Midlands,4,E92000001,England,0\n275,214909,E08000029,Solihull,275,E08000029,Solihull,0,E12000005,West Midlands,4,E92000001,England,0\n276,283378,E08000030,Walsall,276,E08000030,Walsall,0,E12000005,West Midlands,4,E92000001,England,0\n277,262008,E08000031,Wolverhampton,277,E08000031,Wolverhampton,0,E12000005,West Midlands,4,E92000001,England,0\n278,537173,E08000032,Bradford,278,E08000032,Bradford,0,E12000003,Yorkshire and The Humber,2,E92000001,England,0\n279,210082,E08000033,Calderdale,279,E08000033,Calderdale,0,E12000003,Yorkshire and The Humber,2,E92000001,England,0\n280,438727,E08000034,Kirklees,280,E08000034,Kirklees,0,E12000003,Yorkshire and The Humber,2,E92000001,England,0\n281,789194,E08000035,Leeds,281,E08000035,Leeds,0,E12000003,Yorkshire and The Humber,2,E92000001,England,0\n282,345038,E08000036,Wakefield,282,E08000036,Wakefield,0,E12000003,Yorkshire and The Humber,2,E92000001,England,0\n283,202508,E08000037,Gateshead,283,E08000037,Gateshead,0,E12000001,North East,0,E92000001,England,0\n284,8706,E09000001,City of London,284,E09000001,City of London,0,E12000007,London,8,E92000001,England,0\n285,211998,E09000002,Barking and Dagenham,285,E09000002,Barking and Dagenham,0,E12000007,London,8,E92000001,England,0\n286,392140,E09000003,Barnet,286,E09000003,Barnet,0,E12000007,London,8,E92000001,England,0\n287,247258,E09000004,Bexley,287,E09000004,Bexley,0,E12000007,London,8,E92000001,England,0\n288,330795,E09000005,Brent,288,E09000005,Brent,0,E12000007,London,8,E92000001,England,0\n289,331096,E09000006,Bromley,289,E09000006,Bromley,0,E12000007,London,8,E92000001,England,0\n290,262226,E09000007,Camden,290,E09000007,Camden,0,E12000007,London,8,E92000001,England,0\n291,385346,E09000008,Croydon,291,E09000008,Croydon,0,E12000007,London,8,E92000001,England,0\n292,341982,E09000009,Ealing,292,E09000009,Ealing,0,E12000007,London,8,E92000001,England,0\n293,333869,E09000010,Enfield,293,E09000010,Enfield,0,E12000007,London,8,E92000001,England,0\n294,286186,E09000011,Greenwich,294,E09000011,Greenwich,0,E12000007,London,8,E92000001,England,0\n295,279665,E09000012,Hackney,295,E09000012,Hackney,0,E12000007,London,8,E92000001,England,0\n296,185426,E09000013,Hammersmith and Fulham,296,E09000013,Hammersmith and Fulham,0,E12000007,London,8,E92000001,England,0\n297,270624,E09000014,Haringey,297,E09000014,Haringey,0,E12000007,London,8,E92000001,England,0\n298,250149,E09000015,Harrow,298,E09000015,Harrow,0,E12000007,London,8,E92000001,England,0\n299,257810,E09000016,Havering,299,E09000016,Havering,0,E12000007,London,8,E92000001,England,0\n300,304824,E09000017,Hillingdon,300,E09000017,Hillingdon,0,E12000007,London,8,E92000001,England,0\n301,270782,E09000018,Hounslow,301,E09000018,Hounslow,0,E12000007,London,8,E92000001,England,0\n302,239142,E09000019,Islington,302,E09000019,Islington,0,E12000007,London,8,E92000001,England,0\n303,156197,E09000020,Kensington and Chelsea,303,E09000020,Kensington and Chelsea,0,E12000007,London,8,E92000001,England,0\n304,175470,E09000021,Kingston upon Thames,304,E09000021,Kingston upon Thames,0,E12000007,London,8,E92000001,England,0\n305,325917,E09000022,Lambeth,305,E09000022,Lambeth,0,E12000007,London,8,E92000001,England,0\n306,303536,E09000023,Lewisham,306,E09000023,Lewisham,0,E12000007,London,8,E92000001,England,0\n307,206186,E09000024,Merton,307,E09000024,Merton,0,E12000007,London,8,E92000001,England,0\n308,352005,E09000025,Newham,308,E09000025,Newham,0,E12000007,London,8,E92000001,England,0\n309,303858,E09000026,Redbridge,309,E09000026,Redbridge,0,E12000007,London,8,E92000001,England,0\n310,196904,E09000027,Richmond upon Thames,310,E09000027,Richmond upon Thames,0,E12000007,London,8,E92000001,England,0\n311,317256,E09000028,Southwark,311,E09000028,Southwark,0,E12000007,London,8,E92000001,England,0\n312,204525,E09000029,Sutton,312,E09000029,Sutton,0,E12000007,London,8,E92000001,England,0\n313,317705,E09000030,Tower Hamlets,313,E09000030,Tower Hamlets,0,E12000007,London,8,E92000001,England,0\n314,276700,E09000031,Waltham Forest,314,E09000031,Waltham Forest,0,E12000007,London,8,E92000001,England,0\n315,326474,E09000032,Wandsworth,315,E09000032,Wandsworth,0,E12000007,London,8,E92000001,England,0\n316,255324,E09000033,Westminster,316,E09000033,Westminster,0,E12000007,London,8,E92000001,England,0\n317,142492,N09000001,Antrim and Newtownabbey,317,,,1,,,9,N92000002,Northern Ireland,1\n318,214090,N09000002,"Armagh City, Banbridge and Craigavon",318,,,1,,,9,N92000002,Northern Ireland,1\n319,341877,N09000003,Belfast,319,,,1,,,9,N92000002,Northern Ireland,1\n320,144246,N09000004,Causeway Coast and Glens,320,,,1,,,9,N92000002,Northern Ireland,1\n321,150679,N09000005,Derry City and Strabane,321,,,1,,,9,N92000002,Northern Ireland,1\n322,116835,N09000006,Fermanagh and Omagh,322,,,1,,,9,N92000002,Northern Ireland,1\n323,144381,N09000007,Lisburn and Castlereagh,323,,,1,,,9,N92000002,Northern Ireland,1\n324,138773,N09000008,Mid and East Antrim,324,,,1,,,9,N92000002,Northern Ireland,1\n325,147392,N09000009,Mid Ulster,325,,,1,,,9,N92000002,Northern Ireland,1\n326,180012,N09000010,"Newry, Mourne and Down",326,,,1,,,9,N92000002,Northern Ireland,1\n327,160864,N09000011,Ards and North Down,327,,,1,,,9,N92000002,Northern Ireland,1\n328,51400,S12000005,Clackmannanshire,328,,,2,,,9,S92000003,Scotland,2\n329,148790,S12000006,Dumfries and Galloway,329,,,2,,,9,S92000003,Scotland,2\n330,121840,S12000008,East Ayrshire,330,,,2,,,9,S92000003,Scotland,2\n331,105790,S12000010,East Lothian,331,,,2,,,9,S92000003,Scotland,2\n332,95170,S12000011,East Renfrewshire,332,,,2,,,9,S92000003,Scotland,2\n333,26830,S12000013,Na h-Eileanan Siar,333,,,2,,,9,S92000003,Scotland,2\n334,160340,S12000014,Falkirk,334,,,2,,,9,S92000003,Scotland,2\n335,235540,S12000017,Highland,335,,,2,,,9,S92000003,Scotland,2\n336,78150,S12000018,Inverclyde,336,,,2,,,9,S92000003,Scotland,2\n337,91340,S12000019,Midlothian,337,,,2,,,9,S92000003,Scotland,2\n338,95520,S12000020,Moray,338,,,2,,,9,S92000003,Scotland,2\n339,135280,S12000021,North Ayrshire,339,,,2,,,9,S92000003,Scotland,2\n340,22190,S12000023,Orkney Islands,340,,,2,,,9,S92000003,Scotland,2\n341,115270,S12000026,Scottish Borders,341,,,2,,,9,S92000003,Scotland,2\n342,22990,S12000027,Shetland Islands,342,,,2,,,9,S92000003,Scotland,2\n343,112550,S12000028,South Ayrshire,343,,,2,,,9,S92000003,Scotland,2\n344,319020,S12000029,South Lanarkshire,344,,,2,,,9,S92000003,Scotland,2\n345,94330,S12000030,Stirling,345,,,2,,,9,S92000003,Scotland,2\n346,227560,S12000033,Aberdeen City,346,,,2,,,9,S92000003,Scotland,2\n347,261470,S12000034,Aberdeenshire,347,,,2,,,9,S92000003,Scotland,2\n348,86260,S12000035,Argyll and Bute,348,,,2,,,9,S92000003,Scotland,2\n349,518500,S12000036,City of Edinburgh,349,,,2,,,9,S92000003,Scotland,2\n350,177790,S12000038,Renfrewshire,350,,,2,,,9,S92000003,Scotland,2\n351,89130,S12000039,West Dunbartonshire,351,,,2,,,9,S92000003,Scotland,2\n352,182140,S12000040,West Lothian,352,,,2,,,9,S92000003,Scotland,2\n353,116040,S12000041,Angus,353,,,2,,,9,S92000003,Scotland,2\n354,148750,S12000042,Dundee City,354,,,2,,,9,S92000003,Scotland,2\n355,108330,S12000045,East Dunbartonshire,355,,,2,,,9,S92000003,Scotland,2\n356,371910,S12000047,Fife,356,,,2,,,9,S92000003,Scotland,2\n357,151290,S12000048,Perth and Kinross,357,,,2,,,9,S92000003,Scotland,2\n358,626410,S12000049,Glasgow City,358,,,2,,,9,S92000003,Scotland,2\n359,340180,S12000050,North Lanarkshire,359,,,2,,,9,S92000003,Scotland,2\n360,69961,W06000001,Isle of Anglesey,360,W06000001,Isle of Anglesey,3,,,9,W92000004,Wales,3\n361,124178,W06000002,Gwynedd,361,W06000002,Gwynedd,3,,,9,W92000004,Wales,3\n362,117181,W06000003,Conwy,362,W06000003,Conwy,3,,,9,W92000004,Wales,3\n363,95330,W06000004,Denbighshire,363,W06000004,Denbighshire,3,,,9,W92000004,Wales,3\n364,155593,W06000005,Flintshire,364,W06000005,Flintshire,3,,,9,W92000004,Wales,3\n365,136126,W06000006,Wrexham,365,W06000006,Wrexham,3,,,9,W92000004,Wales,3\n366,72992,W06000008,Ceredigion,366,W06000008,Ceredigion,3,,,9,W92000004,Wales,3\n367,125055,W06000009,Pembrokeshire,367,W06000009,Pembrokeshire,3,,,9,W92000004,Wales,3\n368,187568,W06000010,Carmarthenshire,368,W06000010,Carmarthenshire,3,,,9,W92000004,Wales,3\n369,246466,W06000011,Swansea,369,W06000011,Swansea,3,,,9,W92000004,Wales,3\n370,142906,W06000012,Neath Port Talbot,370,W06000012,Neath Port Talbot,3,,,9,W92000004,Wales,3\n371,144876,W06000013,Bridgend,371,W06000013,Bridgend,3,,,9,W92000004,Wales,3\n372,132165,W06000014,Vale of Glamorgan,372,W06000014,Vale of Glamorgan,3,,,9,W92000004,Wales,3\n373,364248,W06000015,Cardiff,373,W06000015,Cardiff,3,,,9,W92000004,Wales,3\n374,240131,W06000016,Rhondda Cynon Taf,374,W06000016,Rhondda Cynon Taf,3,,,9,W92000004,Wales,3\n375,181019,W06000018,Caerphilly,375,W06000018,Caerphilly,3,,,9,W92000004,Wales,3\n376,69713,W06000019,Blaenau Gwent,376,W06000019,Blaenau Gwent,3,,,9,W92000004,Wales,3\n377,93049,W06000020,Torfaen,377,W06000020,Torfaen,3,,,9,W92000004,Wales,3\n378,94142,W06000021,Monmouthshire,378,W06000021,Monmouthshire,3,,,9,W92000004,Wales,3\n379,153302,W06000022,Newport,379,W06000022,Newport,3,,,9,W92000004,Wales,3\n380,132447,W06000023,Powys,380,W06000023,Powys,3,,,9,W92000004,Wales,3\n381,60183,W06000024,Merthyr Tydfil,381,W06000024,Merthyr Tydfil,3,,,9,W92000004,Wales,3\n')

Load the UK meta data.

Parameters

meta_data – uk meta data, defaults csv in the data dir of the package

Returns

pandas dataframe

genomicsurveillance.data.get_specimen(ltla_list: Optional[list] = None, api_call: Callable = <function get_ltla>)

Downloads the newest specimen data (newCasesBySpecimenDate) from the GOV UK Covid-19 api.

Parameters

ltla_list – A list of UK LTLA (lad19cd) codes, defaults to None in which case all LTLA codes are downloaded.

Returns

A (LTLA x dates) specimen table.