{
  "_id": "6ac8c722de46216d5edd7034",
  "Package": "hypnoR",
  "Title": "Hypnogram Handling, Plotting, and Sleep Architecture Metrics",
  "Version": "0.1.1",
  "Authors@R": "c(\nperson(\"Lucas\", \"França\",\nemail = \"lucas.franca@northumbria.ac.uk\",\nrole = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0003-0853-1319\")),\nperson(\"Mario\", \"Leocadio-Miguel\",\nemail = \"mario.miguel@northumbria.ac.uk\",\nrole = \"aut\",\ncomment = c(ORCID = \"0000-0002-7248-3529\"))\n)",
  "Description": "Provides a staging-agnostic layer for hypnogram ingestion,\nsleep architecture metric computation, cycle segmentation, and\ntransition analysis. Accepts full AASM-staged hypnograms (W /\nN1 / N2 / N3 / REM) from mrpheus and coarser actigraphy-derived\nhypnograms (W / Sleep / Quiet sleep) from zeitR; all metric\nfunctions degrade gracefully depending on staging resolution.\nIncludes publication-ready plotting with a shared Circadia Lab\ncolour palette. Designed as the hypnogram layer of the Circadia\nLab ecosystem, feeding into syncR::sync().",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "VignetteBuilder": "knitr",
  "Additional_repositories": "https://circadia-bio.r-universe.dev",
  "Config/testthat/edition": "3",
  "URL": "https://hypnor.circadia-lab.uk,\nhttps://github.com/circadia-bio/hypnoR",
  "BugReports": "https://github.com/circadia-bio/hypnoR/issues",
  "Config/roxygen2/version": "8.0.0",
  "Repository": "https://circadia-bio.r-universe.dev",
  "Date/Publication": "2026-07-11 11:47:21 UTC",
  "RemoteUrl": "https://github.com/circadia-bio/hypnoR",
  "RemoteRef": "v0.1.1",
  "RemoteSha": "3f2d3be85ae3f38a45e77bed9c7a67eea49f1897",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-09 10:07:01 UTC",
    "User": "root"
  },
  "Author": "Lucas França [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-0853-1319>),\nMario Leocadio-Miguel [aut] (ORCID:\n<https://orcid.org/0000-0002-7248-3529>)",
  "Maintainer": "Lucas França <lucas.franca@northumbria.ac.uk>",
  "_user": "circadia-bio",
  "_type": "src",
  "_file": "hypnoR_0.1.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/a84a6f421e174e998ffdd8bf93f537209cd2d79fb2695ca4f999e6cf5efc59a6",
  "_filesize": 623625,
  "_sha256": "a84a6f421e174e998ffdd8bf93f537209cd2d79fb2695ca4f999e6cf5efc59a6",
  "_expires": "2027-01-17T10:51:12.000Z",
  "_created": "2026-10-09T10:07:01.000Z",
  "_published": "2026-10-09T10:51:14.491Z",
  "_buildurl": "https://github.com/r-universe/circadia-bio/actions/runs/37915234560",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 113770979308,
      "time": 124,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11609792819"
    },
    {
      "job": 113770979272,
      "time": 111,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11609188510"
    },
    {
      "job": 113770979232,
      "time": 101,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11611144021"
    },
    {
      "job": 113770979310,
      "time": 123,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11611288195"
    },
    {
      "job": 113769796910,
      "time": 203,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11609677462"
    },
    {
      "job": 113770979220,
      "time": 107,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11609612873"
    },
    {
      "job": 113770979299,
      "time": 110,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11609742855"
    },
    {
      "job": 113770979318,
      "time": 90,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11609018424"
    },
    {
      "job": 113770979390,
      "time": 79,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11609577678"
    }
  ],
  "_upstream": "https://github.com/circadia-bio/hypnoR",
  "_commit": {
    "id": "3f2d3be85ae3f38a45e77bed9c7a67eea49f1897",
    "author": "lucasfr <lucas.franca@northumbria.ac.uk>",
    "committer": "lucasfr <lucas.franca@northumbria.ac.uk>",
    "message": "✨ feat: add r-universe version badge, recommend r-universe install\n\n- r-universe badge (auto-updating version pill) as first badge,\n  matching mrpheus's README convention\n- recommend installing hypnoR from r-universe (pre-built binaries)\n  ahead of the GitHub remotes fallback, same as mrpheus's README\n",
    "time": 1783770441
  },
  "_maintainer": {
    "name": "Lucas França",
    "email": "lucas.franca@northumbria.ac.uk",
    "login": "lucasfr",
    "description": "Immigrant, physicist, neuroscientist, open source and data science enthusiast.",
    "uuid": 502265,
    "orcid": "0000-0003-0853-1319"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "cli",
      "version": ">= 3.6.0",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "version": ">= 3.0.0",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "dplyr",
      "version": ">= 1.1.0",
      "role": "Suggests"
    },
    {
      "package": "forcats",
      "version": ">= 1.0.0",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "version": ">= 3.4.0",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "lubridate",
      "version": ">= 1.9.0",
      "role": "Suggests"
    },
    {
      "package": "mrpheus",
      "role": "Suggests"
    },
    {
      "package": "pkgdown",
      "role": "Suggests"
    },
    {
      "package": "rlang",
      "version": ">= 1.1.0",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "tidyr",
      "version": ">= 1.3.0",
      "role": "Suggests"
    },
    {
      "package": "zeitR",
      "role": "Suggests"
    }
  ],
  "_owner": "circadia-bio",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-26",
      "n": 9
    },
    {
      "week": "2026-28",
      "n": 21
    }
  ],
  "_tags": [
    {
      "name": "v0.1.0",
      "date": "2026-06-29"
    },
    {
      "name": "v0.1.1",
      "date": "2026-07-11"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "lucasfr",
      "count": 43,
      "uuid": 502265
    }
  ],
  "_userbio": {
    "uuid": 202348599,
    "type": "organization",
    "name": "Circadia Lab",
    "followers": 3
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/hypnoR"
  },
  "_devurl": "https://github.com/circadia-bio/hypnor",
  "_pkgdown": "https://hypnor.circadia-lab.uk",
  "_searchresults": 1,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/hypnoR.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_cranurl": false,
  "_exports": [
    "compute_cycles",
    "compute_sleep_architecture",
    "compute_transitions",
    "new_hypnogram",
    "plot_architecture",
    "plot_hypnogram",
    "plot_transition_matrix",
    "read_hypnogram",
    "smooth_hypnogram",
    "window_hypnogram"
  ],
  "_help": [
    {
      "page": "compute_cycles",
      "title": "Detect NREM/REM sleep cycles",
      "topics": [
        "compute_cycles"
      ]
    },
    {
      "page": "compute_sleep_architecture",
      "title": "Compute sleep architecture metrics",
      "topics": [
        "compute_sleep_architecture"
      ]
    },
    {
      "page": "compute_transitions",
      "title": "Compute stage-transition statistics",
      "topics": [
        "compute_transitions"
      ]
    },
    {
      "page": "new_hypnogram",
      "title": "Construct a hypnoR hypnogram object",
      "topics": [
        "new_hypnogram",
        "new_hypnogram.default",
        "new_hypnogram.mrpheus_hypnogram"
      ]
    },
    {
      "page": "plot_architecture",
      "title": "Plot sleep architecture as a bar chart",
      "topics": [
        "plot_architecture"
      ]
    },
    {
      "page": "plot_hypnogram",
      "title": "Plot a hypnogram",
      "topics": [
        "plot_hypnogram"
      ]
    },
    {
      "page": "plot_transition_matrix",
      "title": "Plot a stage-transition heatmap",
      "topics": [
        "plot_transition_matrix"
      ]
    },
    {
      "page": "read_hypnogram",
      "title": "Read a hypnogram from file",
      "topics": [
        "read_hypnogram"
      ]
    },
    {
      "page": "smooth_hypnogram",
      "title": "Smooth a hypnogram by reassigning short, likely-spurious runs",
      "topics": [
        "smooth_hypnogram"
      ]
    },
    {
      "page": "window_hypnogram",
      "title": "Restrict a hypnogram to a time or epoch window",
      "topics": [
        "window_hypnogram"
      ]
    }
  ],
  "_pkglogo": "https://github.com/circadia-bio/hypnoR/raw/v0.1.1/man/figures/logo.svg",
  "_readme": "https://github.com/circadia-bio/hypnoR/raw/v0.1.1/README.md",
  "_rundeps": [
    "cli",
    "glue",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "rlang",
    "tibble",
    "utf8",
    "vctrs"
  ],
  "_vignettes": [
    {
      "source": "getting-started.Rmd",
      "filename": "getting-started.html",
      "title": "Getting started with hypnoR",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Installation",
        "From mrpheus to hypnoR",
        "Preprocessing",
        "Smoothing",
        "Windowing",
        "Sleep architecture",
        "Stage transitions",
        "NREM/REM cycles",
        "Plotting",
        "Coarse hypnograms from zeitR",
        "What isn't here yet"
      ],
      "created": "2026-06-27 09:59:09",
      "modified": "2026-07-11 11:16:07",
      "commits": 5
    }
  ],
  "_score": 3,
  "_indexed": true,
  "_nocasepkg": "hypnor",
  "_universes": [
    "circadia-bio",
    "lucasfr"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-10-09T10:09:16.000Z",
      "distro": "resolute",
      "commit": "3f2d3be85ae3f38a45e77bed9c7a67eea49f1897",
      "fileid": "https://r2.ropensci.org/f686d28a6ed9c5dd440c4b8f1bb13c24126d2c96cc1b588e37bedc110a713d3c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/circadia-bio/actions/runs/37915234560"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-10-09T10:09:08.000Z",
      "distro": "resolute",
      "commit": "3f2d3be85ae3f38a45e77bed9c7a67eea49f1897",
      "fileid": "https://r2.ropensci.org/9e136646fd14a182ef3435f612bd052687d459fbc388ea82dfc03cca7e0846b2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/circadia-bio/actions/runs/37915234560"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-10-09T10:44:19.000Z",
      "commit": "3f2d3be85ae3f38a45e77bed9c7a67eea49f1897",
      "fileid": "https://r2.ropensci.org/847eae3f3b0dd360e0b9fb1afcb174f4cf8ab9e1bfc78503f6ba0df9a1f897f5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/circadia-bio/actions/runs/37915234560"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-10-09T10:50:31.000Z",
      "commit": "3f2d3be85ae3f38a45e77bed9c7a67eea49f1897",
      "fileid": "https://r2.ropensci.org/bf514e9408de01a077c7c3d81aa3457cca13de637b16e77aa5822069711004d4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/circadia-bio/actions/runs/37915234560"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1",
      "date": "2026-10-09T10:09:15.000Z",
      "commit": "3f2d3be85ae3f38a45e77bed9c7a67eea49f1897",
      "fileid": "https://r2.ropensci.org/96aa4dfe96daf5e36182606ef73247dbe5e6adb97742aa7c4c10880fbe518089",
      "status": "success",
      "buildurl": "https://github.com/r-universe/circadia-bio/actions/runs/37915234560"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-10-09T10:08:53.000Z",
      "commit": "3f2d3be85ae3f38a45e77bed9c7a67eea49f1897",
      "fileid": "https://r2.ropensci.org/a2f50601ea9c640153fe588e25d4fd6b99698dc7e9b4cf521deb3d8749d5d891",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/circadia-bio/actions/runs/37915234560"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-10-09T10:08:29.000Z",
      "commit": "3f2d3be85ae3f38a45e77bed9c7a67eea49f1897",
      "fileid": "https://r2.ropensci.org/c774d8b931a758a8e7a2f8fa02352e34cc138bff17792361e31d990a6e97f3fb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/circadia-bio/actions/runs/37915234560"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-10-09T10:08:18.000Z",
      "commit": "3f2d3be85ae3f38a45e77bed9c7a67eea49f1897",
      "fileid": "https://r2.ropensci.org/c9ba186c2f90a0b8b7983e26ca5b2271c7cf93af335a1ec27750278ca9d9a0d2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/circadia-bio/actions/runs/37915234560"
    }
  ]
}