C# Class NSSplash.Splash

Inheritance: ISplash
Show file Open project: berlinguyinca/spectra-hash Class Usage Examples

Public Properties

Property Type Description
scalingOfRelativeIntensity int

Public Methods

Method Description
ToBase10 ( string number, int start_base ) : int
splashIt ( ISpectrum spectrum ) : string

Protected Methods

Method Description
filterSpectrum ( ISpectrum s, double basePeakPercentage ) : ISpectrum
filterSpectrum ( ISpectrum s, int topIons ) : ISpectrum
filterSpectrum ( ISpectrum s, int topIons, double basePeakPercentage ) : ISpectrum

Private Methods

Method Description
formatIntensity ( double number ) : string
formatMZ ( double number ) : string
getFirstBlock ( SpectrumType specType ) : string

Generates the version block

getHistoBlock ( ISpectrum spec, int nbase, int length, int binSize ) : string

calculates a histogram of the spectrum. If weighted, it sums the mz * intensities for the peaks in each bin

getSpectrumBlock ( ISpectrum spec ) : string

calculate the hash for the whole spectrum

translateBase ( string number, int initialBase, int finalBase, int fill ) : string

Translate a number in string format from one numerical base to another

Method Details

ToBase10() public static method

public static ToBase10 ( string number, int start_base ) : int
number string
start_base int
return int

filterSpectrum() protected method

protected filterSpectrum ( ISpectrum s, double basePeakPercentage ) : ISpectrum
s ISpectrum
basePeakPercentage double
return ISpectrum

filterSpectrum() protected method

protected filterSpectrum ( ISpectrum s, int topIons ) : ISpectrum
s ISpectrum
topIons int
return ISpectrum

filterSpectrum() protected method

protected filterSpectrum ( ISpectrum s, int topIons, double basePeakPercentage ) : ISpectrum
s ISpectrum
topIons int
basePeakPercentage double
return ISpectrum

splashIt() public method

public splashIt ( ISpectrum spectrum ) : string
spectrum ISpectrum
return string

Property Details

scalingOfRelativeIntensity public static property

how to scale the spectrum
public static int scalingOfRelativeIntensity
return int