Opens an interactive Shiny application for creating, viewing and editing the cohort load metadata file (cohortsLoad.csv). This allows you to add, remove, and modify cohort metadata including labels, tags, and ATLAS IDs without manually editing the CSV file.
Usage
launchCohortsLoadEditor(cohortsFolderPath = here::here("inputs/cohorts"))Arguments
- cohortsFolderPath
Character. Path to the cohorts folder where cohortsLoad.csv will be saved. Defaults to "inputs/cohorts".
Details
Features:
View existing cohorts in a data table
Edit cells directly in the table
Add new cohort rows with form inputs
Delete selected rows
Save to cohortsLoad.csv
Input validation for required fields
Table Columns:
atlasId: ATLAS cohort definition ID (numeric)label: Cohort name/label (character) - editing updates file_name automaticallycategory: Broad category (character)subCategory: Sub-category (character)file_name: Auto-generated asjson/{label}.json(read-only)
Workflow:
Call this function to launch the editor app
Add/edit cohorts as needed
Click "Save Cohort Load File" to save to inputs/cohorts/cohortsLoad.csv
Use
importAtlasCohorts()to import cohorts from ATLASUse
loadCohortManifest()to load the imported cohorts