cd$work_dir# Unique identifier for your collectionCOLLECTION_ID="walsh2025-human-cortex-fb080-O1"# change this to reflect your dataset namePLATFORM="generic"# platform informationSCALE=1# coordinate to micrometer scaling factor# LDA parameterstrain_width=24# define LDA training hexagon width (comma-separated if multiple widths are applied)n_factor=96,192# define number of factors in LDA training (comma-separated if multiple n-factor values are provided)
Choose one setup mode and complete that setup only.
After setup, both modes use the same pipeline commands via a cartloader_cmd wrapper.
Set Up Environment
1 2 3 4 5 6 7 8 910111213141516171819202122
# ====# Replace each placeholder with the actual path on your system. # ====work_dir=/path/to/work/directory# path to work directory that contains the downloaded input datacd$work_dir# Define paths to required binaries and resourcesspatula=/path/to/spatula/binary# path to spatula executablepunkst=/path/to/punkst/binary# path to FICTURE2 (punkst) executabletippecanoe=/path/to/tippecanoe/binary# path to tippecanoe executablepmtiles=/path/to/pmtiles/binary# path to pmtiles executableaws=/path/to/aws/cli/binary# path to AWS CLI binary# (Optional) Define path to color map. cmap=/path/to/color/map# Path to fixed color map. `CartLoader` includes one at cartloader/assets/fixed_color_map_256.tsv.# Number of jobsn_jobs=10# If not specified, the number of jobs defaults to 1.# Activate the bioconda environment
condaactivateENV_NAME# replace ENV_NAME with your conda environment name
Define command wrapper
12345678
# Local pathsraw_root="${work_dir}/raw"out_root="${work_dir}"# Use the same command shape as Docker mode
cartloader_cmd(){cartloader"$@"}
Set Up Environment
Fixed paths in the Docker Image
Tools and dependencies have fixed paths in the Docker image (for example, /usr/local/bin/pmtiles).
DO NOT modify paths of tools and dependencies manually.
1 2 3 4 5 6 7 8 9101112131415161718192021
# ====# Replace user-specific placeholders with actual paths on your system.# ====work_dir=/path/to/work/directory# path to work directory that contains the downloaded input datacd$work_dir# The following paths are fixed inside Docker. Do not modify them.spatula=/app/cartloader/submodules/spatula/bin/spatula# path to spatula executablepunkst=/app/cartloader/submodules/punkst# path to FICTURE2 (punkst) executabletippecanoe=/usr/local/bin/tippecanoe# path to tippecanoe executablepmtiles=/usr/local/bin/pmtiles# path to pmtiles executableaws=/usr/local/bin/aws# path to AWS CLI binary# (Optional) Define path to color map. cmap=/app/cartloader/assets/fixed_color_map_256.tsv# Path to fixed color map. `CartLoader` includes one at cartloader/assets/fixed_color_map_256.tsv.# Number of jobsn_jobs=10# If not specified, the number of jobs defaults to 1.# Docker tag docker_tag=20260306
Define command wrapper
1 2 3 4 5 6 7 8 91011
# Host work directory is mounted to /data inside the containerraw_root="/data/raw"out_root="/data"# Use the same command shape as local mode
cartloader_cmd(){dockerrun--rm\-v"${work_dir}:/data"\weiqiuc/cartloader:${docker_tag}\"$@"}
Warning
All remaining commands are identical for local and Docker runs because they call cartloader_cmd.
Upload generated outputs to AWS S3, either as one collection or one sample at a time. See upload_aws for options.
123456
AWS_DIR=s3://your-bucket/${COLLECTION_ID}# Recommend using COLLECTION_ID as the directory name.
cartloader_cmdupload_aws\--in-dir"${out_root}/cartload2"\--s3-dir"${AWS_DIR}"\--in-list"${out_root}/input.tsv"
Below uses FB080_O1a as an example.
12345
AWS_DIR=s3://your-bucket/${COLLECTION_ID}# Recommend using COLLECTION_ID as the directory name.
cartloader_cmdupload_aws\--in-dir"${out_root}/cartload2/FB080_O1a"\--s3-dir"${AWS_DIR}/fb080-o1a"