Creates a blank cohortsLoad.csv template file in the specified folder with proper column structure. Users can fill this file manually in Excel, Google Sheets, or any text editor, then place it in the inputs/cohorts folder.
Usage
createBlankCohortsLoadFile(cohortsFolderPath = here::here("inputs/cohorts"))Arguments
- cohortsFolderPath
Character. Path where the blank file will be created. Defaults to "inputs/cohorts". Creates the folder if it doesn't exist.
Details
Column Guide:
atlasId(numeric): The ATLAS cohort ID. Get this from ATLAS > Cohort Definitionslabel(character): Display name for your cohort (e.g., "Type 2 Diabetes patients")category(character): Broad grouping category (e.g., "Disease Populations", "Treatment Groups")subCategory(character): Optional sub-grouping within categoryfile_name(character): Path to JSON file (e.g., "json/t2dm_patients.json"). Note this is a placeholder will be replaced when you import from ATLAS.
Tips for Filling Out:
Each row represents one cohort
Use forward slashes (/) in file paths
Ensure file_name matches the JSON files you'll import from ATLAS
Logical sub-grouping in category/subCategory helps with organization
Save as UTF-8 CSV when exporting from Excel to avoid encoding issues
Workflow:
Call this function to create blank template
Open cohortsLoad.csv in your preferred spreadsheet application
Fill in your cohort metadata
Save the file
Use
importAtlasCohorts()to import the actual JSON definitions from ATLASUse
loadCohortManifest()to load into your study