Skip to content

Commit

Permalink
updating version and peptide list bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe da Veiga Leprevost committed Jan 25, 2021
1 parent 5e552da commit 699681e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
- Added support to compensation Voltage.

### Changed
- Tabular spaces in FASTA headers will be replaces by spaces.
- Tabular spaces in FASTA headers will be replaced by a simple space character.

### Fixed
### Fixed
- Fix a bug that would miscalculate the number of peptides to be reported.
4 changes: 3 additions & 1 deletion lib/rep/updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ func (evi *Evidence) UpdateIonStatus(decoyTag string) {
var uniqueSeqMap = make(map[string]string)

for _, i := range evi.Proteins {

for _, j := range i.TotalPeptideIons {
if j.IsUnique == true {
uniqueMap[j.IonForm] = true
Expand Down Expand Up @@ -151,7 +152,8 @@ func (evi *Evidence) UpdateIonStatus(decoyTag string) {
}

for i := range evi.Peptides {
v, ok := uniqueSeqMap[evi.Peptides[i].Sequence]
//v, ok := uniqueSeqMap[evi.Peptides[i].Sequence]
v, ok := sequenceMap[evi.Peptides[i].Sequence]
if ok {
evi.Peptides[i].MappedProteins[evi.Peptides[i].Protein] = 0
delete(evi.Peptides[i].MappedProteins, v)
Expand Down

0 comments on commit 699681e

Please sign in to comment.