{"id":30805317,"url":"https://github.com/bbuchsbaum/fmridesign","last_synced_at":"2025-09-06T00:55:32.502Z","repository":{"id":309966341,"uuid":"1038111492","full_name":"bbuchsbaum/fmridesign","owner":"bbuchsbaum","description":"R package for fmri design generation ","archived":false,"fork":false,"pushed_at":"2025-08-14T20:17:25.000Z","size":5154,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-14T22:19:58.179Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bbuchsbaum.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-08-14T16:30:22.000Z","updated_at":"2025-08-14T20:17:30.000Z","dependencies_parsed_at":"2025-08-14T22:30:25.441Z","dependency_job_id":null,"html_url":"https://github.com/bbuchsbaum/fmridesign","commit_stats":null,"previous_names":["bbuchsbaum/fmridesign"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/bbuchsbaum/fmridesign","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbuchsbaum%2Ffmridesign","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbuchsbaum%2Ffmridesign/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbuchsbaum%2Ffmridesign/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbuchsbaum%2Ffmridesign/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bbuchsbaum","download_url":"https://codeload.github.com/bbuchsbaum/fmridesign/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbuchsbaum%2Ffmridesign/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273842848,"owners_count":25177921,"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-09-05T02:00:09.113Z","response_time":402,"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":[],"created_at":"2025-09-06T00:55:31.270Z","updated_at":"2025-09-06T00:55:32.482Z","avatar_url":"https://github.com/bbuchsbaum.png","language":"R","readme":"# fmridesign\n\nDesign Matrix Construction for fMRI Analysis\n\n## Overview\n\n`fmridesign` provides tools for constructing design matrices for functional magnetic resonance imaging (fMRI) analyses. It includes facilities for creating event models with flexible hemodynamic response functions (HRFs), baseline models for nuisance regression, and utilities for handling experimental designs.\n\nThis package focuses on the design aspect of fMRI analysis and is intended to be used with analysis packages like `fmrireg`.\n\n## Installation\n\n```r\n# Install development version from GitHub\n# install.packages(\"devtools\")\ndevtools::install_github(\"bbuchsbaum/fmridesign\")\n```\n\n## Key Features\n\n- **Event Models**: Create experimental design matrices with flexible HRF specifications\n- **Baseline Models**: Build nuisance regressors for drift, motion, and other confounds  \n- **Flexible HRFs**: Support for various hemodynamic response functions via the `fmrihrf` package\n- **Block Designs**: Handle multi-run/session fMRI experiments\n\n## Basic Usage\n\n```r\nlibrary(fmridesign)\n\n# Create event data\nevent_data \u003c- data.frame(\n  condition = factor(c(\"A\", \"B\", \"A\", \"B\")),\n  onsets = c(1, 10, 20, 80),\n  run = c(1, 1, 1, 1)\n)\n\n# Define sampling frame\nsframe \u003c- sampling_frame(blocklens = 100, TR = 2)\n\n# Create event model\nev_model \u003c- event_model(\n  onsets ~ hrf(condition),\n  data = event_data,\n  block = ~run,\n  sampling_frame = sframe\n)\n\n# Create baseline model\nbase_model \u003c- baseline_model(\n  basis = \"bs\",\n  degree = 3,\n  sframe = sframe\n)\n\n# Extract design matrices\nevent_dm \u003c- design_matrix(ev_model)\nbaseline_dm \u003c- design_matrix(base_model)\n```\n\n## Related Packages\n\n- `fmrireg`: Analysis and fitting of fMRI models\n- `fmrihrf`: Hemodynamic response functions\n- `fmridataset`: fMRI dataset structures\n\n## License\n\nGPL (\u003e= 2)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbuchsbaum%2Ffmridesign","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbbuchsbaum%2Ffmridesign","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbuchsbaum%2Ffmridesign/lists"}