Package: krt 0.1.0

krt: Author, Validate, and Export Key Resources Tables

A toolkit for creating, importing, validating, enriching, rendering, and depositing Key Resources Tables (KRTs). A KRT lists the resources used and generated in a study (antibodies, cell lines, organisms, chemicals, software, datasets, protocols, and more), each paired with a persistent identifier such as a Research Resource Identifier (RRID), a Digital Object Identifier (DOI), a repository accession, or a catalog number, so that resources are unambiguously identifiable and machine-actionable. The package models resources as typed, validated records around a neutral core schema and maps them to journal or funder output profiles, following the FAIR (Findable, Accessible, Interoperable, Reusable) principles of Wilkinson et al. (2016) <doi:10.1038/sdata.2016.18>. It normalizes and optionally resolves identifiers against public registries, extracts resources from manuscripts, and renders tables both in the STAR (Structured, Transparent, Accessible Reporting) Methods style used by Cell Press journals and in the style required by ASAP (Aligning Science Across Parkinson's), with an emphasis on transparency, reproducibility, and correct per-component licensing.

Authors:Ahmad Sofi-Mahmudi [aut, cre], Aligning Science Across Parkinson's [cph]

krt_0.1.0.tar.gz
krt_0.1.0.zip(r-4.7-any)krt_0.1.0.zip(r-4.6-any)krt_0.1.0.zip(r-4.5-any)
krt_0.1.0.tgz(r-4.6-any)krt_0.1.0.tgz(r-4.5-any)
krt_0.1.0.tar.gz(r-4.7-any)krt_0.1.0.tar.gz(r-4.6-any)
krt_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
krt/json (API)

# Install 'krt' in R:
install.packages('krt', repos = c('https://adamrsophie.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/choxos/krt/issues

Pkgdown/docs site:https://choxos.github.io

Datasets:

On CRAN:

Conda:

3.30 score 359 downloads 111 exports 17 dependencies

Last updated from:2ddfe2f0ec. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK160
source / vignettesOK199
linux-releaseOK190
macos-releaseOK209
macos-oldrelOK183
windows-develOK222
windows-releaseOK204
windows-oldrelOK192
wasm-releaseOK200

Exports:add_approvaladd_contributoradd_resourceall_fieldsappend_provenanceapply_mappingas_krtas_KRTas_prov_jsonas_rdfas_rocratecoerce_fieldcompose_identifierdetect_existing_krtexport_asapexport_citationexport_krtexport_tabularextract_candidatesextract_krtextract_llmfetch_fulltextfield_labelfield_specfields_for_typefind_duplicatesget_profileget_resourceid_parseimport_asapimport_krtimport_tabularis_krtis_pending_identifieris_profileis_resourcekrt_approval_typeskrt_as_dataframekrt_attributionkrt_audit_licenseskrt_clikrt_deposit_figsharekrt_deposit_zenodokrt_diffkrt_import_elabftwkrt_import_protocolsiokrt_llmkrt_mergekrt_metakrt_meta<-krt_newkrt_new_or_reusekrt_plugin_apikrt_preflightkrt_profile_attributionkrt_profile_infokrt_profile_licensekrt_profile_sourceskrt_profileskrt_provenancekrt_redaction_levelskrt_resource_typeskrt_roleskrt_statuseskrt_suggestkrt_vocabkrt_writekrt_write_attributionlaunch_krtlist_llm_providerslist_resolverslist_suggest_sourceslist_validatorsload_profilemapping_lossy_fieldsnew_approvalnew_contributornew_krtnew_resourcenormalize_idsparse_compound_identifierproject_profileread_input_textread_krt_jsonread_krt_yamlredact_krtredaction_defaultredaction_policyregister_llm_providerregister_profileregister_resolverregister_suggest_sourceregister_validatorremove_resourcerender_krtresolve_cellosaurusresolve_doiresolve_idresolve_orcidresolve_pubmedresolve_rorresolve_rridresource_signaturerrid_typescan_identifiersupdate_resourcevalidate_krtvalidate_plugin_contractvocab_matchwrite_krt_jsonwrite_krt_yaml

Dependencies:askpassclicurldigestgluehttr2jsonlitelifecyclemagrittropensslR6rlangsysvctrswithrxml2yaml

ASAP and STAR Methods profiles
Available profiles | Project to the ASAP layout | Lossy fields | Licensing and attribution | Round-trip through the ASAP format

Last update: 2026-09-12
Started: 2026-09-12

Extending krt with plugins
A custom validator | A custom institutional profile | A custom resolver or suggest source

Last update: 2026-09-12
Started: 2026-09-12

Extracting a KRT from a manuscript
Scan text for identifiers | Extract a table | Read structured documents | LLM extraction (optional)

Last update: 2026-09-12
Started: 2026-09-12

Getting started with krt
Build a table | Validate | Normalize and export | Render for a manuscript | Provenance

Last update: 2026-09-12
Started: 2026-09-12

Readme and manuals

Help Manual

Help pageTopics
Add, update, remove, or get a resource in a KRTadd_resource get_resource remove_resource update_resource
Append a provenance entry to a KRTappend_provenance
Map one resource to a profile's columnsapply_mapping
Coerce to and from the S4 'KRT' classas_KRT as_krt
Export the provenance graph as PROV-JSONas_prov_json
Export a KRT as RDF (JSON-LD or Turtle)as_rdf
Export a KRT as an RO-Crate 1.1 metadata documentas_rocrate
Coerce a KRT to a data frame (a rectangular view)as.data.frame.krt_tbl
Convert a validation report to a data frameas.data.frame.krt_validation_report
Coerce a field value to its declared type.coerce_field
Compose a compound identifier string from a resource's typed fieldscompose_identifier
Detect and parse a Key Resources Table embedded in a documentdetect_existing_krt
Export a KRT in the ASAP six-column formatexport_asap
Export citable resources as RIS or BibTeXexport_citation
Export a Key Resources Tableexport_krt krt_write
Export a KRT as a delimited table or spreadsheetexport_tabular
Extract candidate resources from text (regex engine)extract_candidates
Extract a Key Resources Table from a manuscriptextract_krt
Extract resources from text with an LLMextract_llm
Fetch manuscript full textfetch_fulltext
Key Resources Table field registryall_fields fields_for_type field_label field_registry field_spec
Find duplicate resources in a KRTfind_duplicates
Retrieve a registered profileget_profile
Parse and classify an identifier stringid_parse
Import an ASAP or Cell Press Key Resources Tableimport_asap
Import a Key Resources Table from a file or stringimport_krt
Import a generic tabular Key Resources Tableimport_tabular
Is a value the ASAP "identifier pending" placeholder?is_pending_identifier
Coerce a KRT's resources to a DataFrame (Bioconductor)krt_as_dataframe
Attribution text for a table's profilekrt_attribution
Audit the licenses of the package and its bundled assetskrt_audit_licenses
Run the krt command-line interfacekrt_cli
Deposit a KRT to Figsharekrt_deposit_figshare
Deposit a KRT to Zenodokrt_deposit_zenodo
Diff two Key Resources Tableskrt_diff
An example Key Resources Tablekrt_example
Import resources from an eLabFTW experimentkrt_import_elabftw
Import a protocol from protocols.iokrt_import_protocolsio
Configure an LLM for extractionformat.krt_llm krt_llm print.krt_llm
Merge Key Resources Tableskrt_merge
Get or set KRT metadatakrt_meta krt_meta<-
The krt plugin APIkrt_plugin_api
Extend krt with pluginskrt_plugins
Pre-flight release readiness check for a Key Resources Tablekrt_preflight
Describe a profilekrt_profile_info
Licensing of a profilekrt_profile_attribution krt_profile_license krt_profile_sources
List available profileskrt_profiles
Provenance of a KRTkrt_provenance
Suggest canonical names and identifiers from public authoritieskrt_suggest
The validation report objectkrt_validation_report
Access a KRT controlled vocabularykrt_vocab
KRT controlled vocabularieskrt_approval_types krt_new_or_reuse krt_redaction_levels krt_resource_types krt_roles krt_statuses krt_vocabularies
Write attribution to a filekrt_write_attribution
The 'KRT' S4 classKRT-class
Launch the interactive KRT editorlaunch_krt
List registered LLM providerslist_llm_providers
List registered resolver schemeslist_resolvers
List autocomplete sourceslist_suggest_sources
List registered validation ruleslist_validators
Load a profile from a directoryis_profile load_profile
Fields lost or folded when projecting to a profilemapping_lossy_fields
Create and add an ethics or governance approvaladd_approval new_approval
Create and add a contributoradd_contributor new_contributor
Create a Key Resources Tableis_krt krt_new krt_tbl new_krt
Create a resource recordis_resource new_resource
Normalize identifiers to canonical formsnormalize_ids
Parse a compound identifier string into typed fieldsparse_compound_identifier
Project a KRT onto a profile as a data frameproject_profile
Read manuscript text and tables from an inputread_input_text
Read a KRT from canonical JSONread_krt_json
Read a KRT from canonical YAMLread_krt_yaml
Redact sensitive fields for public sharingredact_krt
Default redaction strength for a profile's public exportsredaction_default
The default redaction policyredaction_policy
Register an LLM providerregister_llm_provider
Register an output profileregister_profile
Register an identifier resolverregister_resolver
Register an autocomplete sourceregister_suggest_source
Register a validation ruleregister_validator
Render a KRT as a formatted tablerender_krt
Resolve any identifier by detecting its schemeresolve_id
Resolve identifiers against public registriesresolvers resolve_cellosaurus resolve_doi resolve_orcid resolve_pubmed resolve_ror resolve_rrid
Normalized signature of a resourceresource_signature
Resource type implied by an RRIDrrid_type
Scan free text for research identifiersscan_identifiers
Summarize a KRTsummary.krt_tbl
Summarize a validation reportsummary.krt_validation_report
Validate a Key Resources Tablevalidate_krt
Check that an object satisfies a plugin contractvalidate_plugin_contract
Match a value against a controlled vocabularyvocab_match
Write a KRT to canonical JSONwrite_krt_json
Write a KRT to canonical YAMLwrite_krt_yaml