{
  "_id": "6a0f6649acfb0bcc41c5d417",
  "Package": "petrographer",
  "Title": "Petrographic Thin Section Analysis with Deep Learning",
  "Version": "0.0.0.9000",
  "Authors@R": "c(\nperson(\"Nicolas\", \"Gauthier\", , \"nicolas.gauthier@ufl.edu\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-2225-5827\")),\nperson(\"Ashley\", \"Rutkoski\", , \"arutkoski@ufl.edu\", role = c(\"aut\")))",
  "Description": "Automated petrographic analysis of thin section images\nusing deep learning models. Provides tools for training RF-DETR\ndetection and segmentation models, running predictions with\nSAHI (Slicing Aided Hyper Inference), calculating morphological\nproperties, and analyzing results. Supports both local and HPC\ntraining workflows with seamless R-Python integration via\nreticulate.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "quarto",
  "Config/testthat/edition": "3",
  "Remotes": [
    "flmnh-ai/hipergator"
  ],
  "URL": "https://flmnh-ai.github.io/petrographer/",
  "BugReports": "https://github.com/flmnh-ai/petrographer/issues",
  "SystemRequirements": "Python (>= 3.8), PyTorch, rfdetr, SAHI,\nsupervision, opencv-python, scikit-image, pycocotools",
  "Config/pak/sysreqs": "cmake make libicu-dev libpng-dev libuv1-dev\nlibopencv-dev libssl-dev python3 libx11-dev",
  "Repository": "https://flmnh-ai.r-universe.dev",
  "Date/Publication": "2026-04-21 17:27:24 UTC",
  "RemoteUrl": "https://github.com/flmnh-ai/petrographer",
  "RemoteRef": "HEAD",
  "RemoteSha": "cdaf5711967f2c2016b52ff728a364e441166f8e",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-21 09:57:01 UTC",
    "User": "root"
  },
  "Author": "Nicolas Gauthier [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-2225-5827>),\nAshley Rutkoski [aut]",
  "Maintainer": "Nicolas Gauthier <nicolas.gauthier@ufl.edu>",
  "MD5sum": "f9ab37a70a73f8b5a7e86908b6090fea",
  "_user": "flmnh-ai",
  "_type": "src",
  "_file": "petrographer_0.0.0.9000.tar.gz",
  "_fileid": "7fc57d1e6d8287f1984c8ad684c53d1a154333b2d8caea07cb7617b427c04caa",
  "_filesize": 1009636,
  "_sha256": "7fc57d1e6d8287f1984c8ad684c53d1a154333b2d8caea07cb7617b427c04caa",
  "_created": "2026-05-21T09:57:01.000Z",
  "_published": "2026-05-21T20:08:41.558Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77258904277,
      "time": 175,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "7132784116"
    },
    {
      "job": 77258904517,
      "time": 188,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7132788198"
    },
    {
      "job": 77258904353,
      "time": 163,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "7132780784"
    },
    {
      "job": 77258904213,
      "time": 188,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7132789388"
    },
    {
      "job": 77258903544,
      "time": 283,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7132725142"
    },
    {
      "job": 77258903632,
      "time": 131,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7146054768"
    },
    {
      "job": 77258904239,
      "time": 199,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "7132793025"
    },
    {
      "job": 77258904237,
      "time": 254,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "7132811963"
    },
    {
      "job": 77258904295,
      "time": 217,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7132799282"
    }
  ],
  "_buildurl": "https://github.com/r-universe/flmnh-ai/actions/runs/26218769776",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/flmnh-ai/petrographer",
  "_commit": {
    "id": "cdaf5711967f2c2016b52ff728a364e441166f8e",
    "author": "Nick Gauthier <nicolas.gauthier@ufl.edu>",
    "committer": "Nick Gauthier <nicolas.gauthier@ufl.edu>",
    "message": "Update .Rbuildignore\n",
    "time": 1776792444
  },
  "_maintainer": {
    "name": "Nicolas Gauthier",
    "email": "nicolas.gauthier@ufl.edu",
    "login": "nick-gauthier",
    "twitter": "@nick_gaut",
    "description": "Assistant Curator, AI for Bio/Cultural Diversity",
    "uuid": 12808168,
    "orcid": "0000-0002-2225-5827"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1",
      "role": "Depends"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "fs",
      "role": "Imports"
    },
    {
      "package": "glue",
      "role": "Imports"
    },
    {
      "package": "jsonlite",
      "role": "Imports"
    },
    {
      "package": "pins",
      "role": "Imports"
    },
    {
      "package": "processx",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "readr",
      "role": "Imports"
    },
    {
      "package": "reticulate",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "grid",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "hipergator",
      "role": "Suggests"
    },
    {
      "package": "here",
      "role": "Suggests"
    },
    {
      "package": "htmltools",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "patchwork",
      "role": "Suggests"
    },
    {
      "package": "png",
      "role": "Suggests"
    },
    {
      "package": "quarto",
      "role": "Suggests"
    },
    {
      "package": "reactable",
      "role": "Suggests"
    },
    {
      "package": "scico",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "tools",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    }
  ],
  "_owner": "flmnh-ai",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-30",
      "n": 5
    },
    {
      "week": "2025-31",
      "n": 6
    },
    {
      "week": "2025-36",
      "n": 41
    },
    {
      "week": "2025-37",
      "n": 4
    },
    {
      "week": "2025-38",
      "n": 1
    },
    {
      "week": "2025-41",
      "n": 9
    },
    {
      "week": "2025-42",
      "n": 17
    },
    {
      "week": "2026-17",
      "n": 4
    }
  ],
  "_tags": [],
  "_stars": 4,
  "_contributors": [
    {
      "user": "nick-gauthier",
      "count": 147,
      "uuid": 12808168
    },
    {
      "user": "griffin-pitts",
      "count": 2,
      "uuid": 110428226
    },
    {
      "user": "arutkoski",
      "count": 2,
      "uuid": 143046656
    }
  ],
  "_userbio": {
    "uuid": 116828111,
    "type": "organization",
    "name": "AI at the Florida Museum of Natural History",
    "description": "Code repository for the AI for Human Ecology Lab at the Florida Museum of Natural History, University of Florida"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/petrographer"
  },
  "_devurl": "https://github.com/flmnh-ai/petrographer",
  "_pkgdown": "https://flmnh-ai.github.io/petrographer/",
  "_searchresults": 13,
  "_quarto": true,
  "_topics": [
    "quarto"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/petrographer.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_exports": [
    "align_images",
    "analyze_segmentation_dir",
    "clean_temp_datasets",
    "confusion_matrix",
    "evaluate_model_sahi",
    "evaluate_training",
    "from_pretrained",
    "get_dataset_path",
    "get_population_stats",
    "get_training_dataset",
    "list_datasets",
    "list_models",
    "list_trained_models",
    "model_info",
    "pg_plot_annotations",
    "pg_plot_dataset_image",
    "pg_save_dataset_preview",
    "pin_dataset",
    "pin_model",
    "predict_image",
    "predict_images",
    "slice_dataset",
    "summarize_by_image",
    "train_model",
    "validate_dataset"
  ],
  "_help": [
    {
      "page": "align_images",
      "title": "Align thin section image pair",
      "topics": [
        "align_images"
      ]
    },
    {
      "page": "analyze_segmentation_dir",
      "title": "Run a segmentation batch workflow on a directory of images",
      "topics": [
        "analyze_segmentation_dir"
      ]
    },
    {
      "page": "clean_temp_datasets",
      "title": "Delete auto-pinned temp datasets",
      "topics": [
        "clean_temp_datasets"
      ]
    },
    {
      "page": "confusion_matrix",
      "title": "Compute a confusion matrix from SAHI predictions + COCO ground truth",
      "topics": [
        "confusion_matrix"
      ]
    },
    {
      "page": "evaluate_model_sahi",
      "title": "Evaluate detections with SAHI and COCO metrics",
      "topics": [
        "evaluate_model_sahi"
      ]
    },
    {
      "page": "evaluate_training",
      "title": "Evaluate model training",
      "topics": [
        "evaluate_training"
      ]
    },
    {
      "page": "from_pretrained",
      "title": "Load a pretrained RF-DETR model",
      "topics": [
        "from_pretrained"
      ]
    },
    {
      "page": "get_dataset_path",
      "title": "Get path to pinned dataset",
      "topics": [
        "get_dataset_path"
      ]
    },
    {
      "page": "get_population_stats",
      "title": "Get overall population statistics",
      "topics": [
        "get_population_stats"
      ]
    },
    {
      "page": "get_training_dataset",
      "title": "Get the dataset used to train a model",
      "topics": [
        "get_training_dataset"
      ]
    },
    {
      "page": "list_datasets",
      "title": "List pinned datasets",
      "topics": [
        "list_datasets"
      ]
    },
    {
      "page": "list_models",
      "title": "List available models",
      "topics": [
        "list_models"
      ]
    },
    {
      "page": "list_trained_models",
      "title": "List all locally trained models",
      "topics": [
        "list_trained_models"
      ]
    },
    {
      "page": "model_info",
      "title": "Get model info",
      "topics": [
        "model_info"
      ]
    },
    {
      "page": "pg_plot_annotations",
      "title": "Plot COCO annotations on an image",
      "topics": [
        "pg_plot_annotations"
      ]
    },
    {
      "page": "pg_plot_dataset_image",
      "title": "Plot a sample image from a dataset directory",
      "topics": [
        "pg_plot_dataset_image"
      ]
    },
    {
      "page": "pg_save_dataset_preview",
      "title": "Save a preview image for a dataset",
      "topics": [
        "pg_save_dataset_preview"
      ]
    },
    {
      "page": "pin_dataset",
      "title": "Pin a dataset to a board",
      "topics": [
        "pin_dataset"
      ]
    },
    {
      "page": "pin_model",
      "title": "Pin a trained RF-DETR model to a board",
      "topics": [
        "pin_model"
      ]
    },
    {
      "page": "predict_image",
      "title": "Predict objects in a single image",
      "topics": [
        "predict_image"
      ]
    },
    {
      "page": "predict_images",
      "title": "Predict objects in multiple images (directory)",
      "topics": [
        "predict_images"
      ]
    },
    {
      "page": "predict.PetrographyModel",
      "title": "Predict objects in an image",
      "topics": [
        "predict.PetrographyModel"
      ]
    },
    {
      "page": "slice_dataset",
      "title": "Slice COCO dataset for varying image sizes",
      "topics": [
        "slice_dataset"
      ]
    },
    {
      "page": "summarize_by_image",
      "title": "Summarize detections by image",
      "topics": [
        "summarize_by_image"
      ]
    },
    {
      "page": "train_model",
      "title": "Train a new petrography detection model",
      "topics": [
        "train_model"
      ]
    },
    {
      "page": "validate_dataset",
      "title": "Validate a COCO-style dataset directory",
      "topics": [
        "validate_dataset"
      ]
    }
  ],
  "_pkglogo": "https://github.com/flmnh-ai/petrographer/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/flmnh-ai/petrographer/raw/HEAD/README.md",
  "_rundeps": [
    "askpass",
    "bit",
    "bit64",
    "cli",
    "clipr",
    "cpp11",
    "crayon",
    "curl",
    "digest",
    "dplyr",
    "fs",
    "generics",
    "glue",
    "here",
    "hms",
    "httr",
    "jsonlite",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "mime",
    "openssl",
    "pillar",
    "pins",
    "pkgconfig",
    "png",
    "prettyunits",
    "processx",
    "progress",
    "ps",
    "purrr",
    "R6",
    "rappdirs",
    "Rcpp",
    "RcppTOML",
    "readr",
    "reticulate",
    "rlang",
    "rprojroot",
    "stringi",
    "stringr",
    "sys",
    "tibble",
    "tidyr",
    "tidyselect",
    "tzdb",
    "utf8",
    "vctrs",
    "vroom",
    "whisker",
    "withr",
    "yaml"
  ],
  "_vignettes": [
    {
      "source": "analyzing-predictions.qmd",
      "filename": "analyzing-predictions.html",
      "title": "Analyzing Predictions",
      "engine": "quarto::html",
      "headings": [],
      "created": "2026-04-21 15:53:56",
      "modified": "2026-04-21 15:53:56",
      "commits": 1
    },
    {
      "source": "training-models.qmd",
      "filename": "training-models.html",
      "title": "Training Custom Models",
      "engine": "quarto::html",
      "headings": [],
      "created": "2025-10-14 01:04:27",
      "modified": "2026-04-21 15:53:56",
      "commits": 2
    },
    {
      "source": "whole-slide-basics.qmd",
      "filename": "whole-slide-basics.html",
      "title": "Whole-Slide Prediction Basics",
      "engine": "quarto::html",
      "headings": [],
      "created": "2025-10-14 01:04:27",
      "modified": "2026-04-21 15:53:56",
      "commits": 3
    }
  ],
  "_score": 5.096214585346405,
  "_indexed": true,
  "_nocasepkg": "petrographer",
  "_universes": [
    "flmnh-ai",
    "nick-gauthier"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.0.9000",
      "date": "2026-05-21T09:59:23.000Z",
      "distro": "noble",
      "commit": "cdaf5711967f2c2016b52ff728a364e441166f8e",
      "fileid": "e9d9d7ca139dabbadf37ac7233599c52569c54c76c1bad17904c241b75db1de3",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/flmnh-ai/actions/runs/26218769776"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.0.0.9000",
      "date": "2026-05-21T09:59:29.000Z",
      "distro": "noble",
      "commit": "cdaf5711967f2c2016b52ff728a364e441166f8e",
      "fileid": "84b5111749b1f9551ba275bcd4478d2509ba112b5894636a3e657c5f92b27878",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/flmnh-ai/actions/runs/26218769776"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.0.9000",
      "date": "2026-05-21T09:59:26.000Z",
      "commit": "cdaf5711967f2c2016b52ff728a364e441166f8e",
      "fileid": "6b12cfec8f95b60be46a6c458c039dd5f5f1c6100d9248986e1798abbeacf22a",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/flmnh-ai/actions/runs/26218769776"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.0.0.9000",
      "date": "2026-05-21T09:59:39.000Z",
      "commit": "cdaf5711967f2c2016b52ff728a364e441166f8e",
      "fileid": "b1f55f93cefee5c927bdff30251d4e9efdc6e4dbf2a4984f4f70adedefc6ed8b",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/flmnh-ai/actions/runs/26218769776"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.0.9000",
      "date": "2026-05-21T20:08:21.000Z",
      "commit": "cdaf5711967f2c2016b52ff728a364e441166f8e",
      "fileid": "fb6b2037310a5a8f6e91723d83ca8ebbb9ade64f7817784797e50225271b60a5",
      "status": "success",
      "buildurl": "https://github.com/r-universe/flmnh-ai/actions/runs/26218769776"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.0.9000",
      "date": "2026-05-21T09:58:52.000Z",
      "commit": "cdaf5711967f2c2016b52ff728a364e441166f8e",
      "fileid": "4475d64b3fd4c4b00c098214e8899a4b2d5c2d3581e3fdfa4fcad159965011c7",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/flmnh-ai/actions/runs/26218769776"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.0.9000",
      "date": "2026-05-21T09:59:11.000Z",
      "commit": "cdaf5711967f2c2016b52ff728a364e441166f8e",
      "fileid": "7e2920e94bfbbff38d5e0634c38f0310fb65e7e8bce6420ea58863c89ce30518",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/flmnh-ai/actions/runs/26218769776"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.0.0.9000",
      "date": "2026-05-21T09:58:59.000Z",
      "commit": "cdaf5711967f2c2016b52ff728a364e441166f8e",
      "fileid": "13a06ef7af15f26dadee337e5a0731665d7c6f9a6bf3700702759729d756b676",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/flmnh-ai/actions/runs/26218769776"
    }
  ]
}