{
  "_id": "6ad5fe7a6b811b735aabe0dc",
  "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-10-19 11:20:33 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/0ca40e3818d59b31badd44b9f1f5c68c6cca9c687eff8a1352a40e1c4c9e1726",
  "_filesize": 3332892,
  "_sha256": "0ca40e3818d59b31badd44b9f1f5c68c6cca9c687eff8a1352a40e1c4c9e1726",
  "_expires": "2027-01-27T11:26:48.000Z",
  "_created": "2026-10-19T11:20:33.000Z",
  "_published": "2026-10-19T11:26:50.614Z",
  "_buildurl": "https://github.com/r-universe/tkcaccia/actions/runs/39243357834",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 118031352331,
      "time": 107,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12183245285"
    },
    {
      "job": 118031352376,
      "time": 137,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12182607736"
    },
    {
      "job": 118031352394,
      "time": 131,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12183080162"
    },
    {
      "job": 118031352588,
      "time": 134,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12183640034"
    },
    {
      "job": 118031352294,
      "time": 126,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12182184681"
    },
    {
      "job": 118031352291,
      "time": 327,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12183750288"
    },
    {
      "job": 118031352473,
      "time": 132,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12182751317"
    },
    {
      "job": 118031352360,
      "time": 272,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12183630411"
    },
    {
      "job": 118029392441,
      "time": 294,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12181999700"
    },
    {
      "job": 118031352412,
      "time": 90,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12182184562"
    },
    {
      "job": 118031352407,
      "time": 251,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12182790985"
    },
    {
      "job": 118031352342,
      "time": 186,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12183095283"
    },
    {
      "job": 118031352514,
      "time": 120,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12182184647"
    },
    {
      "job": 118031352417,
      "time": 200,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12182452664"
    },
    {
      "job": 118031352439,
      "time": 147,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12182840569"
    }
  ],
  "_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": 457,
    "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": 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-10-19T11:22:21.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "f8344ac3499f71101ae7778b430024043b4015e5",
      "fileid": "https://r2.ropensci.org/41f2270e64c3b9a6b4b00004a3edc2be1a7a3840754c0d8e2f98ed20144ecf01",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tkcaccia/actions/runs/39243357834"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-10-19T11:22:40.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "f8344ac3499f71101ae7778b430024043b4015e5",
      "fileid": "https://r2.ropensci.org/73aef494fdbdb3915e3fa5a5e4b89ec8362d51c21e639b3022fa30e885d80279",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tkcaccia/actions/runs/39243357834"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-10-19T11:22:45.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "f8344ac3499f71101ae7778b430024043b4015e5",
      "fileid": "https://r2.ropensci.org/ad1ff3ff038791a79ff97d784b880688470870c1eb6fbb7f56d35ef7ac4d3298",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tkcaccia/actions/runs/39243357834"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-10-19T11:22:48.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "f8344ac3499f71101ae7778b430024043b4015e5",
      "fileid": "https://r2.ropensci.org/d61e7ff49466a32de26e89b5c816b5f975fe4eb4ec250ebbf4fb03660094e18f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tkcaccia/actions/runs/39243357834"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-10-19T11:22:36.000Z",
      "arch": "aarch64",
      "commit": "f8344ac3499f71101ae7778b430024043b4015e5",
      "fileid": "https://r2.ropensci.org/86c51c4d9e39ce449d601d44e1f52ac834723df736e7b9fe78cf1fad73f94594",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tkcaccia/actions/runs/39243357834"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-10-19T11:24:48.000Z",
      "arch": "x86_64",
      "commit": "f8344ac3499f71101ae7778b430024043b4015e5",
      "fileid": "https://r2.ropensci.org/5d7a9c65e0198dab5dfb62fa704173f680ce14994ffefd087aea95c2225ad55c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tkcaccia/actions/runs/39243357834"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-10-19T11:22:37.000Z",
      "arch": "aarch64",
      "commit": "f8344ac3499f71101ae7778b430024043b4015e5",
      "fileid": "https://r2.ropensci.org/89fdda0a9c5985b8ff9585907d476c920c750104730ecdd1dfb0333cfbf77e5d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tkcaccia/actions/runs/39243357834"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-10-19T11:24:04.000Z",
      "arch": "x86_64",
      "commit": "f8344ac3499f71101ae7778b430024043b4015e5",
      "fileid": "https://r2.ropensci.org/619c1f6ee5cf55e2d2e85bcb6461cb4b5da3b51466ad83042148c3f283efff3e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tkcaccia/actions/runs/39243357834"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-10-19T11:22:25.000Z",
      "arch": "emscripten",
      "commit": "f8344ac3499f71101ae7778b430024043b4015e5",
      "fileid": "https://r2.ropensci.org/e59710e6bb0283cf98dd11cc2d4825f02392df2d7a304a252b861fca787f2de3",
      "status": "success",
      "buildurl": "https://github.com/r-universe/tkcaccia/actions/runs/39243357834"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-10-19T11:24:24.000Z",
      "arch": "aarch64",
      "commit": "f8344ac3499f71101ae7778b430024043b4015e5",
      "fileid": "https://r2.ropensci.org/c810745dda694a0e5d1946a9f3ac66cf64e1810209b3f18b91c21847c9b357aa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tkcaccia/actions/runs/39243357834"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-10-19T11:22:16.000Z",
      "arch": "x86_64",
      "commit": "f8344ac3499f71101ae7778b430024043b4015e5",
      "fileid": "https://r2.ropensci.org/c78a74ac0c8a9f4db44b29cc39e7f485461b1d5b2f908ebc9f1d05672bd7cd08",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tkcaccia/actions/runs/39243357834"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-10-19T11:22:01.000Z",
      "arch": "x86_64",
      "commit": "f8344ac3499f71101ae7778b430024043b4015e5",
      "fileid": "https://r2.ropensci.org/dfdfd808afc653c53b9b7aa837d522d6702484c8a448379610c6eb141a64e25c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tkcaccia/actions/runs/39243357834"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-10-19T11:23:38.000Z",
      "arch": "aarch64",
      "commit": "f8344ac3499f71101ae7778b430024043b4015e5",
      "fileid": "https://r2.ropensci.org/bf86142196442b2b1976104016fd39fcacca785b6abc914331a8641b4a858e0b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tkcaccia/actions/runs/39243357834"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-10-19T11:22:16.000Z",
      "arch": "x86_64",
      "commit": "f8344ac3499f71101ae7778b430024043b4015e5",
      "fileid": "https://r2.ropensci.org/60b55d17434e26725171ef098085220166929e24fd1eed65491d9e3d0a3b5ac4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/tkcaccia/actions/runs/39243357834"
    }
  ]
}