{
  "_id": "6a20bbbfcd65a98ecbd19ff6",
  "Package": "detectRUNS",
  "Type": "Package",
  "Title": "Detect Runs of Homozygosity and Runs of Heterozygosity in\nDiploid Genomes",
  "Version": "0.9.7",
  "Date": "2026-06-02",
  "Authors@R": "c(\nperson(\"Filippo\",\"Biscarini\", email=\"filippo.biscarini@gmail.com\", role=c(\"aut\", \"cre\")),\nperson(\"Paolo\",\"Cozzi\", email=\"paolo.cozzi@ibba.cnr.it\", role=\"aut\"),\nperson(\"Giustino\",\"Gaspa\", email=\"gigaspa@uniss.it\", role=\"aut\"),\nperson(\"Gabriele\",\"Marras\", email=\"gmarras@uoguelph.ca\", role=\"aut\")\n)",
  "Description": "Detection of runs of homozygosity and of heterozygosity in\ndiploid genomes using two methods: sliding windows (Purcell et\nal (2007) <doi:10.1086/519795>) and consecutive runs (Marras et\nal (2015) <doi:10.1111/age.12259>).",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "VignetteBuilder": "knitr",
  "URL": "https://github.com/bioinformatics-ptp/detectRUNS/tree/master/detectRUNS",
  "BugReports": "https://github.com/bioinformatics-ptp/detectRUNS/issues",
  "Config/roxygen2/version": "8.0.0",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://bioinformatics-ptp.r-universe.dev",
  "Date/Publication": "2026-06-03 23:15:31 UTC",
  "RemoteUrl": "https://github.com/bioinformatics-ptp/detectruns",
  "RemoteRef": "HEAD",
  "RemoteSha": "4328e3cefe5e4d635e6d1d9e69def9efe99bec67",
  "RemoteSubdir": "detectRUNS",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-06-03 23:37:26 UTC",
    "User": "root"
  },
  "Author": "Filippo Biscarini [aut, cre],\nPaolo Cozzi [aut],\nGiustino Gaspa [aut],\nGabriele Marras [aut]",
  "Maintainer": "Filippo Biscarini <filippo.biscarini@gmail.com>",
  "MD5sum": "cb944eff11ac3da90bc2c44bcc5f0d93",
  "_user": "bioinformatics-ptp",
  "_type": "src",
  "_file": "detectRUNS_0.9.7.tar.gz",
  "_fileid": "579e3a710f1f4ed1499f83bd33a97e532dc6392fa403bc76ac8ab21be6ad91dd",
  "_filesize": 1368964,
  "_sha256": "579e3a710f1f4ed1499f83bd33a97e532dc6392fa403bc76ac8ab21be6ad91dd",
  "_created": "2026-06-03T23:37:26.000Z",
  "_published": "2026-06-03T23:41:51.484Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79418153799,
      "time": 160,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7399367624"
    },
    {
      "job": 79418153797,
      "time": 161,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7399367503"
    },
    {
      "job": 79418153813,
      "time": 169,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7399370027"
    },
    {
      "job": 79418153812,
      "time": 143,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7399363241"
    },
    {
      "job": 79418153844,
      "time": 111,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7399355709"
    },
    {
      "job": 79418153827,
      "time": 206,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7399378459"
    },
    {
      "job": 79418153807,
      "time": 105,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7399354338"
    },
    {
      "job": 79418153830,
      "time": 213,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7399379884"
    },
    {
      "job": 79417704946,
      "time": 210,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7399326338"
    },
    {
      "job": 79418153778,
      "time": 119,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7399357409"
    },
    {
      "job": 79418153801,
      "time": 147,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7399363799"
    },
    {
      "job": 79418153834,
      "time": 125,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7399358838"
    },
    {
      "job": 79418153826,
      "time": 134,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7399360933"
    }
  ],
  "_buildurl": "https://github.com/r-universe/bioinformatics-ptp/actions/runs/26919804285",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/bioinformatics-ptp/detectruns",
  "_commit": {
    "id": "4328e3cefe5e4d635e6d1d9e69def9efe99bec67",
    "author": "Gabriele Marras <gabrielemarras@Gabrieles-MacBook-Pro.local>",
    "committer": "Gabriele Marras <gabrielemarras@Gabrieles-MacBook-Pro.local>",
    "message": "docs: add NEWS.md entry for 0.9.7 release\n",
    "time": 1780528531
  },
  "_maintainer": {
    "name": "Filippo Biscarini",
    "email": "filippo.biscarini@gmail.com",
    "login": "filippob",
    "description": "Bioinformatics and biostatistics in plants, animals and humans. Worked in Ireland, Canada, The Netherlands, Germany, Spain, UK, Italy, Belgium. Currently at CNR",
    "uuid": 4982948
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.0.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "plyr",
      "role": "Imports"
    },
    {
      "package": "iterators",
      "role": "Imports"
    },
    {
      "package": "itertools",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "reshape2",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "gridExtra",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "prettydoc",
      "role": "Suggests"
    }
  ],
  "_owner": "bioinformatics-ptp",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-22",
      "n": 2
    },
    {
      "week": "2026-23",
      "n": 2
    }
  ],
  "_tags": [
    {
      "name": "v0.9.7",
      "date": "2026-06-03"
    }
  ],
  "_stars": 14,
  "_contributors": [
    {
      "user": "bunop",
      "count": 180,
      "uuid": 5947792
    },
    {
      "user": "filippob",
      "count": 50,
      "uuid": 4982948
    },
    {
      "user": "nicolazzie",
      "count": 1,
      "uuid": 7117166
    },
    {
      "user": "malbianco",
      "count": 1,
      "uuid": 10710080
    }
  ],
  "_userbio": {
    "uuid": 1736488,
    "type": "organization",
    "name": "Bioinformatics PTP (Parco Tecnologico Padano)",
    "description": "Bioinformatic group @ PTP"
  },
  "_downloads": {
    "count": 435,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/detectRUNS"
  },
  "_mentions": 11,
  "_devurl": "https://github.com/bioinformatics-ptp/detectruns",
  "_searchresults": 58,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/detectRUNS.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/bioinformatics-ptp/detectruns",
  "_realowner": "bioinformatics-ptp",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.9.5",
      "date": "2018-02-06"
    },
    {
      "version": "0.9.6",
      "date": "2019-10-24"
    }
  ],
  "_exports": [
    "consecutiveRUNS.run",
    "Froh_inbreeding",
    "Froh_inbreedingClass",
    "plot_DistributionRuns",
    "plot_InbreedingChr",
    "plot_manhattanRuns",
    "plot_PatternRuns",
    "plot_Runs",
    "plot_SnpsInRuns",
    "plot_StackedRuns",
    "plot_ViolinRuns",
    "readExternalRuns",
    "reorderDF",
    "slidingRUNS.run",
    "summaryRuns",
    "tableRuns"
  ],
  "_help": [
    {
      "page": "classifyRuns",
      "title": "Classify runs in bins.",
      "topics": [
        "classifyRuns"
      ]
    },
    {
      "page": "consecutiveRUNS.run",
      "title": "Main function to detect genomic RUNS (ROHom/ROHet) using the consecutive method",
      "topics": [
        "consecutiveRUNS.run"
      ]
    },
    {
      "page": "consecutiveRunsCpp",
      "title": "Function to detect consecutive runs in a vector (individual's genotypes)",
      "topics": [
        "consecutiveRunsCpp"
      ]
    },
    {
      "page": "createRUNdf",
      "title": "Function to create a dataframe of RUNS per individual animal Requires a map file (other filename to read or R object) Parameters on maximum number of missing and opposite genotypes in the run (not the window) are implemented here",
      "topics": [
        "createRUNdf"
      ]
    },
    {
      "page": "findOppositeAndMissing",
      "title": "Function to calculate oppositeAndMissingGenotypes array",
      "topics": [
        "findOppositeAndMissing"
      ]
    },
    {
      "page": "Froh_inbreeding",
      "title": "Function to calculated Froh genome-wide or chromosome-wide",
      "topics": [
        "Froh_inbreeding"
      ]
    },
    {
      "page": "Froh_inbreedingClass",
      "title": "Function to calculated Froh using a ROH-class",
      "topics": [
        "Froh_inbreedingClass"
      ]
    },
    {
      "page": "genoConvertCpp",
      "title": "Convert 0/1/2 genotypes to 0/1",
      "topics": [
        "genoConvertCpp"
      ]
    },
    {
      "page": "heteroZygotTest",
      "title": "Function to check whether a window is (loosely) heterozygous or not",
      "topics": [
        "heteroZygotTest"
      ]
    },
    {
      "page": "heteroZygotTestCpp",
      "title": "Function to check whether a window is (loosely) heterozygous or not",
      "topics": [
        "heteroZygotTestCpp"
      ]
    },
    {
      "page": "homoZygotTest",
      "title": "Function to check whether a window is (loosely) homozygous or not",
      "topics": [
        "homoZygotTest"
      ]
    },
    {
      "page": "homoZygotTestCpp",
      "title": "Function to check whether a window is (loosely) homozygous or not",
      "topics": [
        "homoZygotTestCpp"
      ]
    },
    {
      "page": "pedConvertCpp",
      "title": "Convert ped genotypes to 0/1",
      "topics": [
        "pedConvertCpp"
      ]
    },
    {
      "page": "plot_DistributionRuns",
      "title": "Plot Distribution of runs",
      "topics": [
        "plot_DistributionRuns"
      ]
    },
    {
      "page": "plot_InbreedingChr",
      "title": "Plot Froh-based inbreeding coefficients by group",
      "topics": [
        "plot_InbreedingChr"
      ]
    },
    {
      "page": "plot_manhattanRuns",
      "title": "Plot the proportion of times SNPs are inside runs - MANHATTAN PLOT",
      "topics": [
        "plot_manhattanRuns"
      ]
    },
    {
      "page": "plot_PatternRuns",
      "title": "Plot sum of run-lengths (or average run-lengths) against the number of runs per individual",
      "topics": [
        "plot_PatternRuns"
      ]
    },
    {
      "page": "plot_Runs",
      "title": "Function to plot runs per individual",
      "topics": [
        "plot_Runs"
      ]
    },
    {
      "page": "plot_SnpsInRuns",
      "title": "Plot the number of times each SNP falls inside runs",
      "topics": [
        "plot_SnpsInRuns"
      ]
    },
    {
      "page": "plot_StackedRuns",
      "title": "Plot stacked runs",
      "topics": [
        "plot_StackedRuns"
      ]
    },
    {
      "page": "plot_ViolinRuns",
      "title": "Violin plot of run length per individual (either sum or mean)",
      "topics": [
        "plot_ViolinRuns"
      ]
    },
    {
      "page": "readExternalRuns",
      "title": "Read runs from external files",
      "topics": [
        "readExternalRuns"
      ]
    },
    {
      "page": "readPOPCpp",
      "title": "Function to return a dataframe of population (POP, ID)",
      "topics": [
        "readPOPCpp"
      ]
    },
    {
      "page": "reorderDF",
      "title": "Function to reorder data frames by CHROMOSOME",
      "topics": [
        "reorderDF"
      ]
    },
    {
      "page": "slidingRUNS.run",
      "title": "Main function to detect RUNS (ROHom/ROHet) using sliding windows (a la Plink)",
      "topics": [
        "slidingRUNS.run"
      ]
    },
    {
      "page": "slidingWindow",
      "title": "Function to slide a window over a vector (individual's genotypes)",
      "topics": [
        "slidingWindow"
      ]
    },
    {
      "page": "slidingWindowCpp",
      "title": "Function to slide a window over a vector (individual's genotypes)",
      "topics": [
        "slidingWindowCpp"
      ]
    },
    {
      "page": "snpInRun",
      "title": "Function to return a vector of T/F for whether a SNP is or not in a RUN",
      "topics": [
        "snpInRun"
      ]
    },
    {
      "page": "snpInRunCpp",
      "title": "Function to return a vector of T/F for whether a SNP is or not in a RUN",
      "topics": [
        "snpInRunCpp"
      ]
    },
    {
      "page": "snpInsideRunsCpp",
      "title": "Function to count number of times a SNP is in a RUN",
      "topics": [
        "snpInsideRunsCpp"
      ]
    },
    {
      "page": "summaryRuns",
      "title": "Summary statistics on detected runs",
      "topics": [
        "summaryRuns"
      ]
    },
    {
      "page": "tableRuns",
      "title": "Function to retrieve most common runs in the population",
      "topics": [
        "tableRuns"
      ]
    },
    {
      "page": "writeRUN",
      "title": "Function to write out RUNS per individual animal",
      "topics": [
        "writeRUN"
      ]
    }
  ],
  "_readme": "https://github.com/bioinformatics-ptp/detectruns/raw/HEAD/detectRUNS/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "data.table",
    "farver",
    "ggplot2",
    "glue",
    "gridExtra",
    "gtable",
    "isoband",
    "iterators",
    "itertools",
    "labeling",
    "lifecycle",
    "magrittr",
    "plyr",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "reshape2",
    "rlang",
    "S7",
    "scales",
    "stringi",
    "stringr",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "detectRUNS.vignette.Rmd",
      "filename": "detectRUNS.vignette.html",
      "title": "detectRUNS: an R package to detect runs of homozygosity and heterozygosity in diploid genomes",
      "author": "Filippo Biscarini, Paolo Cozzi, Giustino Gaspa, Gabriele Marras",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Sample data",
        "Detect runs",
        "sliding-window-based run detection",
        "consecutive SNP-based run detection",
        "\"Runs of heterozygosity\" (a.k.a. heterozygosity-rich regions)",
        "Summary statistics on detected runs",
        "Plots",
        "$F_{ROH}$: ROH-based inbreeding",
        "Importing data from external files",
        "References"
      ],
      "created": "2017-11-08 08:32:49",
      "modified": "2026-05-28 16:27:15",
      "commits": 5
    }
  ],
  "_score": 7.386677283960838,
  "_indexed": true,
  "_nocasepkg": "detectruns",
  "_universes": [
    "bioinformatics-ptp",
    "filippob"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.9.7",
      "date": "2026-06-03T23:40:08.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "4328e3cefe5e4d635e6d1d9e69def9efe99bec67",
      "fileid": "a5e8fab945069ba1780914ae39422fa119441903017e46b8bf39cab0510952f9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bioinformatics-ptp/actions/runs/26919804285"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.9.7",
      "date": "2026-06-03T23:40:00.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "4328e3cefe5e4d635e6d1d9e69def9efe99bec67",
      "fileid": "1f2c6b3c881f7ffb0662a735a44272861da3cf2d38ede5ea96f8ec7d7dcda12a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bioinformatics-ptp/actions/runs/26919804285"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.9.7",
      "date": "2026-06-03T23:40:14.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "4328e3cefe5e4d635e6d1d9e69def9efe99bec67",
      "fileid": "6803b43b81c250cd66ba191ef4fbdcfb3efbdee22d7a2714e45b8b47806d604e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bioinformatics-ptp/actions/runs/26919804285"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.9.7",
      "date": "2026-06-03T23:39:44.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "4328e3cefe5e4d635e6d1d9e69def9efe99bec67",
      "fileid": "d8891837698c1d7317c015ad8cd1621686e11a77901cd1d5e2a0ed302b90c2c3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bioinformatics-ptp/actions/runs/26919804285"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.9.7",
      "date": "2026-06-03T23:39:27.000Z",
      "arch": "aarch64",
      "commit": "4328e3cefe5e4d635e6d1d9e69def9efe99bec67",
      "fileid": "a7fcc13483114850f8a9e57458a5aba75ae3d13bbf45be100fab289864dce4d1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bioinformatics-ptp/actions/runs/26919804285"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.9.7",
      "date": "2026-06-03T23:40:27.000Z",
      "arch": "x86_64",
      "commit": "4328e3cefe5e4d635e6d1d9e69def9efe99bec67",
      "fileid": "8e4c9ac4ae5941349402e9433d8f2b27752852477736c5ea3d7b35bd4603c8c3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bioinformatics-ptp/actions/runs/26919804285"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.9.7",
      "date": "2026-06-03T23:39:17.000Z",
      "arch": "aarch64",
      "commit": "4328e3cefe5e4d635e6d1d9e69def9efe99bec67",
      "fileid": "3d502b8630573bdf08718110675db693d79e9ded980b70ab24a034f670e3c37e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bioinformatics-ptp/actions/runs/26919804285"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.9.7",
      "date": "2026-06-03T23:40:37.000Z",
      "arch": "x86_64",
      "commit": "4328e3cefe5e4d635e6d1d9e69def9efe99bec67",
      "fileid": "121bfed40b6041fea9045eb34bbf2e0e6faf866c6273d3acde4518282d5a4ac5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bioinformatics-ptp/actions/runs/26919804285"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.9.7",
      "date": "2026-06-03T23:39:50.000Z",
      "arch": "emscripten",
      "commit": "4328e3cefe5e4d635e6d1d9e69def9efe99bec67",
      "fileid": "52b97f211e12860d810d2162896db9570db94c3b0675d5db1b6108189825d301",
      "status": "success",
      "buildurl": "https://github.com/r-universe/bioinformatics-ptp/actions/runs/26919804285"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.9.7",
      "date": "2026-06-03T23:39:27.000Z",
      "arch": "x86_64",
      "commit": "4328e3cefe5e4d635e6d1d9e69def9efe99bec67",
      "fileid": "dba07d219d6b7bb42d90adfae66bcf1e7fa0d3df12c92ce3b17c67be27bedc7a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bioinformatics-ptp/actions/runs/26919804285"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.9.7",
      "date": "2026-06-03T23:38:58.000Z",
      "arch": "x86_64",
      "commit": "4328e3cefe5e4d635e6d1d9e69def9efe99bec67",
      "fileid": "3caba6cb972806532ca681d4d56c683757c3e12352011fb67e7e5d499c384cb8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bioinformatics-ptp/actions/runs/26919804285"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.9.7",
      "date": "2026-06-03T23:39:04.000Z",
      "arch": "x86_64",
      "commit": "4328e3cefe5e4d635e6d1d9e69def9efe99bec67",
      "fileid": "f17d1510e3393c776fef1e09db7f5766160281e3a4295c35cb6d02f9d3f3764e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bioinformatics-ptp/actions/runs/26919804285"
    }
  ]
}