tidyplate

Transform Microplate Data into Tibbles

https://github.com/shubhamdutta26/tidyplate

Science Score: 26.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
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (19.5%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Transform Microplate Data into Tibbles

Basic Info
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 6
Created over 2 years ago · Last pushed over 1 year ago
Metadata Files
Readme Changelog License Codemeta

README.Rmd

---
output: github_document
---



```{r setup, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```

# tidyplate tidyplate website



[![R-CMD-check](https://github.com/shubhamdutta26/tidyplate/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/shubhamdutta26/tidyplate/actions/workflows/R-CMD-check.yaml)
[![CRAN status](https://www.r-pkg.org/badges/version/tidyplate)](https://CRAN.R-project.org/package=tidyplate)
[![CRAN downloads badge](https://cranlogs.r-pkg.org/badges/tidyplate)](https://cran.r-project.org/package=tidyplate)
[![Grand total CRAN downloads badge](http://cranlogs.r-pkg.org/badges/grand-total/tidyplate)](https://cran.r-project.org/package=tidyplate)
[![Codecov test coverage](https://codecov.io/gh/shubhamdutta26/tidyplate/graph/badge.svg)](https://app.codecov.io/gh/shubhamdutta26/tidyplate)


Microtiter plates or microplates have become a standard tool in analytical research and clinical diagnostic testing laboratories. They are convenient, high-throughput tools for organizing tissue culture, PCR tests (such as HIV/ COVID screening), or immunological assays such as ELISA, RIA and FIA. They offer many advantages over traditional assay formats including reduced sample and reagent volumes, increased throughput, and ease of automation. The goal of `tidyplate` is to help researchers convert different types of microplates into tibbles which can be used in data analysis. `tidyplate` accepts xlsx and csv files formatted in a specific way as input. `tidyplate` supports all types of standard microplate formats namely: 6-well, 12-well, 24-well, 48-well, 96-well, 384-well, and 1536-well plates.

`tidyplate` has five functions:

-   `tidy_plate`: Transforms the input file (excel or csv) into a tibble.
-   `generate_plate`: Exports a tibble into plate-shaped csv or xlsx file.
-   `check_plate`: Checks whether the input file is valid for use with `tidy_plate()`.
-   `view_plate_names`: Returns names/ id(s) of each plate in the input file.
-   `build_plate`: Generates a empty csv or xlsx template for each plate type.


```{r fig.cap = "This figure demonstrates how to format the 12-well plate input file. Colors are for visualization purposes only.", out.width = '100%'}
#| label: image
#| echo: false
knitr::include_graphics("man/figures/README_tidy_plate.png")
```

## Installation

To install tidyplate from CRAN:

```{r}
#| label: install
#| eval: false
install.packages("tidyplate")
```

You can install the development version of tidyplate from [GitHub](https://github.com/) with:

```{r}
#| label: github
#| eval: false
# install.packages("devtools")
devtools::install_github("shubhamdutta26/tidyplate")
```

## Formating the input data

The input xlsx or csv should be formatted in a specific way:

-   Top left corner must hold the name for that plate.
-   Column names should be: 1, 2, 3, and so on and so forth.
-   Row names should be: A, B, C, and so on and so forth.
-   There must be an empty row between each plate.

## Usage

This is an example which shows you how to use the `tidyplate`. If the input file is an xlsx file it reads the first sheet by default. Users can specify sheet using the `sheet` argument for an xlsx file. Users can also specify the variable name of column where well ids will be stored (defaults to "well"). Please make sure that `well_id` argument does not match individual plate names in the input file.

First check if the input file is valid or not:

```{r}
#| label: check_plate-xlsx
#| error: true
library(tidyplate)
file <- system.file("extdata", 
                    "example_12_well.xlsx", 
                    package = "tidyplate")
check_plate(file) # No error for valid file

incorrect_file <- system.file("extdata",
                              "incorrect_format.csv",
                              package = "tidyplate")
check_plate(incorrect_file) # Error type displayed
```

As mentioned above, the formatting of the input file is very important. A csv or 
excel template for each plate type can be created using the `build_plate` function:

```{r}
#| label: build-plate-demo
#| echo: true
#| eval: false
build_plate(plate_type = 96, 
            n_plates = 2, 
            file_type = "xlsx") # default is csv
```

If you want to retrieve the names of individual plates:

```{r}
#| label: view-plate-names-xlsx
view_plate_names(file)
```

Read and import the file as a tibble:

```{r}
#| label: tidy_plate-xlsx
data <- tidy_plate(file)
head(data)
```

Conversely, a dataframe or tibble can be re-exported back to a plate shaped csv
or xlsx file:

```{r}
#| label: generate-plate
#| echo: true
#| eval: false
generate_plate(data, well_id = "well", plate_type = 12, file = "plate.csv")
```

For more information on how to use functions on multiple files or multi-sheet excel
files read the `vignette("advanced")`.

## Cite

To cite package ‘tidyplate’ in publications use:

Dutta S (2024). _tidyplate: Transform Microplate Data into Tibbles_. R package
version 2.0.1.9000, https://github.com/shubhamdutta26/tidyplate,
.

Owner

  • Name: Shubham Dutta
  • Login: shubhamdutta26
  • Kind: user
  • Location: Greater Boston
  • Company: Massbiologics

Genomics | Antibodies | Flow Cytometry | Data Science

CodeMeta (codemeta.json)

{
  "@context": "https://doi.org/10.5063/schema/codemeta-2.0",
  "@type": "SoftwareSourceCode",
  "identifier": "tidyplate",
  "description": "This package helps researchers transform plate data to a tibble.",
  "name": "tidyplate: What the Package Does (Title Case)",
  "codeRepository": "https://github.com/shubhamdutta26/tidyplate",
  "issueTracker": "https://github.com/shubhamdutta26/tidyplate/issues",
  "license": "https://spdx.org/licenses/MIT",
  "version": "0.1.0",
  "programmingLanguage": {
    "@type": "ComputerLanguage",
    "name": "R",
    "url": "https://r-project.org"
  },
  "runtimePlatform": "R version 4.3.2 (2023-10-31)",
  "author": [
    {
      "@type": "Person",
      "givenName": "Shubham",
      "familyName": "Dutta",
      "email": "shubhamdutta26@gmail.com",
      "@id": "https://orcid.org/0000-0001-8484-0717"
    }
  ],
  "maintainer": [
    {
      "@type": "Person",
      "givenName": "Shubham",
      "familyName": "Dutta",
      "email": "shubhamdutta26@gmail.com",
      "@id": "https://orcid.org/0000-0001-8484-0717"
    }
  ],
  "softwareRequirements": {
    "1": {
      "@type": "SoftwareApplication",
      "identifier": "janitor",
      "name": "janitor",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=janitor"
    },
    "2": {
      "@type": "SoftwareApplication",
      "identifier": "readr",
      "name": "readr",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=readr"
    },
    "3": {
      "@type": "SoftwareApplication",
      "identifier": "readxl",
      "name": "readxl",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=readxl"
    },
    "4": {
      "@type": "SoftwareApplication",
      "identifier": "tidyr",
      "name": "tidyr",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=tidyr"
    },
    "5": {
      "@type": "SoftwareApplication",
      "identifier": "purrr",
      "name": "purrr",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=purrr"
    },
    "6": {
      "@type": "SoftwareApplication",
      "identifier": "rlang",
      "name": "rlang",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=rlang"
    },
    "7": {
      "@type": "SoftwareApplication",
      "identifier": "dplyr",
      "name": "dplyr",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=dplyr"
    },
    "SystemRequirements": null
  },
  "fileSize": "704.627KB",
  "readme": "https://github.com/shubhamdutta26/tidyplate/blob/master/README.md"
}

GitHub Events

Total
  • Create event: 2
  • Issues event: 3
  • Release event: 2
  • Push event: 50
Last Year
  • Create event: 2
  • Issues event: 3
  • Release event: 2
  • Push event: 50

Packages

  • Total packages: 1
  • Total downloads:
    • cran 313 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 6
  • Total maintainers: 1
cran.r-project.org: tidyplate

Transform Microplate Data into Tibbles

  • Versions: 6
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 313 Last month
Rankings
Dependent packages count: 28.5%
Dependent repos count: 36.5%
Average: 50.0%
Downloads: 85.1%
Maintainers (1)
Last synced: 10 months ago

Dependencies

DESCRIPTION cran
  • dplyr * imports
  • janitor * imports
  • purrr * imports
  • readr * imports
  • readxl * imports
  • rlang * imports
  • tidyr * imports
.github/workflows/pkgdown.yaml actions
  • JamesIves/github-pages-deploy-action v4.4.1 composite
  • actions/checkout v3 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v3 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/rhub.yaml actions
  • r-hub/actions/checkout v1 composite
  • r-hub/actions/platform-info v1 composite
  • r-hub/actions/run-check v1 composite
  • r-hub/actions/setup v1 composite
  • r-hub/actions/setup-deps v1 composite
  • r-hub/actions/setup-r v1 composite
.github/workflows/test-coverage.yaml actions
  • actions/checkout v4 composite
  • actions/upload-artifact v4 composite
  • codecov/codecov-action v4 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite