Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.04 KB

README.md

File metadata and controls

38 lines (25 loc) · 1.04 KB

SPLASH-Scala

splash-scala is a set of wrappers and convenience functions for the spectral hash code generator written in Scala.

Installation

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.

Basic usage

// 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

Testing

Run the following goals to run the basic test suite: mvn clean test

Credits

This library was written by Ramon Mejia is licensed under the BSD 3 license.