Giter Site home page Giter Site logo

lshtm-gigs / gigs Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 31.13 MB

Convert between measurements and z-scores/percentiles for INTERGROWTH-21st and WHO Child Growth Standards, and classify growth patterns.

Home Page: https://lshtm-gigs.github.io/gigs/

License: GNU General Public License v3.0

R 100.00%
growth-standards anthropometry intergrowth r who r-package rstats

gigs's People

Contributors

simpar1471 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

gigs's Issues

Extra INTERGROWTH-21st Fetal Standards

Symphysis-fundal height (sfhfga)

  • Data objects (centile tables)
  • Code
  • Tests

Early pregnancy dating (crown-rump length; crlfga/gafcrl)

  • Data objects (centile tables)
  • Code
  • Tests

Late pregnancy dating (headcirc/femurlen to GA function)

  • Data objects (centile tables ?)
  • Code
  • Tests

Gestational/maternal weight gain (gwgfga)

  • Data objects (centile tables)
  • Code
  • Tests

Fetal doppler (pifga/rifga/sdrfga)

  • Data objects (centile tables)
  • Code
  • Tests

Brain development (poffga/sffga/ahlvfga/aphlvfga/cmfga)

  • Data objects (centile tables)
  • Code
  • Tests

Cerebellar growth (tcdfga/gaftcd)

  • Data objects (centile tables)
  • Code
  • Tests

pkgcheck results - v0.4.1

Checks for gigs (v0.4.1)

git hash: a9d9654a

  • ✔️ Package name is available
  • ✔️ has a 'codemeta.json' file.
  • ✔️ has a 'contributing' file.
  • ✔️ uses 'roxygen2'.
  • ✔️ 'DESCRIPTION' has a URL field.
  • ✔️ 'DESCRIPTION' has a BugReports field.
  • ✔️ Package has at least one HTML vignette
  • ✔️ All functions have examples.
  • ✔️ Package has continuous integration checks.
  • ✔️ Package coverage is 100%.
  • ✔️ R CMD check found no errors.
  • ✔️ R CMD check found no warnings.

Package License: GPL (>= 3)

Add gigs_*() functions

The GIGS project is offering guidance on which standards should be used for different combinations of gestational age + chronological age. We should offer functions which wrap the existing ig_nbs_*()/ig_png_*()/who_gs_*() functions to use the 'right' function at each time point.

pkgcheck results - v0.4.0

Checks for gigs (v0.4.0)

git hash: f6b04c1e

  • ✔️ Package name is available
  • ✔️ has a 'codemeta.json' file.
  • ✔️ has a 'contributing' file.
  • ✔️ uses 'roxygen2'.
  • ✔️ 'DESCRIPTION' has a URL field.
  • ✔️ 'DESCRIPTION' has a BugReports field.
  • ✔️ Package has at least one HTML vignette
  • ✔️ All functions have examples.
  • ✔️ Package has continuous integration checks.
  • ✔️ Package coverage is 100%.
  • ✔️ R CMD check found no errors.
  • ✔️ R CMD check found no warnings.

Package License: GPL (>= 3)

pkgcheck results - master

Checks for gigs (v0.4.1)

git hash: a9d9654a

  • ✔️ Package name is available
  • ✔️ has a 'codemeta.json' file.
  • ✔️ has a 'contributing' file.
  • ✔️ uses 'roxygen2'.
  • ✔️ 'DESCRIPTION' has a URL field.
  • ✔️ 'DESCRIPTION' has a BugReports field.
  • ✔️ Package has at least one HTML vignette
  • ✔️ All functions have examples.
  • ✔️ Package has continuous integration checks.
  • ✔️ Package coverage is 100%.
  • ✔️ R CMD check found no errors.
  • ✔️ R CMD check found no warnings.

Package License: GPL (>= 3)

pkgcheck results - master

Checks for gigs (v0.4.0)

git hash: f6b04c1e

  • ✔️ Package name is available
  • ✔️ has a 'codemeta.json' file.
  • ✔️ has a 'contributing' file.
  • ✔️ uses 'roxygen2'.
  • ✔️ 'DESCRIPTION' has a URL field.
  • ✔️ 'DESCRIPTION' has a BugReports field.
  • ✔️ Package has at least one HTML vignette
  • ✔️ All functions have examples.
  • ✔️ Package has continuous integration checks.
  • ✔️ Package coverage is 100%.
  • ✔️ R CMD check found no errors.
  • ✔️ R CMD check found no warnings.

Package License: GPL (>= 3)

Re-work body composition equations

The current approach for getting the standard deviation is to get the standard deviation for the 90th centile and work with that for all values. Instead, we should work out the standard deviation at all possible GAs and fit a linear model to this as well.

Add classify_svn() function

The Lancet's Small Vulnerable Newborn Series introduced different markers of smallness and vulnerability for newborns/infants. We could add a classification function for these markers called classify_svn().

Better error and warning messages.

Errors are currently unique and helpful, but not as much as possible.

For example consider this error for zero-length input:

ig_nbs_value2centile(y = numeric(), gest_days = 270, sex = "M", acronym = "ffmfga")

Output:
Error: Variable 'y': Input had length 0, but must have length 1 or greater.

This is fine - we know which of our inputs is causing the error, and how this looks.

When we do this in the standard-specific function, we get the same error:

ig_nbs_ffmfga_value2centile(fat_free_mass_g = numeric(), gest_days = 270, sex = "M")

Output:
Error: Variable 'y': Input had length 0, but must have length 1 or greater.

This tells us our y variable is the culprit, but the actual argument name is fatfree_mass_g, not y. This needs changing, probably through changes to how each standard-specific conversion function interfaces with the validate_ig_nbs()-style input checking functions.

pkgcheck results - master

Checks for gigs (v0.4.0)

git hash: 5ebd7c14

  • ✔️ Package name is available
  • ✔️ has a 'codemeta.json' file.
  • ✔️ has a 'contributing' file.
  • ✔️ uses 'roxygen2'.
  • ✔️ 'DESCRIPTION' has a URL field.
  • ✔️ 'DESCRIPTION' has a BugReports field.
  • ✔️ Package has at least one HTML vignette
  • ✔️ All functions have examples.
  • ✔️ Package has continuous integration checks.
  • ✔️ Package coverage is 100%.
  • ✔️ R CMD check found no errors.
  • ✔️ R CMD check found no warnings.

Package License: GPL (>= 3)

Actions before CRAN submission

See the CRAN release section in Hadley's R Packages (2e) for a good list of actions to take before CRAN submission. These include:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.