[]()
The acronym stands for Mass Spectrometry File Toolbox
. This is a library for access to some common mass-spectrometry/proteomics data formats from Java:
This library is what drives BatMass.
Please cite the following paper if you used MSFTBX or BatMass in your work:
Avtonomov D.M. et al: J. Proteome Res. June 16, 2016. DOI: 10.1021/acs.jproteome.6b00021
Latest version on Maven Central
<dependency>
<groupId>com.github.chhh</groupId>
<artifactId>msftbx</artifactId>
<version>1.8.8</version>
</dependency>
Get pre-built jars from Maven Central.
cd ./MSFileToolbox && mvn clean package
Will produce the jar files with just the library msftbx-X.X.X.jar
as well as one large jar msftbx-X.X.X-jar-with-dependencies.jar
.
The latter can be used as is, it includes all the needed dependencies.
NetBeans Module: Open the root directory in NetBeans as a project. You will see MSFTBX
module suite which consists of 3 modules: MSFileToolbox Module - (this is the main thing), MSFileToolbox Libx - these are the depencies, and Auto Update (MSFTBX) - this is the update center for NetBeans Platform projects (you definitely don't need this) .
When dealing with mzIdentML files (.mzid) you will encounter AbstractParamType
.
In the definition of mzIdentML both cvParam
and userParam
inherit from it
and both cvParam
and userParam
can be stored in the same list. Thus, when
you get such a list, you'll need to cast manually to the concrete type like so:
List<AbstractParamType> paramGroup = blabla.getParamGroup();
for (AbstractParamType param : paramGroup) {
if (param instanceof CVParamType) {
CVParamType p = (CVParamType)param;
// do something with cvParam
} else if (param instanceof UserParamType) {
UserParamType p = (UserParamType)param;
// do something with userParam
}
}