metalation-calculator
Metalation Calculator. See https://mib-nibb.webspace.durham.ac.uk/metalation-calculators/ for rendered calculators. This work was supported by Biotechnology and Biological Sciences Research Council award BB/V006002/1
Science Score: 65.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 2 DOI reference(s) in README -
○Academic publication links
-
○Academic email domains
-
✓Institutional organization owner
Organization durhamarc has institutional domain (www.dur.ac.uk) -
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.9%) to scientific vocabulary
Repository
Metalation Calculator. See https://mib-nibb.webspace.durham.ac.uk/metalation-calculators/ for rendered calculators. This work was supported by Biotechnology and Biological Sciences Research Council award BB/V006002/1
Basic Info
Statistics
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 6
Metadata Files
README.md
Metalation Calculator
This calculator is based on Nature Communications 12 1195- (2021) and is supported by grant BB/V006002/1 from the Biotechnology and Biological Sciences Research Council.
A single rendered calculator is available at https://durhamarc.github.io/metalation-calculator/, and a set of calculators for E. coli is available on the MiB Elements of Bioremediation, Biomanufacturing and Bioenergy site.
If you spot any problems with the calculator, please log an issue to help us improve it.
Notes on security can be found in security.md.
Wordpress Plugin
The calculator can be installed as a Wordpress block plugin, allowing admin users can add a calculator to any page. The plugin can be installed by downloading the metalation-calculator-wp.zip file from the latest release, and uploading the file to the plugins section of the Wordpress admin interface.
Note that in order to update the plugin via the 'Upload' feature, the filename needs to be kept as metalation-calculator-wp.zip, otherwise it will be treated as a new plugin but will conflict with the existing one. (If this happens, it can be fixed by deactivating and deleting the old plugin.)
Development
The code for the calculator is in two parts:
- The
typescriptdirectory contains code for a static web app. It uses TypeScript with gulp to generate the static website. GitHub Actions builds themainbranch from thetypescriptdirectory and pushes the compiled site to GitHub Pages (on thegh-pagesbranch). - The
metalation-calculator-wpdirectory contains a Wordpress block plugin, which
TypeScript Calculator
Ensure you have Node.js v16 and npm installed.
Run:
sudo npm install -g gulp-cli
Enter your password to install gulp globally as admin. See Gulp for further information.
To work within the typescript directory and install the necessary packages, run:
bash
cd typescript
npm install
All necessary packages should now be installed.
Commands below should also be run from the typescript directory.
To compile the website with gulp, run:
bash
gulp
To compile on-the-fly, run:
bash
gulp watch
Open dist/index.html (from the typescript directory) to view the calculator.
After making changes to the calculator, ensure you run gulp wp to update the files in the Wordpress plugin and commit
the modified files in metalation-calculator-wp/include.
Wordpress Plugin
The Wordpress Plugin allows Wordpress authors to add a calculator as a new block in a Wordpress page, allowing Wordpress authors to customise the default values for availability.
To work on/test the plugin, follow the development instructions at https://developer.wordpress.org/block-editor/getting-started/devenv/ to set up a Wordpress development environment.
Then do:
bash
cd metalation-calculator-wp
npm run build
wp-env start
You should then be able to access your local Wordpress instance at http://localhost:8888, and to log in at http://localhost:8888/wp-admin.
Enable the Metalation Calculator plugin, then add a 'metalation calculator' block to a post or page to test it out.
Releases
To create a new release:
- Update the version number in the following files in metalation-calculator-wp, e.g. if the previous version was 1.0.2 then use 1.0.3.
- block.json
- metalation-calculator-wp.php
- package.json
- readme.txt: as well as updating the 'stable tag' at the top, add a new section to the Changelog with the new version number and notes on what has changed.
Run npm install to update version number in package-lock.json. Commit and push the changes to the main branch on GitHub.
Create a new (lightweight) git tag from main to match the new version number, following the vX.Y.Z formatting (e.g. v1.0.3):
bash git tag v1.0.3Push the tag to GitHub:
bash git push origin v1.0.3You can check the tag has been created from the tags page of the repository.GitHub Actions should run on the tag push, including the jobs to release the Wordpress plugin.
Go to the releases page and check that the release, including a file metalation-calculator-wp.zip, has been created.
To publish the updated plugin to https://mib-nibb.webspace.durham.ac.uk, contact the web team at Durham University CIS and give them the details of the new release.
Owner
- Name: Durham University Advanced Research Computing
- Login: DurhamARC
- Kind: organization
- Website: https://www.dur.ac.uk/arc/
- Twitter: ARC_DU
- Repositories: 30
- Profile: https://github.com/DurhamARC
Citation (CITATION.cff)
authors:
- affiliation: "Durham University"
family-names: Clarke
given-names: Alison
orcid: "https://orcid.org/0000-0002-0205-6644"
- affiliation: "Durham University"
family-names: Aki
given-names: Zeynep
cff-version: "1.2.0"
message: "If you use this software, please cite it using these metadata."
title: "Metalation Calculator"
license: MIT
repository-code: "https://github.com/DurhamARC/metalation-calculator"
references:
- authors:
- family-names: Young
given-names: "Tessa R."
- family-names: Martini
given-names: Maria Alessandra
- family-names: Foster
given-names: "Andrew W."
- family-names: Glasfeld
given-names: Arthur
- family-names: Osman
given-names: Deenah
- family-names: Morton
given-names: "Richard J."
- family-names: Deery
given-names: Evelyne
- family-names: Warren
given-names: "Martin J."
- family-names: Robinson
given-names: "Nigel J."
title: "The foundation of Research Software"
journal: "Nature Communications"
volume: 12
pages: 1195
year: 2021
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: about 2 years ago
All Time
- Total issues: 27
- Total pull requests: 43
- Average time to close issues: 27 days
- Average time to close pull requests: 3 days
- Total issue authors: 3
- Total pull request authors: 2
- Average comments per issue: 1.3
- Average comments per pull request: 0.4
- Merged pull requests: 42
- 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
- alisonrclarke (23)
- zeynepaki (3)
- awf100 (1)
Pull Request Authors
- alisonrclarke (34)
- zeynepaki (9)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- 1364 dependencies
- @babel/preset-react ^7.16.7 development
- @wordpress/scripts ^22.2.1 development
- @wordpress/block-editor ^8.3.1
- @wordpress/blocks ^11.3.1
- @wordpress/components ^19.6.1
- @wordpress/i18n ^4.4.1
- react ^17.0.2
- 920 dependencies
- @ronilaukkarinen/gulp-stylelint ^14.0.5 development
- @types/jest ^27.0.2 development
- @typescript-eslint/eslint-plugin ^5.2.0 development
- @typescript-eslint/parser ^5.2.0 development
- browserify ^17.0.0 development
- eslint ^8.1.0 development
- eslint-config-prettier ^8.3.0 development
- eslint-plugin-prettier ^4.0.0 development
- fancy-log ^1.3.3 development
- gulp ^4.0.0 development
- gulp-debug ^4.0.0 development
- gulp-eslint-new ^0.4.0 development
- gulp-file-include ^2.3.0 development
- gulp-jest ^4.0.4 development
- gulp-sass ^5.0.0 development
- gulp-terser ^2.1.0 development
- gulp-typescript ^6.0.0-alpha.1 development
- jest ^27.3.1 development
- prettier ^2.4.1 development
- sass ^1.39.0 development
- stylelint ^14.9.1 development
- stylelint-config-standard-scss ^3.0.0 development
- ts-jest ^27.0.7 development
- tsify ^5.0.4 development
- typescript ^4.4.4 development
- vinyl-source-stream ^2.0.0 development
- watchify ^4.0.0 development