Class ReporterIonQuantification
java.lang.Object
com.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.experiment.quantification.Quantification
com.compomics.util.experiment.quantification.reporterion.ReporterIonQuantification
- All Implemented Interfaces:
Serializable
This class contains quantification parameters.
- Author:
- Marc Vaudel
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.compomics.util.experiment.quantification.Quantification
Quantification.QuantificationMethod -
Field Summary
Fields inherited from class com.compomics.util.experiment.quantification.Quantification
methodUsedFields inherited from class com.compomics.util.experiment.personalization.ExperimentObject
NO_KEY -
Constructor Summary
ConstructorsConstructorDescriptionEmpty default constructorConstructor for the reporter ion quantification. -
Method Summary
Modifier and TypeMethodDescriptionvoidassignSample(String reporterName, String sample) Assign a sample to an ion referenced by its static index.Returns the indexes of the samples labeled as control.static StringgetDefaultReference(String experimentReference, String sampleReference, int replicateNumber) Returns the default reference for an identification.Returns the normalization factors.getReporterIndex(String aSample) This method returns the reporter ion name associated to the given sample.Returns the reporter method used.This method returns the sample associated to the given ion.getSampleIndex(String sampleReference) Returns the sample index for the given sample.Returns a set containing the indexes of every sample.voidsetControlSamples(ArrayList<String> controlSamples) Sets the indexes of the samples labeled as control.voidsetMethod(ReporterMethod reporterMethod) Sets the reporter method used.voidsetNormalizationFactors(NormalizationFactors normalizationFactors) Sets the normalization factors.voidsetSampleIndex(String sampleReference, Integer index) Set the sample index for the given sample.Methods inherited from class com.compomics.util.experiment.quantification.Quantification
getMethodUsed, setMethodUsedMethods inherited from class com.compomics.util.experiment.personalization.ExperimentObject
addUrParam, asLong, clearParametersMap, getId, getUrParam, getUrParams, removeUrParam, setId, setUrParams
-
Constructor Details
-
ReporterIonQuantification
public ReporterIonQuantification()Empty default constructor -
ReporterIonQuantification
Constructor for the reporter ion quantification.- Parameters:
methodUsed- the method used for this quantification
-
-
Method Details
-
assignSample
Assign a sample to an ion referenced by its static index.- Parameters:
reporterName- the name of the reporter ionsample- the sample
-
getSampleIndex
Returns the sample index for the given sample.- Parameters:
sampleReference- the sample reference- Returns:
- the sample index for the given sample
-
setSampleIndex
Set the sample index for the given sample.- Parameters:
sampleReference- the sample referenceindex- the index
-
getSample
This method returns the sample associated to the given ion.- Parameters:
reporterIonName- the static index of the reporter ion- Returns:
- the corresponding sample
-
getReporterIndex
This method returns the reporter ion name associated to the given sample. Null if not found.- Parameters:
aSample- the sample- Returns:
- the static index of the associated ion
-
getReporterMethod
Returns the reporter method used.- Returns:
- the method used
-
setMethod
Sets the reporter method used.- Parameters:
reporterMethod- the reporter method used
-
getDefaultReference
public static String getDefaultReference(String experimentReference, String sampleReference, int replicateNumber) Returns the default reference for an identification.- Parameters:
experimentReference- the experiment referencesampleReference- the sample referencereplicateNumber- the replicate number- Returns:
- the default reference
-
getControlSamples
Returns the indexes of the samples labeled as control.- Returns:
- the indexes of the samples labeled as control
-
setControlSamples
Sets the indexes of the samples labeled as control.- Parameters:
controlSamples- the indexes of the samples to label as control
-
getSampleIndexes
Returns a set containing the indexes of every sample.- Returns:
- a set containing the indexes of every sample
-
getNormalizationFactors
Returns the normalization factors.- Returns:
- the normalization factors
-
setNormalizationFactors
Sets the normalization factors.- Parameters:
normalizationFactors- the normalization factors
-