View source: R/brapi_post_studies.R
brapi_post_studies | R Documentation |
Create new Studies.
brapi_post_studies( con = NULL, active = NA, additionalInfo = list(), commonCropName = "", contacts = "", culturalPractices = "", dataLinks = "", documentationURL = "", endDate = "", environmentParameters = "", experimentalDesign = list(), externalReferences = "", growthFacility = list(), lastUpdate = list(), license = "", locationDbId = "", locationName = "", observationLevels = "", observationUnitsDescription = "", seasons = "", startDate = "", studyCode = "", studyDescription = "", studyName = "", studyPUI = "", studyType = "", trialDbId = "", trialName = "" )
con |
list; required: TRUE; BrAPI connection object |
active |
logical; required: FALSE; Is this study 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 study. |
contacts |
data.frame; required: FALSE; A data.frame of contact entities
associated with this study. The
The Examples section shows an example of how to construct the
|
culturalPractices |
character; required: FALSE; MIAPPE V1.1 (DM-28) Cultural practices - General description of the cultural practices of the study. |
dataLinks |
data.frame; required: FALSE; A data.frame of links to extra
data files associated with this study. Extra data could include notes,
images, and reference data. 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 study 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 ). MIAPPE V1.1 (DM-15) End date of study - Date and, if relevant, time when the experiment ended. |
environmentParameters |
data.frame; required: FALSE; A data.frame of Environmental parameters that were kept constant throughout the study and did not change between observation units. MIAPPE V1.1 (DM-57) Environment
The Examples section shows an example of how to construct the
|
experimentalDesign |
list; required: FALSE; The experimental and
statistical design full description plus a category PUI taken from crop
research ontology or agronomy ontology. The
The Examples section shows an example of how to construct the
|
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
|
growthFacility |
list; required: FALSE; Short description of the
facility in which the study was carried out. The
The Examples section shows an example of how to construct the
|
lastUpdate |
list; required: FALSE; The date and time when this study
was last modified. The
The Examples section shows an example of how to construct the
|
license |
character; required: FALSE; The usage license associated with the study data. |
locationDbId |
character; required: FALSE; The unique identifier for a location. |
locationName |
character; required: FALSE; A human readable name for this location. MIAPPE V1.1 (DM-18) Experimental site name - The name of the natural site, experimental field, greenhouse, phenotyping facility, etc. where the experiment took place. |
observationLevels |
data.frame; required: FALSE; A data.frame of
Observation levels, which indicate the granularity level at which the
measurements are taken. The
The Examples section shows an example of how to construct the
|
observationUnitsDescription |
character; required: FALSE; MIAPPE V1.1 (DM-25) Observation unit description - General description of the observation units in the study. |
seasons |
vector of type character; required: FALSE; seasonDbId value(s) over which this study was performed.; default: "", when using multiple values supply as c("value1", "value2"). |
startDate |
character; required: FALSE; The date the study 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 ). MIAPPE V1.1 (DM-14) Start date of study - Date and, if relevant, time when the experiment started. |
studyCode |
character; required: FALSE; A short human readable code for a study. |
studyDescription |
character; required: FALSE; The description of this study. MIAPPE V1.1 (DM-13) Study description - Human-readable text describing the study. |
studyName |
character; required: FALSE; The human readable name for a study. MIAPPE V1.1 (DM-12) Study title - Human-readable text summarizing the study. |
studyPUI |
character; required: FALSE; A permanent unique identifier associated with this study data. For example, a URI or DOI. |
studyType |
character; required: FALSE; The type of study being performed. ex. "Yield Trial", etc. |
trialDbId |
character; required: FALSE; The ID which uniquely identifies a trial. |
trialName |
character; required: FALSE; The human readable name of a trial. |
Create new studies, where the studDbId
is generated by the server.
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_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()
,
brapi_put_trials_trialDbId()
Other Studies:
brapi_get_search_studies_searchResultsDbId()
,
brapi_get_studies_studyDbId()
,
brapi_get_studies()
,
brapi_get_studytypes()
,
brapi_post_search_studies()
,
brapi_put_studies_studyDbId()
## Not run: con <- brapi_db()$testserver con[["token"]] <- "YYYY" active <- TRUE additionalInfo <- list(additionalProp1 = "string", additionalProp2 = "string", additionalProp3 = "string") commonCropName <- "Tomatillo" 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") culturalPractices <- "Irrigation was applied according needs during summer to prevent water stress." dataLinks <- data.frame(dataFormat = "Image Archive", description = "Raw drone images collected for this study", fileFormat = "application/zip", name = "image-archive.zip", provenance = "Image Processing Pipeline, built at the University of Antarctica: https://github.com/antarctica/pipeline", scientificType = "Environmental", url = "https://brapi.org/image-archive.zip", version = "1.0.3") documentationURL <- "https://wiki.brapi.org" endDate <- "2021-04-19T12:34:13.494Z" environmentParameters <- data.frame(description = "the soil type was clay", parameterName = "soil type", parameterPUI = "PECO:0007155", unit = "pH", unitPUI = "PECO:0007059", value = "clay soil", valuePUI = "ENVO:00002262") experimentalDesign <- list(PUI = "CO_715:0000145", description = "Lines were repeated twice at each location using a complete block design. In order to limit competition effects, each block was organized into four sub-blocks corresponding to earliest groups based on a prior information.") 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")) growthFacility <- list(PUI = "CO_715:0000162", description = "field environment condition, greenhouse") lastUpdate <- list(timestamp = "2021-04-19T12:34:13.494Z", version = "1.2.3") license <- "MIT License" locationDbId <- "location_01" locationName <- "Location 1" observationLevels <- data.frame(levelName = c("field", "block", "plot"), levelOrder = c(0, 1, 2)) observationUnitsDescription <- "Observation units consisted in individual plots themselves consisting of a row of 15 plants at a density of approximately six plants per square meter." seasons <- c("spring_2012", "summer_2012") startDate <- "2021-04-19T12:34:13.494Z" studyCode <- "Tomatillo_Yield_Spring_2012" studyDescription <- "This is a yield study for Spring 2012" studyName <- "INRA's Tomatillo Genetic Resources Observation at Peru" studyPUI <- "doi:10.155454/12349537312" studyType <- "Phenotyping" trialDbId <- "trial1" trialName <- "Peru Yield Trial 1" brapi_post_studies(con = con, active = active, additionalInfo = additionalInfo, commonCropName = commonCropName, contacts = contacts, culturalPractices = culturalPractices, dataLinks = dataLinks, documentationURL = documentationURL, endDate = endDate, environmentParameters = environmentParameters, experimentalDesign = experimentalDesign, externalReferences = externalReferences, growthFacility = growthFacility, lastUpdate = lastUpdate, license = license, locationDbId = locationDbId, locationName = locationName, observationLevels = observationLevels, observationUnitsDescription = observationUnitsDescription, seasons = seasons, startDate = startDate, studyCode = studyCode, studyDescription = studyDescription, studyName = studyName, studyPUI = studyPUI, studyType = studyType, trialDbId = trialDbId, trialName = trialName) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.