Creates a contract specification that can be used to validate DAF data. This corresponds to Julia's DataAxesFormats.Contracts.Contract.
Examples
if (FALSE) { # \dontrun{
contract <- create_contract(
axes = list(
axis_contract("metacell", RequiredInput, "Metacell identifiers"),
axis_contract("gene", RequiredInput, "Gene identifiers")
),
data = list(
vector_contract(
"metacell", "type", RequiredInput, "character",
"Cell type per metacell"
),
matrix_contract(
"metacell", "gene", "UMIs", RequiredInput, "numeric",
"UMI counts matrix"
)
)
)
} # }