splash-scala is a set of wrappers and convenience functions for the spectral hash code generator written in Scala.
mvn clean install
will build your project, run all the tests and you can find the build jar files, in the target directories of the project.
// Directly using the Java libraries
import jp.riken.mirt.splash._
import edu.ucdavis.fiehnlab.spectra.hash.core.types.SpectraType
val factory = SplashFactory.create
val spectrum = v1.SpectrumImpl(Seq(Ion(100.0, 50)), SpectraType.MS)
val splash = factory.splashIt(spectrum)
// With Scala helpers (implicit conversions)
import jp.riken.mirt.splash._
import jp.riken.mirt.splash.JavaConversions._
val spectrum: Spectrum = Seq(Ion(100.0, 50))
val splash: String = spectrum.splashIt
Run the following goals to run the basic test suite: mvn clean test
This library was written by Ramon Mejia is licensed under the BSD 3 license.