This repository holds the source code for clustering and merging of fragment spectra from shotgun proteomics experiments.
Installers for several operating systems can be found on the Release page.
If you prefer to compile from source, or are running on a different operating system, click here.
An example, including spectrum files and a shell script, can be downloaded from http://kaell.org/files/maracluster_sample.zip.
The main functionality of MaRaCluster is provided by the
maracluster command. This command has several sub-commands to execute different parts of the clustering and merging. The most important ones are
maracluster batch and
maracluster consensus. The first takes a list of ms2 spectra as input and outputs a list of clusters, the second takes one of these outputs and creates consensus spectra for each cluster.
maracluster batch, a flat text file with the absolute/relative path to each of the ms2 spectrum files (one per line) is needed. Such a file can easily be generated using a
ls -1 command, e.g.
ls -1 ms2/* > files.txt. Any ms2 spectrum format readable by ProteoWizard can be used as input. Use the following command to start clustering:
maracluster batch -b files.txt
This will create several files called
MaRaCluster.clusters_p<x>.tsv in a subdirectory called
maracluster_output, for a range of p-value thresholds
10e-<x>. These output files contain one spectrum per line, with different clusters separated by an empty line. The spectrum is listed with the path to the spectrum file in the first column and the scannr (or scan idx if no scannr is available) in the second column, separated by a tab.
maracluster consensus, we take one of the cluster files as input, e.g.:
maracluster consensus -l maracluster_output/MaraCluster.clusters_p10.tsv
For more information and options run
maracluster -h on the command line.
Installation from source
MaRaCluster depends on the Proteowizard and Boost libraries, these can conveniently be installed simultaneously using the provided installation script (
/bin/install_proteowizard.sh). The libraries will be build in a newly created
./libs folder, no superuser rights are necessary.
To install MaRaCluster, you can use the provided installation script
./quickbuild.sh, which will build the package in
./bin/build, and install the executables in the
/usr/bin folder (needs superuser rights). If you do not have superuser rights, or want to install the executable somewhere else, modify the script accordingly by setting the
-DCMAKE_INSTALL_PREFIX flag to the desired location, and change the last line from
sudo make install to