Skip to content

Commit

Permalink
working on I/L replacement for reports
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe da Veiga Leprevost committed Apr 13, 2023
1 parent bc0edbb commit ed7f74a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lib/rep/updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,23 @@ func (evi *Evidence) UpdateLayerswithDatabase(dbBin, decoyTag string) {
proteinStart[evi.PSM[i].Peptide] = evi.PSM[i].ProteinStart
proteinEnd[evi.PSM[i].Peptide] = evi.PSM[i].ProteinEnd

// {
// proteinStart[evi.PSM[i].Peptide] = mstart
// proteinEnd[evi.PSM[i].Peptide] = mend

// seq := recordMap[evi.PSM[i].Protein].Sequence

// fmt.Println(evi.PSM[i].Peptide)
// fmt.Println(peptide)

// fmt.Println(mstart)

// mapPep := seq[mstart:mend]
// fmt.Println(mapPep)

// fmt.Println("")
// }

// map the flanking aminoacids
flanks := regexp.MustCompile(`(\w{0,7})` + regexp.QuoteMeta(peptide) + `(\w{0,7})`)
f := flanks.FindAllStringSubmatch(replacerIL.Replace(rec.Sequence), -1)
Expand Down

0 comments on commit ed7f74a

Please sign in to comment.