Code Monkey home page Code Monkey logo

Comments (1)

scholi avatar scholi commented on June 11, 2024

Hi Shohini,
① Some ITA files differs in the content. This is specially true if you use the latest version of iontof. This might the reason why some data are not found by the library. If you can send me the data, then I can see what is wrong. Otherwise it will be tricky for me to guess what is the exact problem.

You can nevertheless do the calibration yourself. You can retrieve the time and intensity and perform the calibration yourself. For this purpose, use the method get_spectrum. You can provide a sf and k0 arguments which are the mass calibration parameters. You can also retrieve the time instead of the mass with time=True. Then look for the times of known peaks, such as H, C, CH, CH₂, CH₃, ... and perform a least square in order to find the exact mass calibrations parameters. You will find more details on the mass calibration on the wiki: https://github.com/scholi/pySPM/wiki/Mass-calibration

② Your error seems to be related to matplotlib. Which version do you have?

import matplotlib
print(matplotlib.__version__)

I use 2.1.0. If you have a lower version, try to upgrade it. WIth pip for ex.:

pip install --upgrade matplotlib

③ Yes you can reconstruct the data. Did you have look at the doc ? : https://nbviewer.jupyter.org/github/scholi/pySPM/blob/master/doc/pySPM%20Documentation.ipynb#SI-image-reconstruction

For that you need the ITM file (not the ITA) and then give the list of peaks with lower, upper mass given as a tuple. You should also pass the mass calibration parameters: sf and k0 as argument.

Let me know if this works.

from pyspm.

Related Issues (20)

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.