Write to the local database the probabilities associated with runs for a filter
Source :R/writeRunsFilter.R
writeRunsFilter.RdWrite to the local database the probabilities associated with runs for a filter
Utilisation
writeRunsFilter(
src,
filterName,
motusProjID = NA,
df,
overwrite = TRUE,
delete = FALSE
)Arguments
- src
SQLite connection (result of
tagme(XXX)orDBI::dbConnect(RSQLite::SQLite(), "XXX.motus"))- filterName
Character. Unique name given to the filter
- motusProjID
Character. Optional project ID attached to the filter in order to share with other users of the same project.
- df
Data frame. Containing
runID,motusTagIDand probability values to save in the local database- overwrite
Logical. When
TRUEensures that existing records matching the samefilterNameandrunIDget replaced- delete
Logical. When TRUE, removes all existing filter records associated with the
filterNameand re-inserts the ones contained in the dataframe. This option should be used if the dataframe provided contains the entire set of filters you want to save.