View source: R/brapi_put_trials_trialDbId.R
brapi_put_trials_trialDbId | R Documentation |
Update the details of an existing Trial
brapi_put_trials_trialDbId( con = NULL, trialDbId = "", active = NA, additionalInfo = list(), commonCropName = "", contacts = "", datasetAuthorships = "", documentationURL = "", endDate = "", externalReferences = "", programDbId = "", programName = "", publications = "", startDate = "", trialDescription = "", trialName = "", trialPUI = "" )
con |
list; required: TRUE; BrAPI connection object |
trialDbId |
character; required: TRUE; The internal trialDbId |
active |
logical; required: FALSE; Is this trial currently active; default: NA, other possible values: TRUE | FALSE |
additionalInfo |
list; required: FALSE; Additional arbitrary information. If provided use the following construct list(additionalProp1 = "string", additionalProp2 = "string", additionalProp3 = "string"). The Examples section shows an example on how to construct the
|
commonCropName |
character; required: FALSE; Common name for the crop associated with this trial. |
contacts |
data.frame; required: FALSE; A data.frame of contact entities
associated with this trial. The
The Examples section shows an example of how to construct the
|
datasetAuthorships |
data.frame; required: FALSE; A data.frame of
License and citation information for the data in this trial. The
The Examples section shows an example of how to construct the
|
documentationURL |
character; required: FALSE; A URL to the human readable documentation of this object. |
endDate |
character; required: FALSE; The date the trial will end or ended. Coded in the ISO 8601 standard extended format, where date, time and time zone information needs to be provided (check for example https://www.w3.org/TR/NOTE-datetime ). |
externalReferences |
data.frame; required: FALSE; A data.frame of
external reference ids. These are references to this piece of data in an
external system. Could be a simple string or a URI. The
The Examples section shows an example of how to construct the
|
programDbId |
character; required: FALSE; A program identifier, to which this trial belongs to. Exact match. |
programName |
character; required: FALSE; Human readable name of the program, to which this trial belongs to. Exact match. |
publications |
data.frame; required: FALSE; A data.frame of publications in which the trial is described. MIAPPE V1.1 (DM-9) Associated publication
The Examples section shows an example of how to construct the
|
startDate |
character; required: FALSE; The date the trial will start or started. Coded in the ISO 8601 standard extended format, where date, time and time zone information needs to be provided (check for example https://www.w3.org/TR/NOTE-datetime ). |
trialDescription |
character; required: FALSE; The human readable description of a trial. MIAPPE V1.1 (DM-4) Investigation description - Human-readable text describing the investigation in more detail. |
trialName |
character; required: FALS; The human readable name of a trial. MIAPPE V1.1 (DM-3) Investigation title - Human-readable string summarizing the investigation. |
trialPUI |
character; required: FALSE; A permanent identifier for a trial. Could be DOI or other URI formatted identifier. |
Update the details of an existing Trial
data.frame
Maikel Verouden
Other brapi-core:
brapi_get_commoncropnames()
,
brapi_get_lists_listDbId()
,
brapi_get_lists()
,
brapi_get_locations_locationDbId()
,
brapi_get_locations()
,
brapi_get_people_personDbId()
,
brapi_get_people()
,
brapi_get_programs_programDbId()
,
brapi_get_programs()
,
brapi_get_search_lists_searchResultsDbId()
,
brapi_get_search_locations_searchResultsDbId()
,
brapi_get_search_people_searchResultsDbId()
,
brapi_get_search_programs_searchResultsDbId()
,
brapi_get_search_studies_searchResultsDbId()
,
brapi_get_search_trials_searchResultsDbId()
,
brapi_get_seasons_seasonDbId()
,
brapi_get_seasons()
,
brapi_get_serverinfo()
,
brapi_get_studies_studyDbId()
,
brapi_get_studies()
,
brapi_get_studytypes()
,
brapi_get_trials_trialDbId()
,
brapi_get_trials()
,
brapi_post_lists_listDbId_items()
,
brapi_post_lists()
,
brapi_post_locations()
,
brapi_post_people()
,
brapi_post_programs()
,
brapi_post_search_lists()
,
brapi_post_search_locations()
,
brapi_post_search_people()
,
brapi_post_search_programs()
,
brapi_post_search_studies()
,
brapi_post_search_trials()
,
brapi_post_seasons()
,
brapi_post_studies()
,
brapi_post_trials()
,
brapi_put_lists_listDbId()
,
brapi_put_locations_locationDbId()
,
brapi_put_people_personDbId()
,
brapi_put_programs_programDbId()
,
brapi_put_seasons_seasonDbId()
,
brapi_put_studies_studyDbId()
Other Trials:
brapi_get_search_trials_searchResultsDbId()
,
brapi_get_trials_trialDbId()
,
brapi_get_trials()
,
brapi_post_search_trials()
,
brapi_post_trials()
## Not run: con <- brapi_db()$testserver con[["token"]] <- "YYYY" active <- TRUE additionalInfo <- list(additionalProp1 = "string", additionalProp2 = "string", additionalProp3 = "string") commonCropName <- "Grape" contacts <- data.frame(contactDbId = "trial_contact_1", email = "a.breeder@brapi.org", instituteName = "Plant Science Institute", name = "A. Breeder", orcid = "http://orcid.org/0000-0002-0607-8728", type = "Breeder") datasetAuthorships <- data.frame(datasetPUI = "doi:10.15454/312953986E3", license = "https://CreativeCommons.org/licenses/by/4.0/", publicReleaseDate = "2021-04-28", submissionDate = "2021-04-28") documentationURL <- "https://wiki.brapi.org" endDate <- "2021-04-28T12:34:13.494Z" externalReferences <- data.frame(referenceID = c("doi:10.155454/12341234", "http://purl.obolibrary.org/obo/ro.owl", "75a50e76"), referenceSource = c("DOI", "OBO Library", "Remote Data Collection Upload Tool")) programDbId <- "program2" programName <- "The Fake Tomatillo Breeding Program" publications <- data.frame(publicationPUI = "doi:10.15454/312953986E3", publicationReference = "Selby, BrAPI - An application programming interface for plant breeding applications, Bioinformatics, https://doi.org/10.1093/bioinformatics/190") startDate <- "2021-04-28T12:34:13.494Z" trialDescription <- "General drought resistance trial initiated in Peru before duplication in Africa" trialName <- "Peru Yield Trial 1" trialPUI <- "https://doi.org/101093190" out <- brapi_post_trials(con = con, active = active, additionalInfo = additionalInfo, commonCropName = commonCropName, contacts = contacts, datasetAuthorships = datasetAuthorships, documentationURL = documentationURL, endDate = endDate, externalReferences = externalReferences, programDbId = programDbId, programName = programName, publications = publications, startDate = startDate, trialDescription = trialDescription, trialName = trialName, trialPUI = trialPUI) trialDbId <- unique(out$trialDbId) brapi_get_trials_trialDbId(con = con, trialDbId = trialDbId) active <- FALSE additionalInfo <- list(dummyData = "True", example = "put_trials_trialDbId") commonCropName <- "Tomatillo" externalReferences <- data.frame(referenceID = c("doi:10.155454/12341234"), referenceSource = c("DOI")) brapi_put_trials_trialDbId(con = con, trialDbId = trialDbId, active = active, additionalInfo = additionalInfo, commonCropName = commonCropName, externalReferences = externalReferences) brapi_get_trials_trialDbId(con = con, trialDbId = trialDbId) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.