Skip to main content

Implementation of Modified polyfit method and IModPoly method for baseline BaselineRemoval

Project description

What is it?

BaselineRemoval is a Python package providing baseline removal. There are 2 main methods for baseline removal.

  • Modpoly in the paper titled Automated Method for Subtraction of Fluorescence from Biological Raman Spectra, by Lieber & Mahadevan-Jansen (2003)

  • IModPoly, which is an enhancement on existing Modpoly algorithm, taken from paper titled Automated Autofluorescence Background Subtraction Algorithm for Biomedical Raman Spectroscopy, by Zhao, Jianhua, Lui, Harvey, McLean, David I., Zeng, Haishan (2007)

How to use is it?

from BaselineRemoval import BaselineRemoval

input_array=[10,20,1.5,5,2,9,99,25,47]

polynomial_degree=2

baseObj=BaselineRemoval(input*array,polynomial*degree)

Modpoly_output=baseObj.ModPoly()

Imodpoly_output=baseObj.IModPoly()

print('Original input:',input_array)

print('Modpoly base corrected values:',Modpoly_output)

print('IModPoly base corrected values:',Imodpoly_output)

Original input: [10, 20, 1.5, 5, 2, 9, 99, 25, 47]

Modpoly output: [-1.98455800e-04  1.61793368e+01  1.08455179e+00  5.21544654e+00

  7.20210508e-02  2.15427531e+00  8.44622093e+01 -4.17691125e-03

  8.75511661e+00]
Imodpoly output: [-0.84912125 15.13786196 -0.11351367  3.89675187 -1.33134142  0.70220645

 82.99739548 -1.44577432  7.37269705]

Where to get it?

pip install BaselineRemoval

Dependencies

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

BaselineRemoval-0.0.3.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

BaselineRemoval-0.0.3-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file BaselineRemoval-0.0.3.tar.gz.

File metadata

  • Download URL: BaselineRemoval-0.0.3.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9

File hashes

Hashes for BaselineRemoval-0.0.3.tar.gz
Algorithm Hash digest
SHA256 27a05c691b0ead1eeaf395c54b6e3e6974a57c1aabfef6839fe50f9bb189f2bb
MD5 6a02af58090195f25bb319fd7dac3918
BLAKE2b-256 16ac4b688f73d71d22cd93a20d8d5237a9f954681b86ee342428532109edf573

See more details on using hashes here.

File details

Details for the file BaselineRemoval-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: BaselineRemoval-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9

File hashes

Hashes for BaselineRemoval-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 51da64aa8c73f6dc286af947def983a7638a6137e5aeacfd76e67680ef525588
MD5 77dd77cc2dc9e76cd5f44b4da1f0aa37
BLAKE2b-256 72dc65859b7a31e4497d6fd0a2a7564d61a26557eb53f7f49763c78d333bbbb8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page