MassCube: a Python framework for end-to-end metabolomics data processing from raw files to phenotype classifiers

preprint OA: closed
Full text JSON View at publisher

Abstract

Abstract Nontargeted peak detection in LC-MS-based metabolomics must become robust and benchmarked. We present MassCube, a Python-based open-source framework for MS data processing that we systematically benchmarked against other algorithms and different types of input data. From raw data, peaks are detected by constructing mass traces through signal clustering and Gaussian-filter assisted edge detection. Peaks are then grouped for adduct and in-source fragment detection, and compounds are annotated by both identity- and fuzzy searches. Final data tables undergo quality controls and can be used for metabolome-informed phenotype prediction. Peak detection in MassCube achieves 100% signal coverage with comprehensive reporting of chromatographic metadata for quality assurance. MassCube outperforms MS-DIAL, MZmine3 or XCMS for speed, isomer detection, and accuracy. It supports diverse numerical routines for MS data analysis while maintaining efficiency, capable for handling 105 GB of Astral MS data on a laptop within 64 minutes, while other programs took 8-24 times longer. MassCube automatically detected age, sex and regional differences when applied to the Metabolome Atlas of the Aging Mouse Brain data despite batch effects. MassCube is available at https://github.com/huaxuyu/masscube for direct use or implementation into larger applications in omics or biomedical research.
Full text 12,760 characters · extracted from preprint-html · click to expand
MassCube: a Python framework for end-to-end metabolomics data processing from raw files to phenotype classifiers | Research Square window.SnipcartSettings = { analytics: { enabled: false } }; (function() { var accessVector = localStorage.getItem('access_vector') || ''; window.dataLayer = window.dataLayer || []; if (accessVector) { window.dataLayer.push({ user: { profile: { profileInfo: { snid: accessVector } } } }); } })(); (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-K279D39R'); Browse Preprints In Review Journals COVID-19 Preprints AJE Video Bytes Research Tools Research Promotion AJE Professional Editing AJE Rubriq About Preprint Platform In Review Editorial Policies Our Team Advisory Board Help Center Sign In Submit a Preprint Cite Share Download PDF Article MassCube: a Python framework for end-to-end metabolomics data processing from raw files to phenotype classifiers Oliver Fiehn, Huaxu Yu, Jun Ding, Tong Shen, Min Liu, Yuanyue Li This is a preprint; it has not been peer reviewed by a journal. https://doi.org/ 10.21203/rs.3.rs-5530740/v1 This work is licensed under a CC BY 4.0 License Status: Published Journal Publication published 01 Jul, 2025 Read the published version in Nature Communications → Version 1 posted You are reading this latest preprint version Abstract Nontargeted peak detection in LC-MS-based metabolomics must become robust and benchmarked. We present MassCube, a Python-based open-source framework for MS data processing that we systematically benchmarked against other algorithms and different types of input data. From raw data, peaks are detected by constructing mass traces through signal clustering and Gaussian-filter assisted edge detection. Peaks are then grouped for adduct and in-source fragment detection, and compounds are annotated by both identity- and fuzzy searches. Final data tables undergo quality controls and can be used for metabolome-informed phenotype prediction. Peak detection in MassCube achieves 100% signal coverage with comprehensive reporting of chromatographic metadata for quality assurance. MassCube outperforms MS-DIAL, MZmine3 or XCMS for speed, isomer detection, and accuracy. It supports diverse numerical routines for MS data analysis while maintaining efficiency, capable for handling 105 GB of Astral MS data on a laptop within 64 minutes, while other programs took 8-24 times longer. MassCube automatically detected age, sex and regional differences when applied to the Metabolome Atlas of the Aging Mouse Brain data despite batch effects. MassCube is available at https://github.com/huaxuyu/masscube for direct use or implementation into larger applications in omics or biomedical research. Biological sciences/Biological techniques/Mass spectrometry Biological sciences/Biological techniques/Metabolomics Full Text Additional Declarations There is NO Competing Interest. Supplementary Files HuaxuYumasscubesupplementaryinformation11252024.pdf Supplementary information Cite Share Download PDF Status: Published Journal Publication published 01 Jul, 2025 Read the published version in Nature Communications → Version 1 posted You are reading this latest preprint version Research Square lets you share your work early, gain feedback from the community, and start making changes to your manuscript prior to peer review in a journal. As a division of Research Square Company, we’re committed to making research communication faster, fairer, and more useful. We do this by developing innovative software and high quality services for the global research community. Our growing team is made up of researchers and industry professionals working together to solve the most critical problems facing scientific publishing. Also discoverable on Platform About Our Team In Review Editorial Policies Advisory Board Help Center Resources Author Services Accessibility API Access RSS feed Manage Cookie Preferences © Research Square 2026 | ISSN 2693-5015 (online) Privacy Policy Terms of Service Do Not Sell My Personal Information {"props":{"pageProps":{"initialData":{"identity":"rs-5530740","acceptedTermsAndConditions":true,"allowDirectSubmit":false,"archivedVersions":[],"articleType":"Article","associatedPublications":[],"authors":[{"id":391611279,"identity":"96c85ec7-1afc-4811-8df8-89ba31f5f299","order_by":0,"name":"Oliver Fiehn","email":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAAyAQMAAABI0h/eAAAABlBMVEX///8AAABVwtN+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAA1ElEQVRIiWNgGAWjYDAC5oMNzAwMNkBWAhgxMBwgpIUtEaQljSQtCQxALYcZoOqJ0MLPxtz4uHDH+cT+9uRnEg/+MMjx3UjAr0WyjbHZeOaZ24kzzjwzk0hsYzCWJKTF4H5jmzRv2+3EDRIJxgaJDQyJGwhqOcbY/pu37RxQS/png4Q/DPXEaGlj5m07ANSSY/gggY0hwYAYvwAdlmw848ybwgeJbRKGM888wK+Fn4394WfeNjvZ/vb0DQd//LGR5ztOwBZ0IEGa8lEwCkbBKBgF2AEA3ttIN58OFekAAAAASUVORK5CYII=","orcid":"https://orcid.org/0000-0002-6261-8928","institution":"University of California, Davis","correspondingAuthor":true,"prefix":"","firstName":"Oliver","middleName":"","lastName":"Fiehn","suffix":""},{"id":391611280,"identity":"fce3efbe-2296-4251-aa3d-e984ff78478f","order_by":1,"name":"Huaxu Yu","email":"","orcid":"","institution":"University of California, Davis","correspondingAuthor":false,"prefix":"","firstName":"Huaxu","middleName":"","lastName":"Yu","suffix":""},{"id":391611281,"identity":"212f0bd2-ffb6-4a87-858e-d98b3f8806db","order_by":2,"name":"Jun Ding","email":"","orcid":"","institution":"Wuhan Botanical Garden, Chinese Academy of Sciences","correspondingAuthor":false,"prefix":"","firstName":"Jun","middleName":"","lastName":"Ding","suffix":""},{"id":391611282,"identity":"966a99a9-fd4f-498f-a436-57e6323a44a6","order_by":3,"name":"Tong Shen","email":"","orcid":"","institution":"University of California, Davis","correspondingAuthor":false,"prefix":"","firstName":"Tong","middleName":"","lastName":"Shen","suffix":""},{"id":391611283,"identity":"ff36c8fd-71a2-461a-9df1-8bd8a1777e89","order_by":4,"name":"Min Liu","email":"","orcid":"","institution":"University of California, Davis","correspondingAuthor":false,"prefix":"","firstName":"Min","middleName":"","lastName":"Liu","suffix":""},{"id":391611284,"identity":"490949e9-2fe8-41a3-aed9-a37b2257be1c","order_by":5,"name":"Yuanyue Li","email":"","orcid":"https://orcid.org/0000-0001-5971-0355","institution":"UC Davis","correspondingAuthor":false,"prefix":"","firstName":"Yuanyue","middleName":"","lastName":"Li","suffix":""}],"badges":[],"createdAt":"2024-11-26 22:05:09","currentVersionCode":1,"declarations":"","doi":"10.21203/rs.3.rs-5530740/v1","doiUrl":"https://doi.org/10.21203/rs.3.rs-5530740/v1","draftVersion":[],"editorialEvents":[{"content":"https://doi.org/10.1038/s41467-025-60640-5","type":"published","date":"2025-07-01T04:00:00+00:00"}],"editorialNote":"","failedWorkflow":false,"files":[{"id":85830442,"identity":"d5cdcbc0-e74e-4dca-bcf3-3b0169deb290","added_by":"auto","created_at":"2025-07-02 07:39:38","extension":"pdf","order_by":1,"title":"","display":"","copyAsset":false,"role":"manuscript-pdf","size":2100309,"visible":true,"origin":"","legend":"Article File","description":"","filename":"HuaxuYumasscubemanuscript11252024.pdf","url":"https://assets-eu.researchsquare.com/files/rs-5530740/v1_covered_0dd9f564-9ddc-41d1-b7e5-b406e64b6efd.pdf"},{"id":73127774,"identity":"030ccaae-b6ed-403e-832c-01908b53956d","added_by":"auto","created_at":"2025-01-07 04:22:43","extension":"pdf","order_by":1,"title":"","display":"","copyAsset":false,"role":"supplement","size":853285,"visible":true,"origin":"","legend":"Supplementary information","description":"","filename":"HuaxuYumasscubesupplementaryinformation11252024.pdf","url":"https://assets-eu.researchsquare.com/files/rs-5530740/v1/dad5d5c4d8b5f9bd92b5de9c.pdf"}],"financialInterests":"There is \u003cb\u003eNO\u003c/b\u003e Competing Interest.","formattedTitle":"MassCube: a Python framework for end-to-end metabolomics data processing from raw files to phenotype classifiers","fulltext":[],"fulltextSource":"","fullText":"","funders":[],"hasAdminPriorityOnWorkflow":false,"hasManuscriptDocX":false,"hasOptedInToPreprint":true,"hasPassedJournalQc":"","hasAnyPriority":true,"hideJournal":false,"highlight":"","institution":"","isAcceptedByJournal":true,"isAuthorSuppliedPdf":true,"isDeskRejected":"","isHiddenFromSearch":false,"isInQc":false,"isInWorkflow":false,"isPdf":true,"isPdfUpToDate":true,"isWithdrawnOrRetracted":false,"journal":{"display":true,"email":"[email protected]","identity":"nature-portfolio","isNatureJournal":true,"hasQc":false,"allowDirectSubmit":false,"externalIdentity":"","sideBox":"","snPcode":"","submissionUrl":"","title":"Nature Portfolio","twitterHandle":"","acdcEnabled":false,"dfaEnabled":false,"editorialSystem":"ejp","reportingPortfolio":"","inReviewEnabled":true,"inReviewRevisionsEnabled":false},"keywords":"","lastPublishedDoi":"10.21203/rs.3.rs-5530740/v1","lastPublishedDoiUrl":"https://doi.org/10.21203/rs.3.rs-5530740/v1","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"},"manuscriptAbstract":"Nontargeted peak detection in LC-MS-based metabolomics must become robust and benchmarked. We present MassCube, a Python-based open-source framework for MS data processing that we systematically benchmarked against other algorithms and different types of input data. From raw data, peaks are detected by constructing mass traces through signal clustering and Gaussian-filter assisted edge detection. Peaks are then grouped for adduct and in-source fragment detection, and compounds are annotated by both identity- and fuzzy searches. Final data tables undergo quality controls and can be used for metabolome-informed phenotype prediction. Peak detection in MassCube achieves 100% signal coverage with comprehensive reporting of chromatographic metadata for quality assurance. MassCube outperforms MS-DIAL, MZmine3 or XCMS for speed, isomer detection, and accuracy. It supports diverse numerical routines for MS data analysis while maintaining efficiency, capable for handling 105 GB of Astral MS data on a laptop within 64 minutes, while other programs took 8-24 times longer. MassCube automatically detected age, sex and regional differences when applied to the Metabolome Atlas of the Aging Mouse Brain data despite batch effects. MassCube is available at https://github.com/huaxuyu/masscube for direct use or implementation into larger applications in omics or biomedical research.","manuscriptTitle":"MassCube: a Python framework for end-to-end metabolomics data processing from raw files to phenotype classifiers","msid":"","msnumber":"","nonDraftVersions":[{"code":1,"date":"2025-01-07 04:22:38","doi":"10.21203/rs.3.rs-5530740/v1","editorialEvents":[],"status":"published","journal":{"display":true,"email":"[email protected]","identity":"nature-communications","isNatureJournal":true,"hasQc":false,"allowDirectSubmit":false,"externalIdentity":"NCOMMS","sideBox":"Learn more about [Nature Communications](http://www.nature.com/ncomms/)","snPcode":"","submissionUrl":"https://mts-ncomms.nature.com/","title":"Nature Communications","twitterHandle":"","acdcEnabled":true,"dfaEnabled":true,"editorialSystem":"ejp","reportingPortfolio":"Nature Communications","inReviewEnabled":true,"inReviewRevisionsEnabled":false}}],"origin":"","ownerIdentity":"a25ead93-ec32-46cb-a7ed-98db011a6382","owner":[],"postedDate":"January 7th, 2025","published":true,"recentEditorialEvents":[],"rejectedJournal":[],"revision":"","amendment":"","status":"published-in-journal","subjectAreas":[{"id":41741708,"name":"Biological sciences/Biological techniques/Mass spectrometry"},{"id":41741709,"name":"Biological sciences/Biological techniques/Metabolomics"}],"tags":[],"updatedAt":"2025-07-02T07:39:25+00:00","versionOfRecord":{"articleIdentity":"rs-5530740","link":"https://doi.org/10.1038/s41467-025-60640-5","journal":{"identity":"nature-communications","isVorOnly":false,"title":"Nature Communications"},"publishedOn":"2025-07-01 04:00:00","publishedOnDateReadable":"July 1st, 2025"},"versionCreatedAt":"2025-01-07 04:22:38","video":"","vorDoi":"10.1038/s41467-025-60640-5","vorDoiUrl":"https://doi.org/10.1038/s41467-025-60640-5","workflowStages":[]},"version":"v1","identity":"rs-5530740","journalConfig":"researchsquare"},"__N_SSP":true},"page":"/article/[identity]/[[...version]]","query":{"redirect":"/article/rs-5530740","identity":"rs-5530740","version":["v1"]},"buildId":"8U1c8b4HqxoKbykW_rLl7","isFallback":false,"isExperimentalCompile":false,"dynamicIds":[84888],"gssp":true,"scriptLoader":[]}

Text is read by the "Ask this paper" AI Q&A widget below. Extraction quality varies by source — PMC NXML preserves structure cleanly, OA-HTML may include some navigation residue, and OA-PDF can have broken hyphenation. The publisher copy (via DOI) is the canonical version.

My notes (saved in your browser only)

Ask this paper AI returns verbatim quotes from the full text · source: preprint-html

Answers must be backed by verbatim quotes from this paper's full text. Hallucinated quotes are dropped automatically; if no verbatim passage answers the question, we say so. How this works

Citation neighborhood (no data yet)

We don't have any in-corpus citations linked to this paper yet. This is a recent paper (2025) — citers typically take a year or two to land, and the OpenAlex reference graph may still be filling in.

Source provenance

europepmc
last seen: 2026-05-20T01:45:00.602351+00:00