-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump batmass to 1.32.4 for partial mzbin reading
Add LocalizationLikelihood class for faster likelihood access Add localizationLikelihoodMap in IterativeLocalizer for faster likelihood access Refactored IterativeLocalizer.localizePsm function so that shared ions are only extracted from the spectrum during IterativeLocalizer.computePoissonBinomialLikelihood if the likelihood is not already computed Add specNum attribute to PSM class Bump to rc4 This commit results in a 45% speedup to IterativeLocalizer.calculateLocalizationProbabilities
- Loading branch information
1 parent
19521ff
commit a910af3
Showing
8 changed files
with
140 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/edu/umich/andykong/ptmshepherd/iterativelocalization/LocalizationLikelihood.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package edu.umich.andykong.ptmshepherd.iterativelocalization; | ||
|
||
import java.util.ArrayList; | ||
|
||
public class LocalizationLikelihood { | ||
ArrayList<Mod> mods; | ||
|
||
LocalizationLikelihood() { | ||
this.mods = new ArrayList<>(); | ||
} | ||
|
||
LocalizationLikelihood(float dMass, double[] siteLikelihoods) { | ||
this.mods = new ArrayList<>(); | ||
this.mods.add(new Mod(dMass, siteLikelihoods)); | ||
} | ||
|
||
public Mod getMod() { //todo variable mod searches will require multiple modifications | ||
return mods.get(0); | ||
} | ||
|
||
public class Mod { | ||
float dMass; | ||
double[] siteLikelihoods; | ||
|
||
Mod(float dMass, double[] siteLikelihoods) { | ||
this.dMass = dMass; | ||
this.siteLikelihoods = siteLikelihoods; | ||
} | ||
|
||
public double[] getSiteLikelihoods() { | ||
return this.siteLikelihoods; | ||
} | ||
} | ||
} |