{
  "_id": "6aae729b3d719c1f8407cf7a",
  "Package": "fibermargin",
  "Type": "Package",
  "Title": "Categorical Mask and Spatial Label Refinement",
  "Version": "0.1.0",
  "Authors@R": "person(given = \"Stefano\", family = \"Cacciatore\",\nemail = \"tkcaccia@gmail.com\", role = c(\"aut\", \"cre\", \"cph\"))",
  "Description": "Implements 'FiberMargin', a deterministic training-free\noperator for repairing categorical masks and spatial labels\nfrom coordinates and labels alone. Its primary multiclass\noperator uses rotated space-filling-curve charts and two-sided\nclass enclosure at one fixed geometric transport range. A\nclass-balanced, isolation-protected chart-disagreement rule\nprovides pointwise repair decisions and audit scores. An\nauxiliary nearest-neighbour ballot handles binary masks. The\n'C++' engine supports two- and three-dimensional coordinates,\nremoves constant axes independently within each specimen, and\nreuses one deterministic CPU worker budget without nested\nprocess pools. Reproducible mask corruptions, planar and\nvolumetric simulators, damage-aware evaluation, and compact\nlicensed human dorsolateral prefrontal cortex and colorectal\ncancer benchmarks support assessment.",
  "License": "MIT + file LICENSE",
  "URL": "https://tkcaccia.github.io/fibermargin/,\nhttps://github.com/tkcaccia/fibermargin",
  "BugReports": "https://github.com/tkcaccia/fibermargin/issues",
  "Encoding": "UTF-8",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Config/roxygen2/version": "8.0.0",
  "Repository": "https://tkcaccia.r-universe.dev",
  "Date/Publication": "2026-09-10 16:54:21 UTC",
  "RemoteUrl": "https://github.com/tkcaccia/fibermargin",
  "RemoteRef": "HEAD",
  "RemoteSha": "f8344ac3499f71101ae7778b430024043b4015e5",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-09-19 11:21:50 UTC",
    "User": "root"
  },
  "Author": "Stefano Cacciatore [aut, cre, cph]",
  "Maintainer": "Stefano Cacciatore <tkcaccia@gmail.com>",
  "_user": "tkcaccia",
  "_type": "src",
  "_file": "fibermargin_0.1.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/073b5946076483af0f4fc3675a4a04e5402236e6c12f46c66986e5a40145f07a",
  "_filesize": 3333762,
  "_sha256": "073b5946076483af0f4fc3675a4a04e5402236e6c12f46c66986e5a40145f07a",
  "_expires": "2026-12-28T11:31:37.000Z",
  "_created": "2026-09-19T11:21:50.000Z",
  "_published": "2026-09-19T11:31:39.337Z",
  "_jobs": [
    {
      "job": 105888852353,
      "time": 130,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10583650610"
    },
    {
      "job": 105888852370,
      "time": 154,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10583308027"
    },
    {
      "job": 105888852479,
      "time": 124,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10583980245"
    },
    {
      "job": 105888852375,
      "time": 156,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10583382876"
    },
    {
      "job": 105888852355,
      "time": 82,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10583685763"
    },
    {
      "job": 105888852466,
      "time": 266,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10584180289"
    },
    {
      "job": 105888852367,
      "time": 108,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10583118485"
    },
    {
      "job": 105888852398,
      "time": 187,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10583343098"
    },
    {
      "job": 105888446711,
      "time": 204,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10583575556"
    },
    {
      "job": 105888852333,
      "time": 122,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "10584075143"
    },
    {
      "job": 105888852360,
      "time": 203,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10583183185"
    },
    {
      "job": 105888852380,
      "time": 157,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10583705609"
    },
    {
      "job": 105888852469,
      "time": 101,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10583735556"
    },
    {
      "job": 105888852364,
      "time": 210,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10583367941"
    },
    {
      "job": 105888852413,
      "time": 122,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10583507644"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/tkcaccia/actions/runs/35439747327",
  "_status": "success",
  "_upstream": "https://github.com/tkcaccia/fibermargin",
  "_commit": {
    "id": "f8344ac3499f71101ae7778b430024043b4015e5",
    "author": "tkcaccia <tkcaccia@gmail.com>",
    "committer": "tkcaccia <tkcaccia@gmail.com>",
    "message": "Address CRAN resubmission feedback\n",
    "time": 1789059261
  },
  "_maintainer": {
    "name": "Stefano Cacciatore",
    "email": "tkcaccia@gmail.com",
    "login": "tkcaccia",
    "description": "",
    "uuid": 15799157
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "parallel",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "dplyr",
      "role": "Suggests"
    },
    {
      "package": "tidyr",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "tkcaccia",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-29",
      "n": 5
    },
    {
      "week": "2026-30",
      "n": 4
    },
    {
      "week": "2026-35",
      "n": 4
    },
    {
      "week": "2026-37",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v0.1.0",
      "date": "2026-08-27"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "tkcaccia",
      "count": 16,
      "uuid": 15799157
    }
  ],
  "_userbio": {
    "uuid": 15799157,
    "type": "user",
    "name": "tkcaccia",
    "followers": 9
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/fibermargin"
  },
  "_devurl": "https://github.com/tkcaccia/fibermargin",
  "_pkgdown": "https://tkcaccia.github.io/fibermargin/",
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/fibermargin.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/tkcaccia/fibermargin",
  "_realowner": "tkcaccia",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-09-18"
    }
  ],
  "_exports": [
    "available_spatial_benchmarks",
    "benchmark_spatial_refiners",
    "clean_categorical_mask",
    "corrupt_categorical_mask",
    "evaluate_mask_cleaning",
    "evaluate_spatial_refinement",
    "load_spatial_benchmark",
    "refine_spatial_labels",
    "simulate_complex_spatial_domains",
    "simulate_gradient_regions",
    "simulate_spatial_clusters",
    "simulate_spatial_domains",
    "simulate_volumetric_domains",
    "spatial_benchmark"
  ],
  "_datasets": [
    {
      "name": "colorectal_benchmark",
      "title": "Human CRC Visium HD refinement benchmark",
      "object": "colorectal_benchmark",
      "file": "colorectal_benchmark.rda",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "dlpfc_benchmark",
      "title": "Human DLPFC Visium refinement benchmark",
      "object": "dlpfc_benchmark",
      "file": "dlpfc_benchmark.rda",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "available_spatial_benchmarks",
      "title": "List real spatial benchmark datasets",
      "topics": [
        "available_spatial_benchmarks"
      ]
    },
    {
      "page": "benchmark_spatial_refiners",
      "title": "Benchmark spatial label refinement methods",
      "topics": [
        "benchmark_spatial_refiners"
      ]
    },
    {
      "page": "clean_categorical_mask",
      "title": "Clean a noisy categorical mask",
      "topics": [
        "clean_categorical_mask"
      ]
    },
    {
      "page": "colorectal_benchmark",
      "title": "Human CRC Visium HD refinement benchmark",
      "topics": [
        "colorectal_benchmark"
      ]
    },
    {
      "page": "corrupt_categorical_mask",
      "title": "Generate a corrupted categorical mask",
      "topics": [
        "corrupt_categorical_mask"
      ]
    },
    {
      "page": "dlpfc_benchmark",
      "title": "Human DLPFC Visium refinement benchmark",
      "topics": [
        "dlpfc_benchmark"
      ]
    },
    {
      "page": "evaluate_mask_cleaning",
      "title": "Evaluate categorical mask cleaning",
      "topics": [
        "evaluate_mask_cleaning"
      ]
    },
    {
      "page": "evaluate_spatial_refinement",
      "title": "Evaluate a spatial label refinement",
      "topics": [
        "evaluate_spatial_refinement"
      ]
    },
    {
      "page": "load_spatial_benchmark",
      "title": "Load a bundled real spatial benchmark",
      "topics": [
        "load_spatial_benchmark"
      ]
    },
    {
      "page": "refine_spatial_labels",
      "title": "Refine noisy categorical labels on a spatial domain",
      "topics": [
        "refine_spatial_labels"
      ]
    },
    {
      "page": "simulate_complex_spatial_domains",
      "title": "Simulate held-out complex spatial domain geometries",
      "topics": [
        "simulate_complex_spatial_domains"
      ]
    },
    {
      "page": "simulate_gradient_regions",
      "title": "Simulate layered gradient-mixture tissue regions",
      "topics": [
        "simulate_gradient_regions"
      ]
    },
    {
      "page": "simulate_spatial_clusters",
      "title": "Simulate labelled spatial clusters",
      "topics": [
        "simulate_spatial_clusters"
      ]
    },
    {
      "page": "simulate_spatial_domains",
      "title": "Simulate spatial tissue domains with challenging geometry",
      "topics": [
        "simulate_spatial_domains"
      ]
    },
    {
      "page": "simulate_volumetric_domains",
      "title": "Simulate complex three-dimensional tissue domains",
      "topics": [
        "simulate_volumetric_domains"
      ]
    },
    {
      "page": "spatial_benchmark",
      "title": "Construct a spatial refinement benchmark",
      "topics": [
        "spatial_benchmark"
      ]
    }
  ],
  "_readme": "https://github.com/tkcaccia/fibermargin/raw/HEAD/README.md",
  "_rundeps": [
    "Rcpp"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "benchmarks.Rmd",
      "filename": "benchmarks.html",
      "title": "FiberMargin Benchmarks",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Evaluation contract",
        "Standard metrics reported",
        "Dataset catalog",
        "Load one real scenario",
        "Example benchmark run",
        "Reproducibility scripts"
      ],
      "created": "2026-07-15 00:07:49",
      "modified": "2026-09-10 16:54:21",
      "commits": 7
    },
    {
      "source": "reference_manual.Rmd",
      "filename": "reference_manual.html",
      "title": "FiberMargin Reference Manual",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Functions",
        "Refinement",
        "Simulation",
        "refine_spatial_labels() contract",
        "Evaluation",
        "Benchmarking",
        "Scoring glossary"
      ],
      "created": "2026-07-21 06:35:03",
      "modified": "2026-09-10 16:54:21",
      "commits": 4
    },
    {
      "source": "fibermargin.Rmd",
      "filename": "fibermargin.html",
      "title": "FiberMargin: Complete User Guide",
      "author": "FiberMargin authors",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Purpose and input contract",
        "Quick start",
        "Refine irregular coordinates",
        "refine_spatial_labels()",
        "Binary specialization",
        "Effective 2D and genuine 3D coordinates",
        "Multiple specimens",
        "Deterministic CPU use",
        "Clean categorical masks",
        "corrupt_categorical_mask()",
        "clean_categorical_mask()",
        "evaluate_mask_cleaning()",
        "Build and evaluate benchmark objects",
        "spatial_benchmark()",
        "evaluate_spatial_refinement()",
        "benchmark_spatial_refiners()",
        "Simulation functions",
        "simulate_spatial_clusters()",
        "simulate_spatial_domains()",
        "simulate_complex_spatial_domains()",
        "simulate_gradient_regions()",
        "simulate_volumetric_domains()",
        "Bundled real benchmarks",
        "available_spatial_benchmarks()",
        "load_spatial_benchmark()",
        "End-to-end analysis template",
        "Reporting checklist"
      ],
      "created": "2026-07-21 06:35:03",
      "modified": "2026-09-10 16:54:21",
      "commits": 5
    }
  ],
  "_score": 4.778151250383644,
  "_indexed": true,
  "_nocasepkg": "fibermargin",
  "_universes": [
    "tkcaccia"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-09-19T11:23:58.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "f8344ac3499f71101ae7778b430024043b4015e5",
      "fileid": "https://r2.ropensci.org/13e61deb017fcefbdab042cbcda194df3148b9f7e4c7353b10cb0207f5ced1be",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tkcaccia/actions/runs/35439747327"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-09-19T11:24:17.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "f8344ac3499f71101ae7778b430024043b4015e5",
      "fileid": "https://r2.ropensci.org/04ad2846a48b3e3768f7d96224e9e97763c847af2dacce42df80862bd4493351",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tkcaccia/actions/runs/35439747327"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-09-19T11:23:55.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "f8344ac3499f71101ae7778b430024043b4015e5",
      "fileid": "https://r2.ropensci.org/88c299b48669a86f2df64c5dd87fd92c49888905a05298bf9ba74d686b947558",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tkcaccia/actions/runs/35439747327"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-09-19T11:24:16.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "f8344ac3499f71101ae7778b430024043b4015e5",
      "fileid": "https://r2.ropensci.org/f413293175f4a299e5f82244c356fbb14a241ec9ca08804a18e6d053eed27007",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tkcaccia/actions/runs/35439747327"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-09-19T11:26:51.000Z",
      "arch": "aarch64",
      "commit": "f8344ac3499f71101ae7778b430024043b4015e5",
      "fileid": "https://r2.ropensci.org/8a659de34b26c44238abae5e7c325b9d516a22bbd6bd1f1d385e5582da897031",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tkcaccia/actions/runs/35439747327"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-09-19T11:27:40.000Z",
      "arch": "x86_64",
      "commit": "f8344ac3499f71101ae7778b430024043b4015e5",
      "fileid": "https://r2.ropensci.org/e84993b5fd8afe35b021290d6263ccd771ff803bb088fb5198a7ca2043efdfad",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tkcaccia/actions/runs/35439747327"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-09-19T11:30:40.000Z",
      "arch": "aarch64",
      "commit": "f8344ac3499f71101ae7778b430024043b4015e5",
      "fileid": "https://r2.ropensci.org/6601ca55e492f142e98c69a1b58dea921cc994e8f2407eec3efb62ae40689bcc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tkcaccia/actions/runs/35439747327"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-09-19T11:26:05.000Z",
      "arch": "x86_64",
      "commit": "f8344ac3499f71101ae7778b430024043b4015e5",
      "fileid": "https://r2.ropensci.org/fd8c77c599480f77edb35e6cac797626a9c858814caa97cbf583fed8fb45345a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tkcaccia/actions/runs/35439747327"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-09-19T11:24:12.000Z",
      "arch": "emscripten",
      "commit": "f8344ac3499f71101ae7778b430024043b4015e5",
      "fileid": "https://r2.ropensci.org/6ad10123c84c555b62c832286f9818ac546eb7f3a541bbc8fc12a7a6c21f91df",
      "status": "success",
      "buildurl": "https://github.com/r-universe/tkcaccia/actions/runs/35439747327"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-09-19T11:24:51.000Z",
      "arch": "aarch64",
      "commit": "f8344ac3499f71101ae7778b430024043b4015e5",
      "fileid": "https://r2.ropensci.org/ac0fabad8187178cf1537ab32826832f2e52999b6b5273af0844fe5e815a6e72",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tkcaccia/actions/runs/35439747327"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-09-19T11:23:05.000Z",
      "arch": "x86_64",
      "commit": "f8344ac3499f71101ae7778b430024043b4015e5",
      "fileid": "https://r2.ropensci.org/fa880e4485f07f0615fd71b1f69440565cab472ad090267aa8ef839578c88371",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tkcaccia/actions/runs/35439747327"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-09-19T11:23:01.000Z",
      "arch": "x86_64",
      "commit": "f8344ac3499f71101ae7778b430024043b4015e5",
      "fileid": "https://r2.ropensci.org/fd7d822f75fcc7be26267f11a2a4129494d6c725dec832dd49e857a16983cb20",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tkcaccia/actions/runs/35439747327"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-09-19T11:25:05.000Z",
      "arch": "aarch64",
      "commit": "f8344ac3499f71101ae7778b430024043b4015e5",
      "fileid": "https://r2.ropensci.org/9a4072739118cb17467771c8848b371162968840a43e234a4ea9b4024ce509ad",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tkcaccia/actions/runs/35439747327"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-09-19T11:23:14.000Z",
      "arch": "x86_64",
      "commit": "f8344ac3499f71101ae7778b430024043b4015e5",
      "fileid": "https://r2.ropensci.org/a9d909ff7dbb8d1c326d38eba58ee7577a4254d23b5652470a648438bd8ed307",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tkcaccia/actions/runs/35439747327"
    }
  ]
}