- Install our in-house customized nnUNet
https://github.com/ManskeLab/multichannel_attention_nnUNet.git
- Soft-tissue–stripped MCP joint images from HR-pQCT or SR-CBCT
- With MC and PP bone masks
- Atlas, located in:
ATLAS_MC=/work/manske_lab/images/hrpqct/mcp_atlasses/$MCP/atlas_mc_aligned.nii.gzATLAS_PP=/work/manske_lab/images/hrpqct/mcp_atlasses/$MCP/atlas_pp.nii.gz
/work/manske_lab/jobs/mcp_nnunet/nnUNet_results/Dataset001_hand/nnUNetTrainer__nnUNetPlans__3d_fullres/fold_all/checkpoint_best.pth
/work/manske_lab/jobs/mcp_edge/nnUNet_results/Dataset001_mcp/nnUNetTrainer__nnUNetPlans__3d_fullres/fold_all/checkpoint_final.pth
/work/manske_lab/jobs/mcp_closed_edge/nnUNet_results/Dataset001_mcp/nnUNetTrainerWithAttention__nnUNetPlans__3d_fullres/fold_all/checkpoint_final.pth
/work/manske_lab/jobs/mcp_erosion/nnUNet_results/Dataset001_mcp/nnUNetTrainerWithAttention__nnUNetPlans__3d_fullres/fold_all/checkpoint_final.pth
sbatch strip_mcp/predict_mcp.sh \
$MCP_IMAGE \
$OUTPUT_DIRUse the stripped image (output of above script $OUTPUT_DIR/stripped_<input_image>.nii.gz) as MCP_IMAGE.
sbatch edge_masking/predict_edge.sh \
$MCP_IMAGE \
$OUTPUT_DIRsbatch edge_masking/predict_closed_edge.sh \
$MCP_IMAGE \
$EDGE_MASK \
$OUTPUT_DIRsbatch registration/reg_atlas_to_img.sh \
$MCP_IMAGE \
$MC_OR_PP_BONE_MASK \
$ATLAS \
$OUTPUT_DIR \
$BONE_NAMEsbatch candidate_erosions/get_candidate_erosions.sh \
$MCP_IMAGE \
$REGISTERED_ATLAS \
$EDGE_MASK \
$CLOSED_EDGE_MASK \
$OUTPUT_DIRsbatch erosion_model/batch_predict.sh \
$PATH_TO_EROSIONS_ROI_DIR