Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe da Veiga Leprevost committed Jan 11, 2023
1 parent 30623a9 commit 3efe88c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 32 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ VERSION = $(shell date +%Y%m%d)
BUILD = $(shell date +%Y%m%d%H%M)

TAG = v4.7.1
RC = RC-1
RC = RC-2

LDFLAGS = -ldflags "-w -s -extldflags -static -X main.version=${TAG} -X main.build=${BUILD}"

Expand Down
32 changes: 1 addition & 31 deletions lib/rep/updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -427,19 +427,9 @@ func (evi *Evidence) UpdateLayerswithDatabase(decoyTag string) {
}
}

// type prevNextAA struct {
// prev string
// next string
// }

// var pepPrevNextAA = make(map[string]prevNextAA)

replacerIL := strings.NewReplacer("L", "I")
for i := range evi.PSM {

//var prevAA string
//var nextAA string

rec := recordMap[evi.PSM[i].Protein]
evi.PSM[i].ProteinID = rec.ID
evi.PSM[i].EntryName = rec.EntryName
Expand Down Expand Up @@ -473,24 +463,10 @@ func (evi *Evidence) UpdateLayerswithDatabase(decoyTag string) {

// map the peptide to the protein
mstart := strings.Index(replacerIL.Replace(rec.Sequence), peptide)
mend := mstart + len(evi.PSM[i].Peptide)
mend := mstart + len(peptide)

evi.PSM[i].ProteinStart = mstart + adjustStart
evi.PSM[i].ProteinEnd = mend + adjustEnd

// if evi.PSM[i].PrevAA == "-" {
// prevAA = ""
// } else {
// prevAA = evi.PSM[i].PrevAA
// }

// if evi.PSM[i].NextAA == "-" {
// nextAA = ""
// } else {
// nextAA = evi.PSM[i].NextAA
// }

//pepPrevNextAA[evi.PSM[i].Peptide] = prevNextAA{prevAA, nextAA}
}

for i := range evi.Ions {
Expand All @@ -512,9 +488,6 @@ func (evi *Evidence) UpdateLayerswithDatabase(decoyTag string) {
evi.Ions[i].MappedGenes[recordMap[k].GeneNames] = struct{}{}
}
}
// pnAA := pepPrevNextAA[evi.Ions[i].Sequence]
// evi.Ions[i].PrevAA = pnAA.prev
// evi.Ions[i].NextAA = pnAA.next
}

for i := range evi.Peptides {
Expand All @@ -535,9 +508,6 @@ func (evi *Evidence) UpdateLayerswithDatabase(decoyTag string) {
evi.Peptides[i].MappedGenes[recordMap[k].GeneNames] = struct{}{}
}
}
// pnAA := pepPrevNextAA[evi.Peptides[i].Sequence]
// evi.Peptides[i].PrevAA = pnAA.prev
// evi.Peptides[i].NextAA = pnAA.next
}
}

Expand Down

0 comments on commit 3efe88c

Please sign in to comment.