Giter Site home page Giter Site logo

lauzikaite / npyc-toolbox Goto Github PK

View Code? Open in Web Editor NEW

This project forked from phenomecentre/npyc-toolbox

0.0 1.0 0.0 4.59 MB

The nPYc-Toolbox defines objects for representing, and implements functions to manipulate and display, metabolic profiling datasets.

Python 95.88% HTML 3.77% CSS 0.34%

npyc-toolbox's Introduction

nPYc Toolbox

Build Status Documentation Status codecov Python36 PyPI

A Python implementation of the NPC toolchain for the import, quality-control, and preprocessing of metabolic profiling datasets.

Imports:

  • Peak-picked LC-MS data (XCMS, Progenesis QI, & Metaboscape)
  • Raw NMR spectra (Bruker format)
  • Targeted datasets (TargetLynx, Bruker BI-LISA & BI-Quant-Ur)

Provides:

  • Batch & drift correction for LC-MS datasets
  • Feature filtering by RSD and linearity of response
  • Calculation of spectral line-width in NMR
  • PCA of datasets
  • Visualisation of datasets

Exports:

Tutorials:

Installation

For full installation instructions see Installing the nPYc-Toolbox

To install via pip, run:

pip install nPYc

To install from a local copy of the source, simply navigate to the main package folder and run:

python setup.py install

Alternatively, using pip and a local copy of the source:

pip install /nPYC-toolboxDirectory/

Installation with pip allows the usage of the uninstall command

pip uninstall nPYc

Documentation

Documentation is hosted on Read the Docs.

Documentation is generated via Sphinx Autodoc, documentation markup is in reStructuredText.

To build the documentation locally, cd into the docs directory and run:

make html

To clear the current documentation in order to rebuild after making changes, run:

make clean

Tutorials

A repository containing exemplar datasets and Jupyter notebook tutorials to demonstrate the application of the nPYc-Toolbox for the preprocessing and quality control of LC-MS, NMR and targeted NMR (Bruker IVDr) metabolic profiling data is available for download from nPYc-toolbox-tutorials.

For new users, we strongly recommend downloading these tutorials, which provide detailed worked examples with links to relevant documentation.

Development

Source management is git-flow-like - no development in the master branch! When making a change, create a fork based on develop, and issue a pull request when ready.

When merging into the develop branch, all new code must include unit-tests, all tests should pass, and overall code-coverage for the toolbox should not drop.

Releases

When merging from develop (or hotfix branches) into release, ensure:

  • All references to the debugger are removed
  • All paths are relative and platform agnostic
  • All tests pass

Testing

Unit testing is managed via the unittest framework. Test coverage can be found on codecov.io.

To run all tests, cd into the Tests directory and run:

python -m unittest discover -v

Individual test modules can be run with:

python -m `test_filename` -v

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.