https://github.com/cornerstonejs/calculate-suv

Tiny library for calculating Standardized Uptake Value for Nuclear Medicine (i.e. PET, SPECT)

https://github.com/cornerstonejs/calculate-suv

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
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.3%) to scientific vocabulary

Keywords

cornerstone dcmjs dicom nci-itcr

Keywords from Contributors

medical-imaging cornerstone-image-loader wado
Last synced: 6 months ago · JSON representation

Repository

Tiny library for calculating Standardized Uptake Value for Nuclear Medicine (i.e. PET, SPECT)

Basic Info
  • Host: GitHub
  • Owner: cornerstonejs
  • License: mit
  • Language: TypeScript
  • Default Branch: main
  • Homepage: https://cornerstonejs.org
  • Size: 256 KB
Statistics
  • Stars: 21
  • Watchers: 8
  • Forks: 13
  • Open Issues: 2
  • Releases: 5
Topics
cornerstone dcmjs dicom nci-itcr
Created about 5 years ago · Last pushed over 2 years ago
Metadata Files
Readme License

README-tsdx.md

TSDX User Guide

Congrats! You just saved yourself hours of work by bootstrapping this project with TSDX. Let’s get you oriented with what’s here and how to use it.

This TSDX setup is meant for developing libraries (not apps!) that can be published to NPM. If you’re looking to build a Node app, you could use ts-node-dev, plain ts-node, or simple tsc.

If you’re new to TypeScript, checkout this handy cheatsheet

Commands

TSDX scaffolds your new library inside /src.

To run TSDX, use:

bash npm start # or yarn start

This builds to /dist and runs the project in watch mode so any edits you save inside src causes a rebuild to /dist.

To do a one-off build, use npm run build or yarn build.

To run tests, use npm test or yarn test.

Configuration

Code quality is set up for you with prettier, husky, and lint-staged. Adjust the respective fields in package.json accordingly.

Jest

Jest tests are set up to run with npm test or yarn test.

Bundle Analysis

size-limit is set up to calculate the real cost of your library with npm run size and visualize the bundle with npm run analyze.

Setup Files

This is the folder structure we set up for you:

txt /src index.tsx # EDIT THIS /test blah.test.tsx # EDIT THIS .gitignore package.json README.md # EDIT THIS tsconfig.json

Rollup

TSDX uses Rollup as a bundler and generates multiple rollup configs for various module formats and build settings. See Optimizations for details.

TypeScript

tsconfig.json is set up to interpret dom and esnext types, as well as react for jsx. Adjust according to your needs.

Continuous Integration

GitHub Actions

Two actions are added by default:

  • main which installs deps w/ cache, lints, tests, and builds on all pushes against a Node and OS matrix
  • size which comments cost comparison of your library on every pull request using size-limit

Optimizations

Please see the main tsdx optimizations docs. In particular, know that you can take advantage of development-only optimizations:

```js // ./types/index.d.ts declare var DEV: boolean;

// inside your code... if (DEV) { console.log('foo'); } ```

You can also choose to install and use invariant and warning functions.

Module Formats

CJS, ESModules, and UMD module formats are supported.

The appropriate paths are configured in package.json and dist/index.js accordingly. Please report if any issues are found.

Named Exports

Per Palmer Group guidelines, always use named exports. Code split inside your React app instead of your React library.

Including Styles

There are many ways to ship styles, including with CSS-in-JS. TSDX has no opinion on this, configure how you like.

For vanilla CSS, you can include it at the root directory and add it to the files section in your package.json, so that it can be imported separately by your users and run through their bundler's loader.

Publishing to NPM

We recommend using np.

Owner

  • Name: cornerstone.js
  • Login: cornerstonejs
  • Kind: organization
  • Email: contact@ohif.org

JavaScript library to display interactive medical images including but not limited to DICOM

GitHub Events

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

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 43
  • Total Committers: 8
  • Avg Commits per committer: 5.375
  • Development Distribution Score (DDS): 0.512
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Erik Ziegler e****d@g****m 21
Davide Punzo p****e@h****t 12
Joe Boccanfuso 1****e 3
James A. Petts j****s@g****m 3
pwespi p****i@p****e 1
Salim Kanoun s****n@g****m 1
Danny Brown d****n@g****m 1
Bill Wallace w****0@g****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 9 months ago

All Time
  • Total issues: 5
  • Total pull requests: 18
  • Average time to close issues: about 1 month
  • Average time to close pull requests: 22 days
  • Total issue authors: 4
  • Total pull request authors: 7
  • Average comments per issue: 2.0
  • Average comments per pull request: 1.44
  • Merged pull requests: 18
  • Bot issues: 2
  • 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
  • github-actions[bot] (2)
  • ladeirarodolfo (1)
  • thisKing (1)
  • Nilser3 (1)
Pull Request Authors
  • swederik (8)
  • jbocce (3)
  • Punzo (3)
  • pwespi (1)
  • dannyrb (1)
  • wayfarer3130 (1)
  • salimkanoun (1)
Top Labels
Issue Labels
semantic-release (2) bug (2) released (1)
Pull Request Labels
released (18)

Dependencies

.github/workflows/main.yml actions
  • actions/checkout v2 composite
  • actions/setup-node v1 composite
  • bahmutov/npm-install v1 composite
.github/workflows/release.yml actions
  • actions/checkout v2 composite
  • actions/setup-node v1 composite
.github/workflows/size.yml actions
  • actions/checkout v1 composite
  • andresz1/size-limit-action v1 composite
package.json npm
  • @babel/core ^7.12.9 development
  • @babel/plugin-proposal-optional-chaining ^7.12.7 development
  • @babel/preset-env ^7.12.7 development
  • @babel/preset-typescript ^7.12.7 development
  • @size-limit/preset-small-lib ^4.9.0 development
  • @types/jest ^26.0.15 development
  • babel-jest ^26.6.3 development
  • dcmjs ^0.19.7 development
  • husky ^4.3.0 development
  • loglevelnext ^4.0.1 development
  • nifti-js ^1.0.1 development
  • size-limit ^4.9.0 development
  • tsdx ^0.14.1 development
  • tslib ^2.3.1 development
  • typescript ^4.6.2 development
yarn.lock npm
  • 1219 dependencies