Skip to content

Conversation

@robinschmid
Copy link
Member

No description provided.

@robinschmid robinschmid requested a review from SteffenHeu May 14, 2024 11:49
Copy link
Member

@SteffenHeu SteffenHeu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good


description = descriptionTemplate + convertedScansAfterFilter;
}
if (mobilityType == MobilityType.TIMS && mobilities[0] - mobilities[1] < 0) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i cant see where the mobilities[] comes from, but in tdf tims files there can be multiple mobility segements. I think for the parsing from mzml its fine if we have just one segment and add additional mobility scans to all frames

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the same logic like before just removed from the total loop and put outside of the loop

return realMobilities;
}

private static boolean isExcludedWatersScan(final BuildingMzMLMobilityScan mzMLScan) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does this method match?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excludes waters frame I think.

}

// apply mass detection to frames and mobility scans
// apply mass detection to frames NOT to mobility scans
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we also apply to mobility scans? that would reproduce the ims tdf import

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed the message and added more documentation to this.
Mass detection is done on mobility scans but not on frames because we do not have frames

@SteffenHeu SteffenHeu merged commit 1e2b8fc into mzmine:master May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants