solutions_calculator

Interactive solutions calculator built with Shiny and R that allows users to compute mass, volume, or molarity based on combinations of those variables. The app automatically retrieves the compound’s molecular weight from the PubChem database using the webchem package.

https://github.com/jformoso/solutions_calculator

Science Score: 67.0%

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

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

Keywords

molar-mass-calculator shiny shiny-apps shiny-r
Last synced: 6 months ago · JSON representation ·

Repository

Interactive solutions calculator built with Shiny and R that allows users to compute mass, volume, or molarity based on combinations of those variables. The app automatically retrieves the compound’s molecular weight from the PubChem database using the webchem package.

Basic Info
Statistics
  • Stars: 5
  • Watchers: 1
  • Forks: 0
  • Open Issues: 3
  • Releases: 2
Topics
molar-mass-calculator shiny shiny-apps shiny-r
Created 11 months ago · Last pushed 11 months ago
Metadata Files
Readme License Citation

README.md

🧪 Solutions Calculator

This Shiny app allows you to perform basic chemical calculations based on molarity, mass, volume, and molecular weight. It retrieves molecular weights from PubChem using the webchem package.

🚀 Features

Users can select from three calculation modes:

  1. Mass
    Calculates the amount of substance (in grams) from a given volume and concentration.

  2. Volume
    Determines the required volume (in mL) to obtain a given mass at a specific concentration.

  3. Molarity
    Computes molarity (mol/L) from mass and volume.

🧮 How It Works

  • The user enters the name of a compound (e.g., glucose, caffeine).
  • The app uses the webchem package to search PubChem for its molecular weight.
  • The user inputs two of the following: mass, volume, or concentration.
  • The app calculates the third value based on the selected mode.

💻 Tech Stack

  • R and Shiny
  • webchem for retrieving molecular weight from PubChem
  • shinythemes for styling
  • renv for project-specific package management and reproducibility

📦 How to use

To run the app locally, make sure you have R and the following packages installed:

install.packages(c("shiny", "webchem", "shinythemes"))

🧪 Example

Try entering: - Compound: glucose - Calculation mode: Mass from volume and concentration - Concentration: 1 mM - Volume: 1 mL

Output: - Mass = 0.18016 g (based on glucose molecular weight ≈ 180.16 g/mol)

📄 License

MIT License. Feel free to use, modify, or distribute this project.

✍️ Citation

Jesica Formoso, & karina formoso. (2025). JFormoso/solutions_calculator: v1.0.1 (v1.0.1). Zenodo. https://doi.org/10.5281/zenodo.15226728

🙋‍♀️ Acknowledgments

This app uses open data provided by PubChem via the webchem package, maintained by ropensci.

Szöcs E, Stirling T, Scott ER, Scharmüller A, Schäfer RB (2020). “webchem: An R Package to Retrieve Chemical Information from the Web.” Journal of Statistical Software, 93(13), 1–17. doi:10.18637/jss.v093.i13.

Owner

  • Name: Jesica Formoso
  • Login: JFormoso
  • Kind: user
  • Location: Buenos Aires, Argentina
  • Company: National Scientific and Technical Research Council (CONICET)

Data scientist - Cognitive Psychology Researcher - RLadies Buenos Aires - Metadocencia - Proud cat mom.

Citation (CITATION.cff)

cff-version: 1.1.0
message: "If you use this application, please cite it as below."
title: "Solutions Calculator"
version: "1.0.1"
doi: 10.5281/zenodo.15226728
date-released: 2025-04-15
authors:
  - family-names: Formoso
    given-names: Jesica
    orcid: https://orcid.org/0000-0003-3062-4036
    affiliation: CIIPME-CONICET, Argentina
  - family-names: Formoso
    given-names: Karina
    orcid: https://orcid.org/0000-0003-4890-8547
    affiliation: Instituto de Investigaciones Biomédicas-CONICET, Argentina
repository-code: https://github.com/JFormoso/solutions_calculator
license: MIT
keywords:
  - Shiny
  - molecular weight
  - solutions calculator
  - webchem
abstract: "An interactive Shiny application to calculate mass based on concentration and volume using molecular weight retrieved from PubChem via the webchem R package."

GitHub Events

Total
  • Create event: 2
  • Release event: 2
  • Issues event: 6
  • Watch event: 5
  • Issue comment event: 1
  • Push event: 7
Last Year
  • Create event: 2
  • Release event: 2
  • Issues event: 6
  • Watch event: 5
  • Issue comment event: 1
  • Push event: 7

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 15
  • Total Committers: 2
  • Avg Commits per committer: 7.5
  • Development Distribution Score (DDS): 0.2
Past Year
  • Commits: 15
  • Committers: 2
  • Avg Commits per committer: 7.5
  • Development Distribution Score (DDS): 0.2
Top Committers
Name Email Commits
Jesica Formoso 3****o 12
kformoso 7****o 3

Issues and Pull Requests

Last synced: 9 months ago

All Time
  • Total issues: 8
  • Total pull requests: 1
  • Average time to close issues: about 7 hours
  • Average time to close pull requests: 1 minute
  • Total issue authors: 3
  • Total pull request authors: 1
  • Average comments per issue: 0.13
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 8
  • Pull requests: 1
  • Average time to close issues: about 7 hours
  • Average time to close pull requests: 1 minute
  • Issue authors: 3
  • Pull request authors: 1
  • Average comments per issue: 0.13
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • mcnanton (3)
  • JFormoso (2)
  • kformoso (1)
Pull Request Authors
  • kformoso (1)
Top Labels
Issue Labels
documentation (2) enhancement (2)
Pull Request Labels