HRA-AMAP (Human Reference Atlas – Automated Mapping and Projection) enables automated projection of tissue blocks from a source organ to a new reference organ—typically aligned with the Human Reference Atlas (HRA)—as part of the HuBMAP initiative.
pip install git+https://github.com/cns-iu/hra-amap.git@main
Install BCPD (an essential component of this project)
Please follow the BCPD Installation Instructions if it is not already set up on your machine.
To contribute or develop this project locally, follow the steps below:
git clone https://github.com/cns-iu/hra-amap.git
cd hra-amap
npx github:hubmapconsortium/hra-rui-locations-processor help
pip install hatch
pip install -e .
hatch build
pip install dist/hra_amap-0.5.0-py3-none-any.whl
pip uninstall hra-amap
To register a new millitome organ, organize the necessary configuration and input files as described below.
Each millitome dataset should be placed in its own subdirectory under:
input-data/millitome/<organ-name>-<sex>-<source>/<version>/
Place the following files inside the
🔹 Stage 1: Generates the projected 3D model data
It takes a configuration file with RUI locations and donor metadata, and generates projection data that serves as input for Stage 2.
hra-amap-stage-1 \
--config <path_to_config.yaml> \
--output_path <path_to_output_directory>
🔹 Stage 2: Produces the final registered organ model
It takes the output from Stage 1 (a projection file), a configuration file, and produces the final registered organ models.
hra-amap-stage-2 \
--stage1_projection_path <path_to_projections.pickle.gz> \
--output_path <path_to_output_directory> \
--config <path_to_config.yaml>
🔹 Run All: Register All Available Millitome Organs This command automates both Stage 1 and Stage 2 for all available millitome configurations found in the input-data/millitome/ directory.
hra-amap-run