{
  "_id": "6ad4aac364aea59ac637be6c",
  "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",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-18 11:12:26 UTC",
    "User": "root"
  },
  "Author": "Stefano Cacciatore [aut, cre, cph]",
  "Maintainer": "Stefano Cacciatore <tkcaccia@gmail.com>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-09-18 16:34:12 UTC",
  "RemoteUrl": "https://github.com/cran/fibermargin",
  "RemoteRef": "HEAD",
  "RemoteSha": "5754b2cca744bd05e5958b9ea9aa9d2879b61f2e",
  "_user": "cran",
  "_type": "src",
  "_file": "fibermargin_0.1.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/e06c76751606008487dbae86f1562657584d23c069113a2c20d07fb7f1bb26d2",
  "_filesize": 3333563,
  "_sha256": "e06c76751606008487dbae86f1562657584d23c069113a2c20d07fb7f1bb26d2",
  "_expires": "2027-01-26T11:17:21.000Z",
  "_created": "2026-10-18T11:12:26.000Z",
  "_published": "2026-10-18T11:17:23.571Z",
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/39122097235",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 117660270520,
      "time": 122,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12135146153"
    },
    {
      "job": 117660270570,
      "time": 143,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12135041665"
    },
    {
      "job": 117660270540,
      "time": 149,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12134483413"
    },
    {
      "job": 117660270499,
      "time": 127,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12134981808"
    },
    {
      "job": 117659660397,
      "time": 184,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12134721412"
    },
    {
      "job": 117660270496,
      "time": 117,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12135076395"
    },
    {
      "job": 117660270548,
      "time": 223,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12134547172"
    },
    {
      "job": 117660270532,
      "time": 142,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12134996641"
    },
    {
      "job": 117660270659,
      "time": 247,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12133939336"
    },
    {
      "job": 117660270509,
      "time": 120,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12134551938"
    }
  ],
  "_upstream": "https://github.com/cran/fibermargin",
  "_commit": {
    "id": "5754b2cca744bd05e5958b9ea9aa9d2879b61f2e",
    "author": "Stefano Cacciatore <tkcaccia@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1.0\n",
    "time": 1789749252
  },
  "_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": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-38",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.1.0",
      "date": "2026-09-18"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "tkcaccia",
      "count": 1,
      "uuid": 15799157
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 632,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 445,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/fibermargin"
  },
  "_devurl": "https://github.com/tkcaccia/fibermargin",
  "_pkgdown": "https://tkcaccia.github.io/fibermargin/",
  "_searchresults": 0,
  "_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": false,
  "_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/cran/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-09-18 16:34:12",
      "modified": "2026-09-18 16:34:12",
      "commits": 1
    },
    {
      "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-09-18 16:34:12",
      "modified": "2026-09-18 16:34:12",
      "commits": 1
    },
    {
      "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-09-18 16:34:12",
      "modified": "2026-09-18 16:34:12",
      "commits": 1
    }
  ],
  "_score": 3.1760912590556813,
  "_indexed": false,
  "_nocasepkg": "fibermargin",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://tkcaccia.r-universe.dev/fibermargin",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-10-18T11:14:23.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "5754b2cca744bd05e5958b9ea9aa9d2879b61f2e",
      "fileid": "https://r2.ropensci.org/bd72ce843600b376715a018e0cf89587b91444fb4f1bdefc6d46699eff10cc58",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39122097235"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-10-18T11:14:37.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "5754b2cca744bd05e5958b9ea9aa9d2879b61f2e",
      "fileid": "https://r2.ropensci.org/5fe666a779292e24b7b225dd71abb966f9a009b4ef8d57921b2048b3f738a6e7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39122097235"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-10-18T11:14:56.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "5754b2cca744bd05e5958b9ea9aa9d2879b61f2e",
      "fileid": "https://r2.ropensci.org/ae8022e4e9f5bc811d711014cfccaa2b4f0833db45813fa2fda6290dca361d24",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39122097235"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-10-18T11:14:26.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "5754b2cca744bd05e5958b9ea9aa9d2879b61f2e",
      "fileid": "https://r2.ropensci.org/fae77b3db7bcf565866c7bbea63688b5ae6b36c189ce924b436abbeb652ed0d1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39122097235"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-10-18T11:14:41.000Z",
      "arch": "emscripten",
      "commit": "5754b2cca744bd05e5958b9ea9aa9d2879b61f2e",
      "fileid": "https://r2.ropensci.org/bc4fbdf2a349c7e7a59fa2a3376198a198c19cf907fa0e4055e8912608184846",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39122097235"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-10-18T11:15:48.000Z",
      "arch": "aarch64",
      "commit": "5754b2cca744bd05e5958b9ea9aa9d2879b61f2e",
      "fileid": "https://r2.ropensci.org/0756c8b554b8966694c8e5fd7b56eeb0695df9d00e15c4847b40bb58209975df",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39122097235"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-10-18T11:13:44.000Z",
      "arch": "x86_64",
      "commit": "5754b2cca744bd05e5958b9ea9aa9d2879b61f2e",
      "fileid": "https://r2.ropensci.org/166333399b5bb0644e3ea5074c8dcb25b48f83646fd5090b78fda07294f5ea16",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39122097235"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-10-18T11:16:20.000Z",
      "arch": "aarch64",
      "commit": "5754b2cca744bd05e5958b9ea9aa9d2879b61f2e",
      "fileid": "https://r2.ropensci.org/3733fc5c643bb0cf755573f8bc39c715c07240600a3a52ee3bf6983bb2343405",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39122097235"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-10-18T11:13:51.000Z",
      "arch": "x86_64",
      "commit": "5754b2cca744bd05e5958b9ea9aa9d2879b61f2e",
      "fileid": "https://r2.ropensci.org/51e66bb65ec473c973d863e3079220517e277920f7a0d822dbca71d963317326",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/39122097235"
    }
  ]
}