Giter Club home page Giter Club logo

Comments (6)

wsnoble avatar wsnoble commented on July 23, 2024

Can you post a sample of one of your mgf files, or even just the first 1000 lines of such a file?

from casanovo.

bittremieux avatar bittremieux commented on July 23, 2024

The problem seems to be that your MGF file is missing some information, in this case the precursor charges of the MS/MS spectra. Unfortunately I'm not sufficiently familiar to know whether it is expected that this information is not available for timsTOF data, but for successful spectrum identification Casanovo does require it.

The most straightforward solution would be to figure out how to include the precursor charges in the MGF export, although unfortunately I can't directly recommend the best tool to do this.

from casanovo.

wfondrie avatar wfondrie commented on July 23, 2024

My guess is that it is charge is called something else in @jonathan-krieger-bruker's file. A sample of the file's content should help us out.

from casanovo.

jonathan-krieger-bruker avatar jonathan-krieger-bruker commented on July 23, 2024

Hi all - thanks for helping to look into this. I tested 2 MGF files created different ways but they both look quite different then the test file or preprocessed data provided in the repo. I attach a zip file of these 2 MGFs (Top ~1000 lines or so).
Thanks again!
Jonathan
MGF_samples.zip
.

from casanovo.

jonathan-krieger-bruker avatar jonathan-krieger-bruker commented on July 23, 2024

The Charge state seems to be there and seems to be written in the same way as the test data. However the intensity values are very different - one looks relative and one looks absolute?

from casanovo.

bittremieux avatar bittremieux commented on July 23, 2024

Relative vs absolute intensity values shouldn't make a difference because intensities are normalized by Casanovo anyway.

In fact, I could run Casanovo successfully on the two example files you provided. I'm guessing that not all spectra are incorrect, and the one Casanovo chokes on is further down in the file you're trying to process. Would it be possible to share the full MGF with which you got the error so I can further debug the issue? Thanks.

from casanovo.

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.