diwanalr
diwanalr: An R data analysis package for diffusing-wave spectroscopy - Published in JOSS (2019)
Science Score: 95.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 1 DOI reference(s) in JOSS metadata -
○Academic publication links
-
✓Committers with academic emails
1 of 2 committers (50.0%) from academic institutions -
○Institutional organization owner
-
✓JOSS paper metadata
Published in Journal of Open Source Software
Last synced: 10 months ago
·
JSON representation
Repository
diwanalr - an R package for data analysis related to diffusive-wave spectroscopy (DWS)
Basic Info
- Host: GitHub
- Owner: peterjwatkins
- License: gpl-3.0
- Language: HTML
- Default Branch: alexpghayes-r_cmd_cleanup_master
- Size: 378 KB
Statistics
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
- Releases: 1
Created almost 8 years ago
· Last pushed about 7 years ago
Metadata Files
Readme
Contributing
License
README.Rmd
---
output: github_document
---
```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# *diwanalr*
### An introduction to the diwanalr package
The *diwanalr* (**di**ffusing-**w**ave spectroscopy (DWS) **anal**ysis using **R**) package contains a number of functions suitable for analysing DWS data.
DWS is derived from dynamic light scattering which is an optical technique that studies the dynamics of scattered light. If carefully calibrated, DWS allows the quantitative measurement of microscopic motion in a soft material from which micro-rheology can be used to determine the rheological properties of a complex medium.
Research capability exists which allows the application of DWS to food systems. In some instances, the analysis of data resulting from such capability can be tedious (e.g. using spreadsheets). This package is intended to allow users of such capability to perform analysis of DWS data in a more straightforward manner.
If needed, the *diwanalr* package can be downloaded using:
```
install.packages("devtools")
devtools::install_github("peterjwatkins/diwanalr", force=TRUE)
```
One proposed workflow involves the calculation of the storage and loss moduli. The workflow consists of three steps:
*The temporal autocorrelation function*, *g*~1~($t$).
In some cases, the output generated from research equipment consists of a CSV file, with two columns; the first being the correlation time while the second is the measured value of the *intensity autocorrelation function*, noted as *g*~2~($t$). The *g*~2~($t$) values are related to *g*~1~($t$) by the Seigert relationship where *g*~2~($t$) = 1 + $|$*g*~1~($t$)$|$$^2$. The function, *form_g1*, accepts a tibble consisting measured correlation times, $t$, and associated *g*~2~($t$) values, and returns a tibble consisting of three columns; namely, the correlation time ($t$), related *g*~1~($t$) values as well a set of scaled *g*~1~($t$) values, ranging from 0 to approximately 1. The scaled values are deployed in the second step of the workflow. Some functionality is provided to allow the user to set an appropriate normalisation value. The function *plot_g1* is available to visualise the data. The *plot_g1* function uses a spline to estimate *t*~1/2~ for the scaled data.
```{r first}
library(diwanalr)
data(dws)
g1 <- form_g1(dws)
head(g1)
plot_g1(g1)
```
*The mean square displacement*.
The next stage involves calculating the mean square displacement (MSD), based on the scaled *g*~1~($t$) values using a minimisation step (see the vignette for further detail). The function, *form_msd* is used for this purpose, accepting the output from *form_g1* and returning a tibble with the time and related MSD. The function *plot_msd* is available to visualise the output data.
``` {r second}
msd <- form_msd(g1)
head(msd)
plot_msd(msd)
```
*The viscoelastic, storage and loss moduli*.
The last stage is to determine the viscoelastic modulus (*G*) from the mean square displacement, which is then used to determine the related storage and loss moduli. The function *form_modulus* is used for this purpose, accepting the output from *form_msd* and returning a tibble with the time and related storage (*G'*) and loss (*G''*) moduli. The function *plot_modulus* is available for visualising the data resulting from the *form_modulus* function.
``` {r third}
mods <- form_modulus(msd)
head(mods)
plot_modulus(mods)
```
Owner
- Login: peterjwatkins
- Kind: user
- Repositories: 1
- Profile: https://github.com/peterjwatkins
JOSS Publication
diwanalr: An R data analysis package for diffusing-wave spectroscopy
Published
June 24, 2019
Volume 4, Issue 38, Page 947
Tags
DWS Diffusing-wave spectroscopy data analysisGitHub Events
Total
Last Year
Committers
Last synced: 11 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Peter Watkins | P****s@c****u | 66 |
| Arfon Smith | a****n | 3 |
Committer Domains (Top 20 + Academic)
csiro.au: 1
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 0
- Total pull requests: 4
- Average time to close issues: N/A
- Average time to close pull requests: 13 days
- Total issue authors: 0
- Total pull request authors: 3
- Average comments per issue: 0
- Average comments per pull request: 0.25
- Merged pull requests: 3
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
- arfon (2)
- peterjwatkins (1)
- alexpghayes (1)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
DESCRIPTION
cran
- R >= 2.10 depends
- dplyr * imports
- ggplot2 * imports
- stats * imports
- tibble * imports
- tidyr * imports
- knitr * suggests
- rmarkdown * suggests
- testthat * suggests
