Description Super classes Methods Examples
SPIM private data
SPIM private data
ukcovidtools::PassthroughFilesystemCache -> ukcovidtools::DataProvider -> ukcovidtools::CovidTimeseriesProvider -> SPIMDatasetProvider
new()SPIMDatasetProvider$new(providerController, fileProvider, ...)
getPaths()Search a file path for the
SPIMDatasetProvider$getPaths(...)
path- path to the line list file
raw line list data set
getLatest()SPIMDatasetProvider$getLatest(search)
getNewerThan()SPIMDatasetProvider$getNewerThan(search, date = as.Date("2020-01-01"))getSpecificDates()SPIMDatasetProvider$getSpecificDates(search, dates)
getLatestRawFile()SPIMDatasetProvider$getLatestRawFile(filter, to = getwd())
getOneOneOne()Load 111 data
SPIMDatasetProvider$getOneOneOne(...)
a covidTimeseriesFormat dataframe
getOneOneOneLineList()SPIMDatasetProvider$getOneOneOneLineList(dateFrom = Sys.Date() - 28, ...)
getOneOneOneIncidence()SPIMDatasetProvider$getOneOneOneIncidence(dateFrom = Sys.Date() - 28, ...)
getDeathsLineList()Load line list
SPIMDatasetProvider$getDeathsLineList(...)
path- path to the line list file
raw line list data set
getDeathsLineListIncidence()Load deaths data from linelist - does not preserve ethnicity
SPIMDatasetProvider$getDeathsLineListIncidence(
ageBreaks = NULL,
deathOrReport = "death",
cutoff = 28,
subgroup = NULL,
gender = FALSE,
filterExpr = !(is.na(death_type28) & is.na(death_type60cod) & is.na(covidcod)),
codeTypes = c("CTRY", "NHSER"),
truncate = NULL,
...
)ageBreaks- a list of ages which form the cut points for breaking continuous ages into ranges (or NULL for a single age category)
a covidTimeseriesFormat dataframe
getVoc351LineList()SPIMDatasetProvider$getVoc351LineList(...)
getVAMLineList()SPIMDatasetProvider$getVAMLineList(...)
getCTASLineList()SPIMDatasetProvider$getCTASLineList(...)
getImmunizationLineList()Load immunizations line list
SPIMDatasetProvider$getImmunizationLineList(...)
raw line list data set
getImmunizationLineListIncidence()Load incidence from line list
SPIMDatasetProvider$getImmunizationLineListIncidence( ll = NULL, ageBreaks = NULL, filterExpr = NULL, subgroup = "string_dose_number", ... )
ageBreaks- a list of ages which form the cut points for breaking continuous ages into ranges (or NULL for a single age category)
a covidTimeseriesFormat dataframe
getImmunizationFraction()SPIMDatasetProvider$getImmunizationFraction(ageBreaks = NULL, ...)
getSGeneLineList()Load line list
SPIMDatasetProvider$getSGeneLineList(...)
raw line list data set Interpret S gene status according to various cut off values function to help interpret S gene CT values in context of N gene and ORF gene to give S gene status. With the defaults this produces the same result as the sgtf_30 column in the source SGTF line list Defaults are S:30,ORF:30,N:30,Control:Inf
interpretSGene()SPIMDatasetProvider$interpretSGene( sGeneLineList, S_CT = 30, ORF1ab_CT = 30, N_CT = 30, Control_CT = Inf, ... )
sGeneLineList- a dataframe includeing
S_CT- S gene detected when P2CH3CQ <= this value
ORF1ab_CT- ORF1ab gene detected when P2CH1CQ <= this value
N_CT- N gene detected when P2CH2CQ <= this value
Control_CT- control sample is positive when P2CH4CQ <= this value
- the same dataframe with additional columns including "sGene" and "result"
coxData = coxData %>% interpretSGene()
getSGeneEras()SPIMDatasetProvider$getSGeneEras( cutoff = 28, S_CT = 30, ORF1ab_CT = 30, N_CT = 30, Control_CT = Inf, ... )
getSDropoutFreqency()SPIMDatasetProvider$getSDropoutFreqency(
codeTypes = c("NHSER"),
ageBreaks = NULL,
S_CT = 30,
ORF1ab_CT = 30,
N_CT = 30,
equivocal.rm = TRUE,
window = 7,
ll = NULL,
sgll = NULL,
...
)getLineList()Load line list
SPIMDatasetProvider$getLineList(...)
raw line list data set
augmentLineListWithLSOA()SPIMDatasetProvider$augmentLineListWithLSOA( ll, ltlaCodeCol = "LTLA_code", imdRankCol = "imd_rank" )
getLineListIncidence()Load incidence from line list
SPIMDatasetProvider$getLineListIncidence(
ll = NULL,
ageBreaks = NULL,
gender = FALSE,
specimenOrReport = "specimen",
subgroup = "pillar",
filterExpr = NULL,
codeTypes = c("CTRY", "NHSER"),
truncate = NULL,
...
)ageBreaks- a list of ages which form the cut points for breaking continuous ages into ranges (or NULL for a single age category)
a covidTimeseriesFormat dataframe
getInfectionEpisodes()Combine line list and S-gene line list to get a list of infection episodes
this defines how long between tests before two tests are regarded as a new episode. if the tests are sgtf equivocal double this is allowed. calculate the individual episodes of covid resulting from runs of sequential positive tests <28 days apart.
SPIMDatasetProvider$getInfectionEpisodes( cutoff = 28, S_CT = 30, ORF1ab_CT = 30, N_CT = 30, Control_CT = Inf, ... )
cutoff- the time gap between sequential tests after which two tests are said to be from a new episode
S_CT- S gene detected when P2CH3CQ <= this value
ORF1ab_CT- ORF1ab gene detected when P2CH1CQ <= this value
N_CT- N gene detected when P2CH2CQ <= this value
Control_CT- control sample is positive when P2CH4CQ <= this value
a covidTimeseriesFormat dataframe
getNegatives()SPIMDatasetProvider$getNegatives(
codeTypes = c("CTRY", "NHSER"),
truncate = NULL,
...
)getSeroprevalence()Load the seroprevalance file
SPIMDatasetProvider$getSeroprevalence(...)
raw FF100 data set
getSeroprevalenceTestIncidence()Load seroprevalence data from linelist
SPIMDatasetProvider$getSeroprevalenceTestIncidence(ageBreaks = NULL, ...)
ageBreaks- a list of ages which form the cut points for breaking continuous ages into ranges (or NULL for a single age category)
a covidTimeseriesFormat dataframe
getFF100()Load ff100 file
SPIMDatasetProvider$getFF100()
raw FF100 data set
getCHESS()Load the CHESS dataset from a path
SPIMDatasetProvider$getCHESS()
path- a path to the chess csv file
raw CHESS data set
getSARI()Load the CHESS dataset from a path
SPIMDatasetProvider$getSARI()
path- a path to the chess csv file
raw CHESS data set
getCHESSSummary()Load Chess summary file
SPIMDatasetProvider$getCHESSSummary()
getSARISummary()Load Sari summary file
SPIMDatasetProvider$getSARISummary(truncate = NULL, ...)
getFourNationsCases()SPIMDatasetProvider$getFourNationsCases(truncate = NULL, ...)
getSPIMextract()Load the SPI-M aggregated data spreadsheet
SPIMDatasetProvider$getSPIMextract(truncate = NULL, ...)
a covidTimeseriesFormat dataframe
getTheSPIMFireHose()Load the SPI-M and public data
SPIMDatasetProvider$getTheSPIMFireHose(...)
a covidTimeseriesFormat dataframe
clone()The objects of this class are cloneable with this method.
SPIMDatasetProvider$clone(deep = FALSE)
deepWhether to make a deep clone.
1 2 3 4 5 | ## ------------------------------------------------
## Method `SPIMDatasetProvider$interpretSGene`
## ------------------------------------------------
coxData = coxData %>% interpretSGene()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.