Skip to content

Commit

Permalink
Partial swapped AA decoy generation method
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgeiszler committed May 2, 2024
1 parent eb37c86 commit 277a268
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -676,9 +676,7 @@ public int compareTo(SpecProbQ o) {
qEntropyDecoyModel[i] = min;
}





/**
// Print to test
for (int i = flrProb.length-1; i >= 0; i--) {
Expand Down
11 changes: 11 additions & 0 deletions src/edu/umich/andykong/ptmshepherd/utils/Peptide.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ else if (method.equals("mono-mutated"))
return null; //TODO
}

public Peptide generateDecoy(Random rng, String method, int pos) {
if (method.equals("swap"))
return generateSwappedDecoy(this.pepSeq, this.mods, pos, rng);
else
return null; //TODO
}

public static Peptide generateDecoy(String pep, float[] mods, Random rng, String method) {
if (method.equals("shuffled"))
return generateShuffledDecoy(pep, mods, rng);
Expand Down Expand Up @@ -148,6 +155,10 @@ public static Peptide generateMonoMutatedDecoy(String pep, float[] mods, int mut
return new Peptide(newPep.toString(), mods, mutSite);
}

public static Peptide generateSwappedDecoy(String pepSeq, float[] mods, int pos, Random rng) {
//TODO
return new Peptide(pepSeq, mods);
}

static class Site {
char aa;
Expand Down

0 comments on commit 277a268

Please sign in to comment.