Skip to content

Commit

Permalink
remove protein evidences endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ypriverol committed Sep 25, 2024
1 parent 2805e22 commit 4535aef
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 77 deletions.
Empty file removed protein/__init__.py
Empty file.
45 changes: 0 additions & 45 deletions protein/protein.py

This file was deleted.

32 changes: 0 additions & 32 deletions tests/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from files.files import Files
from peptide.peptide import Peptide
from project.project import Project
from protein.protein import Protein


class TestSearch(TestCase):
Expand Down Expand Up @@ -39,37 +38,6 @@ def test_search_projects(self):
"submission_date")
assert len(result['_embedded']['compactprojects']) == 1

def test_protein_evidences(self):
"""
A test method to search protein evidences
"""
search = Protein()

result = search.protein_evidences("PXD019134", "", "", 100, 0, "ASC", "projectAccession")
assert result['page']['totalElements'] == 144176

result = search.protein_evidences("PXD019134", "123531", "CYSP2_HAECO", 100, 0, "ASC", "projectAccession")
assert len(result['_embedded']['proteinevidences']) == 1

# def test_spectra_evidences(self):
# """
# A test method to search spectra evidences
# """
# search = Spectra()
#
# result = search.spectra_evidences("mzspec:PXD019317:sh_5282_HYK_101018_Mac_D_25mM.mzML:scan:39507:TK["
# "MS:1001460]PFR/2", "", "", "", "", "COMPACT", 100, 0, "ASC",
# "projectAccession")
# assert len(result['_embedded']['spectraevidences']) == 1
#
# result = search.spectra_evidences("mzspec:PXD019317:sh_5282_HYK_101018_Mac_D_25mM.mzML:scan:39507:TK["
# "MS:1001460]PFR/2" + "\\n" +
# "mzspec:PXD019317:sh_5282_HYK_101018_Mac_D_25mM.mzML:scan"
# ":10138:YAAMVTC[UNIMOD:4]MDEAVRNITWALKR/3", "",
# "", "", "", "COMPACT", 100, 0,
# "ASC", "projectAccession")
# assert len(result['_embedded']['spectraevidences']) == 2
#
def test_peptide_evidences(self):
"""
A test method to search peptide evidences
Expand Down

0 comments on commit 4535aef

Please sign in to comment.