{
  "_id": "6ad50fe143d630dc48a3fb04",
  "Package": "metricT",
  "Type": "Package",
  "Title": "Directional Fragility Diagnostics for EEG Connectivity",
  "Version": "0.2.1",
  "Authors@R": "person(\"Akira\", \"Kimura\", email = \"a-kimura@paz.ac.jp\",\nrole = c(\"aut\", \"cre\"), comment = c(ORCID = \"0000-0003-0220-5678\"))",
  "Description": "Implements Metric-T, a permutation-based diagnostic that\nflags when the reported direction of a group difference in\nelectroencephalography (EEG) functional connectivity depends on\nthe choice of metric. Direction consistency (DC) converts the\nweighted phase lag index (wPLI) and magnitude-squared coherence\n(MSC), both derived from the same cross-spectrum, into the\npercentage of channel-pair features for which one group exceeds\nthe other; Metric-T is T = DC(wPLI) - DC(MSC). Significance is\nassessed by aligned label permutation with marginal and\nWestfall-Young max-T multiplicity control. For small samples\nthe reference set is enumerated completely: exact two-group\ntests, the complete two-group labelling space (in which\ncut-points, exclusions and batches are located on one\ndistribution), and a stratified exact test for a continuous\ncovariate. Core functions use base R only; a 'shiny' graphical\ninterface is included. Method: Kimura (2026)\n<doi:10.1016/j.neuri.2026.100286>.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Language": "en-GB",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "URL": "https://github.com/akimura753/metricT",
  "BugReports": "https://github.com/akimura753/metricT/issues",
  "RoxygenNote": "7.3.1",
  "Repository": "https://akimura753.r-universe.dev",
  "Date/Publication": "2026-10-18 15:38:10 UTC",
  "RemoteUrl": "https://github.com/akimura753/metrict",
  "RemoteRef": "HEAD",
  "RemoteSha": "eb8b33d67634736ddd83e78387b3ae298e2cdf53",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-18 18:24:28 UTC",
    "User": "root"
  },
  "Author": "Akira Kimura [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-0220-5678>)",
  "Maintainer": "Akira Kimura <a-kimura@paz.ac.jp>",
  "_user": "akimura753",
  "_type": "src",
  "_file": "metricT_0.2.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/af4a7a456a1c1b28f5774d511dcd89ed9a4ab56ad665ad820dae3388d347107c",
  "_filesize": 408907,
  "_sha256": "af4a7a456a1c1b28f5774d511dcd89ed9a4ab56ad665ad820dae3388d347107c",
  "_expires": "2027-01-26T18:28:46.000Z",
  "_created": "2026-10-18T18:24:28.000Z",
  "_published": "2026-10-18T18:28:48.937Z",
  "_buildurl": "https://github.com/r-universe/akimura753/actions/runs/39153817463",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 117753416776,
      "time": 114,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12146855245"
    },
    {
      "job": 117753416772,
      "time": 112,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12146590379"
    },
    {
      "job": 117753416893,
      "time": 97,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12146615338"
    },
    {
      "job": 117753416822,
      "time": 88,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12146187008"
    },
    {
      "job": 117752827095,
      "time": 154,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12146068284"
    },
    {
      "job": 117753416816,
      "time": 88,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12146272454"
    },
    {
      "job": 117753416826,
      "time": 74,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12146865135"
    },
    {
      "job": 117753416784,
      "time": 55,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12146625250"
    },
    {
      "job": 117753416839,
      "time": 78,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12146436545"
    }
  ],
  "_upstream": "https://github.com/akimura753/metrict",
  "_commit": {
    "id": "eb8b33d67634736ddd83e78387b3ae298e2cdf53",
    "author": "akimura753 <33863572+akimura753@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Add files via upload",
    "time": 1792337890
  },
  "_maintainer": {
    "name": "Akira Kimura",
    "email": "a-kimura@paz.ac.jp",
    "orcid": "0000-0003-0220-5678"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.0.0",
      "role": "Depends"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "shiny",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "akimura753",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-41",
      "n": 5
    },
    {
      "week": "2026-42",
      "n": 3
    }
  ],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "akimura753",
      "count": 8,
      "uuid": 33863572
    }
  ],
  "_userbio": {
    "uuid": 33863572,
    "type": "user",
    "name": "akimura753",
    "followers": 0
  },
  "_downloads": {
    "count": 39,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/metricT"
  },
  "_devurl": "https://github.com/akimura753/metrict",
  "_searchresults": 0,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/metricT.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/akimura753/metrict",
  "_realowner": "akimura753",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.2.0",
      "date": "2026-10-16"
    }
  ],
  "_exports": [
    "metric_t",
    "metric_t_trend",
    "mt_bands",
    "mt_clean_epochs",
    "mt_connectivity",
    "mt_dc",
    "mt_epoch",
    "mt_features_from_eeg_csv",
    "mt_features_from_epochs",
    "mt_label_space",
    "mt_labelings",
    "mt_labelset",
    "mt_locate",
    "mt_motion_bands",
    "mt_null_plot",
    "mt_read_features_csv",
    "mt_read_npy",
    "mt_read_npz",
    "mt_simulate",
    "mt_simulate_motion",
    "mt_write_features_csv",
    "mt_wy_maxt",
    "run_metricT_app"
  ],
  "_help": [
    {
      "page": "metric_t",
      "title": "Metric-T: diagnostic for directional fragility",
      "topics": [
        "metric_t"
      ]
    },
    {
      "page": "metric_t_trend",
      "title": "Metric-T for a continuous covariate, with stratified exact permutation",
      "topics": [
        "metric_t_trend"
      ]
    },
    {
      "page": "mt_bands",
      "title": "Default frequency bands (Hz), as in Kimura (2026)",
      "topics": [
        "mt_bands"
      ]
    },
    {
      "page": "mt_clean_epochs",
      "title": "Detrend epochs and drop those with large excursions",
      "topics": [
        "mt_clean_epochs"
      ]
    },
    {
      "page": "mt_connectivity",
      "title": "wPLI and MSC from the same cross-spectrum (one subject)",
      "topics": [
        "mt_connectivity"
      ]
    },
    {
      "page": "mt_dc",
      "title": "Direction consistency (DC)",
      "topics": [
        "mt_dc"
      ]
    },
    {
      "page": "mt_epoch",
      "title": "Cut a continuous recording into fixed-length epochs",
      "topics": [
        "mt_epoch"
      ]
    },
    {
      "page": "mt_features_from_eeg_csv",
      "title": "Features from one CSV file of preprocessed EEG per subject",
      "topics": [
        "mt_features_from_eeg_csv"
      ]
    },
    {
      "page": "mt_features_from_epochs",
      "title": "Subject-by-feature matrices from per-subject epoch arrays",
      "topics": [
        "mt_features_from_epochs"
      ]
    },
    {
      "page": "mt_label_space",
      "title": "Enumerate the complete two-group labelling space",
      "topics": [
        "mt_label_space"
      ]
    },
    {
      "page": "mt_labelings",
      "title": "Metric-T under alternative labelling rules",
      "topics": [
        "mt_labelings"
      ]
    },
    {
      "page": "mt_labelset",
      "title": "Metric-T over the complete set of admissible labellings",
      "topics": [
        "mt_labelset"
      ]
    },
    {
      "page": "mt_locate",
      "title": "Locate a labelling in the labelling space",
      "topics": [
        "mt_locate"
      ]
    },
    {
      "page": "mt_motion_bands",
      "title": "Frequency bands for paced repetitive movement (Hz)",
      "topics": [
        "mt_motion_bands"
      ]
    },
    {
      "page": "mt_null_plot",
      "title": "Permutation null distribution of T for one condition",
      "topics": [
        "mt_null_plot"
      ]
    },
    {
      "page": "mt_read_npy",
      "title": "Read a NumPy .npy file (base R, no Python needed)",
      "topics": [
        "mt_read_npy"
      ]
    },
    {
      "page": "mt_read_npz",
      "title": "Read the feature archive written by the Python reference pipeline",
      "topics": [
        "mt_read_npz"
      ]
    },
    {
      "page": "mt_simulate",
      "title": "Simulate EEG with tunable coupling-mode composition",
      "topics": [
        "mt_simulate"
      ]
    },
    {
      "page": "mt_simulate_motion",
      "title": "Simulate pose-estimated repetitive movement",
      "topics": [
        "mt_simulate_motion"
      ]
    },
    {
      "page": "mt_write_features_csv",
      "title": "Write and read features as a plain CSV table",
      "topics": [
        "mt_read_features_csv",
        "mt_write_features_csv"
      ]
    },
    {
      "page": "mt_wy_maxt",
      "title": "Westfall-Young max-T step-down adjustment",
      "topics": [
        "mt_wy_maxt"
      ]
    },
    {
      "page": "plot.metricT",
      "title": "Plot direction consistency for both metrics",
      "topics": [
        "plot.metricT"
      ]
    },
    {
      "page": "run_metricT_app",
      "title": "Launch the Metric-T graphical interface",
      "topics": [
        "run_metricT_app"
      ]
    }
  ],
  "_readme": "https://github.com/akimura753/metrict/raw/HEAD/README.md",
  "_rundeps": [],
  "_vignettes": [
    {
      "source": "metricT.Rmd",
      "filename": "metricT.html",
      "title": "Metric-T: checking whether a connectivity result depends on the metric",
      "engine": "knitr::rmarkdown",
      "headings": [
        "When to use Metric-T",
        "The statistic",
        "Input data",
        "Two-group analysis",
        "Reading the output",
        "Small samples: exact enumeration",
        "The complete labelling space",
        "Continuous covariates",
        "Graphical interface",
        "Common mistakes",
        "Citation"
      ],
      "created": "2026-10-18 15:36:19",
      "modified": "2026-10-18 15:36:19",
      "commits": 1
    }
  ],
  "_score": 4,
  "_indexed": true,
  "_nocasepkg": "metrict",
  "_universes": [
    "akimura753"
  ],
  "_previous": "0.2.0",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.1",
      "date": "2026-10-18T18:26:24.000Z",
      "distro": "resolute",
      "commit": "eb8b33d67634736ddd83e78387b3ae298e2cdf53",
      "fileid": "https://r2.ropensci.org/7a7842ffe6c90b53d753a1d57c886bef9b1b251abeb3c0212ba7f61a12f53d4a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/akimura753/actions/runs/39153817463"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.2.1",
      "date": "2026-10-18T18:26:23.000Z",
      "distro": "resolute",
      "commit": "eb8b33d67634736ddd83e78387b3ae298e2cdf53",
      "fileid": "https://r2.ropensci.org/28e98a86e95d01974ec9471891842154f867f343c83b25b4780f124d7197a83e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/akimura753/actions/runs/39153817463"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.1",
      "date": "2026-10-18T18:26:33.000Z",
      "commit": "eb8b33d67634736ddd83e78387b3ae298e2cdf53",
      "fileid": "https://r2.ropensci.org/b4daa94b50c560bad6b3811a07f5ba86c58abb6fffb27a51ef5167a7422033fb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/akimura753/actions/runs/39153817463"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.2.1",
      "date": "2026-10-18T18:28:18.000Z",
      "commit": "eb8b33d67634736ddd83e78387b3ae298e2cdf53",
      "fileid": "https://r2.ropensci.org/aaec12095da40b9367e6bc436910872449e7d599ff65baa6acef530c177f3bdf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/akimura753/actions/runs/39153817463"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.1",
      "date": "2026-10-18T18:26:16.000Z",
      "commit": "eb8b33d67634736ddd83e78387b3ae298e2cdf53",
      "fileid": "https://r2.ropensci.org/58a74f4e06e15cfce264a018217ce9805a93294220016cf429bc433ed205bac0",
      "status": "success",
      "buildurl": "https://github.com/r-universe/akimura753/actions/runs/39153817463"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.1",
      "date": "2026-10-18T18:25:39.000Z",
      "commit": "eb8b33d67634736ddd83e78387b3ae298e2cdf53",
      "fileid": "https://r2.ropensci.org/d8fa5aa919cc87d6e065247728976364cd1e3e4d3248f92f2faa6bf464e6ad5c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/akimura753/actions/runs/39153817463"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.1",
      "date": "2026-10-18T18:25:27.000Z",
      "commit": "eb8b33d67634736ddd83e78387b3ae298e2cdf53",
      "fileid": "https://r2.ropensci.org/6cc7b2f0a0e8c849f58a7a297a11dc2cb96c0c2eec25f1f318bdd88bbdaf0615",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/akimura753/actions/runs/39153817463"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.2.1",
      "date": "2026-10-18T18:25:44.000Z",
      "commit": "eb8b33d67634736ddd83e78387b3ae298e2cdf53",
      "fileid": "https://r2.ropensci.org/ee1b2efb7b5c09b958ba4e8b6a2a62ef4011ac4e3ed4f4703dd7d9d777bbef92",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/akimura753/actions/runs/39153817463"
    }
  ]
}