{"id":32175770,"url":"https://github.com/rnabioco/valr","last_synced_at":"2025-10-21T19:47:45.310Z","repository":{"id":41523095,"uuid":"49370633","full_name":"rnabioco/valr","owner":"rnabioco","description":"Genome Interval Arithmetic in R","archived":false,"fork":false,"pushed_at":"2025-10-21T15:15:19.000Z","size":73237,"stargazers_count":94,"open_issues_count":4,"forks_count":24,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-10-21T19:47:44.775Z","etag":null,"topics":["bedtools","genome","interval-arithmetic"],"latest_commit_sha":null,"homepage":"http://rnabioco.github.io/valr/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rnabioco.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2016-01-10T14:38:43.000Z","updated_at":"2025-10-21T15:04:58.000Z","dependencies_parsed_at":"2023-10-11T19:13:02.650Z","dependency_job_id":"323a26a6-e414-43cf-98e9-d48e969a33b8","html_url":"https://github.com/rnabioco/valr","commit_stats":{"total_commits":914,"total_committers":10,"mean_commits":91.4,"dds":0.1838074398249453,"last_synced_commit":"a4093efbd9622402e1f017ab1b1f61ec756f80eb"},"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"purl":"pkg:github/rnabioco/valr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rnabioco%2Fvalr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rnabioco%2Fvalr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rnabioco%2Fvalr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rnabioco%2Fvalr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rnabioco","download_url":"https://codeload.github.com/rnabioco/valr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rnabioco%2Fvalr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280325297,"owners_count":26311419,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bedtools","genome","interval-arithmetic"],"created_at":"2025-10-21T19:47:40.786Z","updated_at":"2025-10-21T19:47:45.304Z","avatar_url":"https://github.com/rnabioco.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n```{r, echo = FALSE, message = FALSE}\nknitr::opts_chunk$set(\n  fig.align = \"center\",\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\"\n)\n```\n\n# valr \u003cimg src=\"man/figures/logo.png\" align=\"right\" /\u003e\n\n\u003c!-- badges: start --\u003e\n[![R-CMD-check](https://github.com/rnabioco/valr/actions/workflows/check-standard.yaml/badge.svg)](https://github.com/rnabioco/valr/actions/workflows/check-standard.yaml)\n[![codecov](https://codecov.io/github/rnabioco/valr/graph/badge.svg)](https://app.codecov.io/github/rnabioco/valr)\n[![](https://www.r-pkg.org/badges/version/valr)](https://CRAN.R-project.org/package=valr)\n\u003c!-- badges: end --\u003e\n\nvalr provides tools to read and manipulate genome intervals and signals, similar to the [BEDtools](https://bedtools.readthedocs.io/en/latest/) suite. \n\n## Installation\n\n::: .pkgdown-release\n```{r, eval = FALSE}\n# Install released version from CRAN\ninstall.packages(\"valr\")\n```\n:::\n\n::: .pkgdown-devel\n```{r, eval = FALSE}\n# Install development version from GitHub\n# install.packages(\"pak\")\npak::pak(\"rnabioco/valr\")\n```\n:::\n\n## valr Example\n\nFunctions in valr have similar names to their BEDtools counterparts, and so will be familiar to users coming from the BEDtools suite. Unlike other tools that wrap BEDtools and write temporary files to disk, valr tools run natively in memory. Similar to [pybedtools](https://daler.github.io/pybedtools/#why-pybedtools), valr has a terse syntax:\n\n```{r syntax_demo, message = FALSE}\nlibrary(valr)\nlibrary(dplyr)\n\nsnps \u003c- read_bed(valr_example(\"hg19.snps147.chr22.bed.gz\"))\ngenes \u003c- read_bed(valr_example(\"genes.hg19.chr22.bed.gz\"))\n\n# find snps in intergenic regions\nintergenic \u003c- bed_subtract(snps, genes)\n# find distance from intergenic snps to nearest gene\nnearby \u003c- bed_closest(intergenic, genes)\n\nnearby |\u003e\n  select(starts_with(\"name\"), .overlap, .dist) |\u003e\n  filter(abs(.dist) \u003c 5000)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frnabioco%2Fvalr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frnabioco%2Fvalr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frnabioco%2Fvalr/lists"}