{"id":25176077,"url":"https://github.com/quantgen/grmmatrix","last_synced_at":"2026-07-08T19:31:39.153Z","repository":{"id":92124941,"uuid":"80143554","full_name":"QuantGen/grmMatrix","owner":"QuantGen","description":null,"archived":false,"fork":false,"pushed_at":"2017-02-24T20:20:46.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-25T23:44:03.786Z","etag":null,"topics":["r","r-pkg"],"latest_commit_sha":null,"homepage":null,"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/QuantGen.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-01-26T18:43:52.000Z","updated_at":"2020-05-10T10:53:12.000Z","dependencies_parsed_at":"2023-03-11T21:01:05.457Z","dependency_job_id":null,"html_url":"https://github.com/QuantGen/grmMatrix","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/QuantGen/grmMatrix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuantGen%2FgrmMatrix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuantGen%2FgrmMatrix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuantGen%2FgrmMatrix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuantGen%2FgrmMatrix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QuantGen","download_url":"https://codeload.github.com/QuantGen/grmMatrix/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuantGen%2FgrmMatrix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35276622,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-08T02:00:06.796Z","response_time":61,"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":["r","r-pkg"],"created_at":"2025-02-09T13:16:00.723Z","updated_at":"2026-07-08T19:31:39.139Z","avatar_url":"https://github.com/QuantGen.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"grmMatrix\n=========\n\n[![Travis-CI Build Status](https://travis-ci.org/QuantGen/grmMatrix.svg?branch=master)](https://travis-ci.org/QuantGen/grmMatrix)\n[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/grmMatrix)](https://cran.r-project.org/package=grmMatrix)\n[![Rdoc](http://www.rdocumentation.org/badges/version/grmMatrix)](http://www.rdocumentation.org/packages/grmMatrix)\n\nExample\n-------\n\nThis example uses dummy GRM files bundled with this package. It was generated from the dummy BED files in the [BEDMatrix package](https://cran.r-project.org/package=BEDMatrix) using `gcta64 --bfile example --make-grm --out example` with GCTA 1.26.0.\n\nTo get the prefix to the dummy GRM files (`system.file` finds the full file names of files in packages and is only used to find the example data):\n\n```r\n\u003e prefix \u003c- paste0(system.file(\"extdata\", package = \"grmMatrix\"), \"/example\")\n```\n\nTo wrap the dummy GRM files in a grmMatrix object:\n\n```r\n\u003e m \u003c- grmMatrix$new(prefix = prefix)\n```\n\nTo get the dimensions of the grmMatrix object:\n\n```r\n\u003e dim(m)\n[1] 50 50\n```\n\nTo extract a subset of the BEDMatrix object:\n\n```r\n\u003e m[1:3, 1:3]\n           per0_per0    per1_per1    per2_per2\nper0_per0 0.99297035  0.045664247  0.956165433\nper1_per1 0.04566425  0.956165433 -0.003567911\nper2_per2 0.95616543 -0.003567911  0.981300116\n```\n\nTo extract the diagonal of the grmMatrix object:\n\n```r\n\u003e diag(m)\n  per0_per0   per1_per1   per2_per2   per3_per3   per4_per4   per5_per5\n  0.9929703   0.9561654   0.9813001   1.0006099   0.9571444   1.0086495\n  per6_per6   per7_per7   per8_per8   per9_per9 per10_per10 per11_per11\n  0.9779904   0.9986514   0.9818304   1.0304354   0.9246207   0.9786042\nper12_per12 per13_per13 per14_per14 per15_per15 per16_per16 per17_per17\n  1.0067449   0.9791979   1.0073903   0.9919306   0.9969872   1.0002682\nper18_per18 per19_per19 per20_per20 per21_per21 per22_per22 per23_per23\n  1.0341240   1.0021822   0.9916793   0.9868485   1.0195130   1.0006720\nper24_per24 per25_per25 per26_per26 per27_per27 per28_per28 per29_per29\n  1.0005078   1.0038743   0.9981703   1.0563536   1.0256737   0.9853888\nper30_per30 per31_per31 per32_per32 per33_per33 per34_per34 per35_per35\n  0.9726509   1.0062875   1.0499943   1.0089763   1.0286126   0.9993057\nper36_per36 per37_per37 per38_per38 per39_per39 per40_per40 per41_per41\n  1.0158972   1.0061988   0.9454290   0.9622741   1.0020869   0.9885394\nper42_per42 per43_per43 per44_per44 per45_per45 per46_per46 per47_per47\n  1.0198814   0.9933779   1.0055650   1.0098705   0.9839650   1.0303550\nper48_per48 per49_per49\n  1.0059229   0.9897712\n```\n\n\nInstallation\n------------\n\nTo get the current development version from GitHub:\n\n```r\n# install.packages(\"devtools\")\ndevtools::install_github(\"QuantGen/grmMatrix\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquantgen%2Fgrmmatrix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquantgen%2Fgrmmatrix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquantgen%2Fgrmmatrix/lists"}