Skip to content

Commit

Permalink
Merge pull request #74 from xomicsdatascience/dev
Browse files Browse the repository at this point in the history
adjust prosit column names to exclude modifications (prosit limits)
  • Loading branch information
CCranney authored Nov 28, 2023
2 parents 4e46d0e + f01bdf5 commit 4292825
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/zodiaq/loaders/library/mappings.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

oldColumnsProsit = [
"PrecursorMz",
"ModifiedPeptide",
"LabeledPeptide",
"FragmentMz",
"RelativeIntensity",
"PrecursorCharge",
Expand Down
10 changes: 5 additions & 5 deletions tests/unit/loaders/library/test_LibraryLoaderStrategyTable.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ def test__library_loader_strategy_table__load_raw_library_object_from_file__fail
def test__library_loader_strategy_table__load_raw_library_object_from_file__fails_when_missing_required_columns__prosit_library__ModifiedPeptide(
loader, prositLibFilePath
):
missingColumnValues = ["ModifiedPeptide"]
missingColumnValues = ["LabeledPeptide"]
check_value_error_thrown_when_missing_columns(
loader, prositLibFilePath, missingColumnValues
)
Expand Down Expand Up @@ -556,7 +556,7 @@ def test__library_loader_strategy_table__format_raw_library_object_into_zodiaq_l
loader._load_raw_library_object_from_file(prositLibFilePath)
outputDict = loader._format_raw_library_object_into_zodiaq_library_dict()
expectedOutputDict = {
(374.1867597566666, "_MMPAAALIM[Oxidation (O)]R_"): {
(374.1867597566666, "MMPAAALIMR"): {
"precursorCharge": 3,
"identification": "MMPAAALIMR",
"proteinName": "noloss",
Expand Down Expand Up @@ -601,7 +601,7 @@ def test__library_loader_strategy_table__format_raw_library_object_into_zodiaq_l
)
outputDict = loader._format_raw_library_object_into_zodiaq_library_dict()
expectedOutputDict = {
(254.3121828783333, "_MRALLLIPPPPM[Oxidation (O)]R_"): {
(254.3121828783333, "MRALLLIPPPPMR"): {
"precursorCharge": 6,
"identification": "MRALLLIPPPPMR",
"proteinName": "noloss",
Expand Down Expand Up @@ -632,7 +632,7 @@ def test__library_loader_strategy_table__format_raw_library_object_into_zodiaq_l
("y", 5, 1),
],
},
(374.1867597566666, "_MMPAAALIM[Oxidation (O)]R_"): {
(374.1867597566666, "MMPAAALIMR"): {
"precursorCharge": 3,
"identification": "MMPAAALIMR",
"proteinName": "noloss",
Expand Down Expand Up @@ -663,7 +663,7 @@ def test__library_loader_strategy_table__format_raw_library_object_into_zodiaq_l
("y", 6, 1),
],
},
(507.272473135, "_MLAPPPIM[Oxidation (O)]K_"): {
(507.272473135, "MLAPPPIMK"): {
"precursorCharge": 2,
"identification": "MLAPPPIMK",
"proteinName": "noloss",
Expand Down

0 comments on commit 4292825

Please sign in to comment.