{"id":18050348,"url":"https://github.com/kevinrue/unisets","last_synced_at":"2025-10-17T09:07:02.779Z","repository":{"id":74316208,"uuid":"165846880","full_name":"kevinrue/unisets","owner":"kevinrue","description":"Collection of classes to store gene sets.","archived":false,"fork":false,"pushed_at":"2020-05-11T22:11:07.000Z","size":988,"stargazers_count":3,"open_issues_count":10,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-10T14:11:46.282Z","etag":null,"topics":["bioconductor-package","classes-and-objects","genesets","r","s4","structured-data"],"latest_commit_sha":null,"homepage":"http://kevinrue.github.io/unisets","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/kevinrue.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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}},"created_at":"2019-01-15T12:26:01.000Z","updated_at":"2020-05-11T21:45:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"1be7d2ac-9bf6-44ea-97d8-bf788f5b66c5","html_url":"https://github.com/kevinrue/unisets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinrue%2Funisets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinrue%2Funisets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinrue%2Funisets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinrue%2Funisets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevinrue","download_url":"https://codeload.github.com/kevinrue/unisets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247295975,"owners_count":20915554,"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","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":["bioconductor-package","classes-and-objects","genesets","r","s4","structured-data"],"created_at":"2024-10-30T21:11:23.260Z","updated_at":"2025-10-17T09:06:57.730Z","avatar_url":"https://github.com/kevinrue.png","language":"R","readme":"\u003c!-- badges: start --\u003e\n[![Travis build status](https://travis-ci.org/kevinrue/unisets.svg?branch=master)](https://travis-ci.org/kevinrue/unisets)\n[![Coverage status](https://codecov.io/gh/kevinrue/unisets/branch/master/graph/badge.svg)](https://codecov.io/github/kevinrue/unisets?branch=master)\n[![R build status](https://github.com/kevinrue/unisets/workflows/R-CMD-check/badge.svg)](https://github.com/kevinrue/unisets/actions)\n\u003c!-- badges: end --\u003e\n\n# unisets\n\nThe goal of the [_unisets_](https://github.com/kevinrue/unisets) package is to provide a collection of S4 classes to store relationships between elements and sets, with a particular emphasis on gene sets.\n\n## Installation\n\nYou can install the released version of unisets from [GitHub](https://github.com/kevinrue/unisets) with:\n\n``` r\ndevtools::install_github(\"kevinrue/unisets\")\n```\n\nTo compile the vignette as well, please use the following command:\n\n``` r\ndevtools::install_github(\"kevinrue/unisets\", build_opts = c(\"--no-resave-data\", \"--no-manual\"))\n```\n\n## Example\n\nThis is a basic example which shows you how to create a `Sets` object, to store simple associations between genes and sets:\n\n``` r\nlibrary(unisets)\nsets_list \u003c- list(\n    set1 = c(\"A\", \"B\"),\n    set2 = c(\"B\", \"C\", \"D\")\n)\nrelations_table \u003c- DataFrame(\n    element = unlist(sets_list),\n    set     = rep(names(sets_list), lengths(sets_list)),\n    extra1  = rep(c(\"ABC\", \"DEF\"), c(3L, 2L)),\n    extra2  = seq(0, 1, length.out = 5L)\n)\nelement_data \u003c- IdVector(c(\"A\", \"B\", \"C\", \"D\"))\nelementMetadata(element_data) \u003c- DataFrame(\n    stat1     = c( 1,   2,   3,   4 ),\n    info1     = c(\"a\", \"b\", \"c\", \"d\")\n)\nset_data \u003c- IdVector(c(\"set1\", \"set2\"))\nelementMetadata(set_data) \u003c- DataFrame(\n    stat1     = c( 100,   200 ),\n    info1     = c(\"abc\", \"def\")\n)\nbase_set \u003c- Sets(relations_table, element_data, set_data)\nbase_set\n```\n\n```\nSets with 5 relations between 4 elements and 2 sets\n        element         set |      extra1    extra2\n    \u003ccharacter\u003e \u003ccharacter\u003e | \u003ccharacter\u003e \u003cnumeric\u003e\n[1]           A        set1 |         ABC         0\n[2]           B        set1 |         ABC      0.25\n[3]           B        set2 |         ABC       0.5\n[4]           C        set2 |         DEF      0.75\n[5]           D        set2 |         DEF         1\n-----------\nelementInfo: IdVector with 2 metadata (stat1, info1)\n    setInfo: IdVector with 2 metadata (stat1, info1)\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinrue%2Funisets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevinrue%2Funisets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinrue%2Funisets/lists"}