Giter VIP home page Giter VIP logo

foresight's Introduction

ForeSight

A Comprehensive Mass Spectrometry Deconvolution Tool for Analyzing Glycosaminoglycan (GAG)

This software identifies GAG species from a mass spectrum.

How to Use

Input parameters

spectrum: a spectrum file in plain text format
gag_type: type of GAG ('hs': heparan sulfate, 'cs': chondroitin sulfate, 'ds': dermatan sulfate, 'ha': hyaluronic acid)
accuracy: mass accuracy in ppm
num_charge: minimum number of charge states
length_type: 'Fixed' or 'Variable'
range_low: lower end of length range
range_high: higher end of length range
dHexA: number of unsaturated hexeruronic acid
Mann: number of 2,5-anhydromannose
NH4: maximum number of ammonium
Na: maximum number of sodium ion
K: maximum number of potassium ion
Ca: maximum number of calcium ion
Li: maximum number of lithium ion

How to deconvolute a mass spectrum

from gaginterpreter import GagInterpreter

spectrum = #some spectrum file
gag_type = 'hs'
accuracy = 3
num_charge = 3
length_type = 'Variable'
range_low = 4
range_high = 10
dHexA = 1
exp = GagIdentifier(spectrum, gag_type, accuracy, num_charge, length_type, range_low, range_high, dHexA)
matches = exp.identify_species()

for mass, mz, charge, gag, _ in matches:
    print "%.4f\t%.4f\t%d\t%d %d %d %d %d %d %d %d %d %d %d %d %d" % (mass, mz, charge, gag.dHexA, gag.HexA, gag.HexN, gag.HexNAc,
        gag.Mann, gag.Ac, gag.SO3, gag.NH4, gag.HOHloss, gag.Na, gag.K, gag.Ca, gag.Li)

foresight's People

Contributors

ywsheng227 avatar

Watchers

Kshitij Khatri avatar

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.