fmriqa

An R package for fMRI quality assurance

https://github.com/martin3141/fmriqa

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 1 DOI reference(s) in README
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.7%) to scientific vocabulary

Keywords

fmri neuroimaging qa
Last synced: 6 months ago · JSON representation

Repository

An R package for fMRI quality assurance

Basic Info
  • Host: GitHub
  • Owner: martin3141
  • Language: R
  • Default Branch: master
  • Homepage:
  • Size: 2.14 MB
Statistics
  • Stars: 2
  • Watchers: 1
  • Forks: 4
  • Open Issues: 0
  • Releases: 0
Topics
fmri neuroimaging qa
Created about 8 years ago · Last pushed about 6 years ago
Metadata Files
Readme

README.Rmd

---
output: github_document
---



fmriqa
======

[![Travis build status](https://travis-ci.org/martin3141/fmriqa.svg?branch=master)](https://travis-ci.org/martin3141/fmriqa)
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/martin3141/fmriqa?branch=master&svg=true)](https://ci.appveyor.com/project/martin3141/fmriqa)
[![](http://cranlogs.r-pkg.org/badges/fmriqa)](http://cran.rstudio.com/web/packages/fmriqa/index.html)
[![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version/fmriqa)](https://cran.r-project.org/package=fmriqa)
[![Coverage Status](https://coveralls.io/repos/github/martin3141/fmriqa/badge.svg?branch=master)](https://coveralls.io/github/martin3141/fmriqa?branch=master)

## Overview
The fmriqa package provides an implementation of the fMRI quality assurance (QA) 
analysis protocol detailed by Friedman and Glover (2006) 
.

## Installation
You can install the stable version of fmriqa from CRAN:
```{r cran, eval = FALSE}
install.packages("fmriqa", dependencies = TRUE)
```

Or the the development version from GitHub (requires `devtools` package):
```{r github, eval = FALSE}
install.packages("devtools")
devtools::install_github("martin3141/fmriqa")
```

## Usage
```{r basic, eval = FALSE}
# load the package
library(fmriqa)

# get help on the options for run_fmriqa
?run_fmriqa

# run the analysis - a file chooser will appear when a data_file argument is not given
run_fmriqa()
```

## Real data example
```{r real_data, eval = TRUE}
library(fmriqa)
fname <- system.file("extdata", "qa_data.nii.gz", package = "fmriqa")
res <- run_fmriqa(data_file = fname, gen_png = FALSE, gen_res_csv = FALSE, tr = 3)
```

## Simulation example
```{r simulate, eval = TRUE}
library(fmriqa)
library(oro.nifti)

# generate random data
set.seed(1)
sim_data <- array(rnorm(80 * 80 * 1 * 100), dim = c(80, 80, 1, 100))
sim_data[20:60, 20:60, 1, ] <- sim_data[20:60, 20:60, 1, ] + 50
sim_nifti <- oro.nifti::as.nifti(sim_data)
fname <- tempfile()
writeNIfTI(sim_nifti, fname)

# perform qa
res <- run_fmriqa(fname, gen_png = FALSE, gen_res_csv = FALSE)
res$snr
```

## Plot output from real data showing RF spiking artifact

![](SPIKE_EG_qa_plot.png)

Owner

  • Name: Martin Wilson
  • Login: martin3141
  • Kind: user
  • Location: Birmingham
  • Company: University of Birmingham

MR Physicist at CHBH, University of Birmingham

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 59
  • Total Committers: 1
  • Avg Commits per committer: 59.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Martin Wilson m****n@p****k 59
Committer Domains (Top 20 + Academic)

Packages

  • Total packages: 1
  • Total downloads:
    • cran 229 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 3
  • Total maintainers: 1
cran.r-project.org: fmriqa

Functional MRI Quality Assurance Routines

  • Versions: 3
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 229 Last month
Rankings
Forks count: 12.8%
Dependent packages count: 29.8%
Stargazers count: 31.7%
Average: 32.2%
Dependent repos count: 35.5%
Downloads: 51.5%
Maintainers (1)
Last synced: 6 months ago

Dependencies

DESCRIPTION cran
  • RNifti * imports
  • RcppEigen * imports
  • ggplot2 * imports
  • grid * imports
  • gridExtra * imports
  • imager * imports
  • optparse * imports
  • pracma * imports
  • reshape2 * imports
  • tcltk * imports
  • tidyr * imports
  • viridisLite * imports
  • covr * suggests
  • knitr * suggests
  • rmarkdown * suggests
  • testthat * suggests