|
47 | 47 | }, |
48 | 48 | ) |
49 | 49 |
|
| 50 | +test_psm_im = PSM( |
| 51 | + peptidoform="YVDDTQFVRFDSDAASPR/3", |
| 52 | + spectrum_id="index=45761", |
| 53 | + run="G220824_028_Slot2-34_1_6753", |
| 54 | + collection=None, |
| 55 | + spectrum=None, |
| 56 | + is_decoy=False, |
| 57 | + score=0.47067946, |
| 58 | + qvalue=0.0000107030855, |
| 59 | + pep=None, |
| 60 | + precursor_mz=696.6580583654032, |
| 61 | + retention_time=23.004148, |
| 62 | + ion_mobility=0.96470714, |
| 63 | + protein_list=['sp|P01889|HLAB_HUMAN','sp|P10321|HLAC_HUMAN'], |
| 64 | + rank=1, |
| 65 | + source="sage", |
| 66 | + metadata={}, |
| 67 | + rescoring_features={ |
| 68 | + "expmass": 2086.9507, |
| 69 | + "calcmass": 2087.9548, |
| 70 | + "peptide_len": 18.0, |
| 71 | + "missed_cleavages": 0.0, |
| 72 | + "isotope_error": -1.00335, |
| 73 | + "precursor_ppm": 0.38332784, |
| 74 | + "fragment_ppm": 1.5193833, |
| 75 | + "hyperscore": 44.947527657385436, |
| 76 | + "delta_next": 24.626872218188044, |
| 77 | + "delta_best": 0.0, |
| 78 | + "delta_rt_model": 0.0004390478, |
| 79 | + "aligned_rt": 0.5305706, |
| 80 | + "predicted_rt": 0.5301316, |
| 81 | + "matched_peaks": 17.0, |
| 82 | + "longest_b": 2.0, |
| 83 | + "longest_y": 6.0, |
| 84 | + "longest_y_pct": 0.33333334, |
| 85 | + "matched_intensity_pct": 46.215378, |
| 86 | + "scored_candidates": 33149.0, |
| 87 | + "poisson": -14.997740845471464, |
| 88 | + "ms2_intensity": 26230.0, |
| 89 | + "ion_mobility": 0.96470714, |
| 90 | + "predicted_mobility": 0.9236175, |
| 91 | + "delta_mobility": 0.041089654, |
| 92 | + } |
| 93 | +) |
| 94 | + |
50 | 95 |
|
51 | 96 | class TestSageTSVReader: |
52 | 97 | def test_iter(self): |
53 | 98 | with SageTSVReader("./tests/test_data/results.sage.tsv") as reader: |
54 | 99 | for psm in reader: |
55 | 100 | psm.provenance_data = {} |
56 | 101 | assert psm == test_psm |
| 102 | + with SageTSVReader("./tests/test_data/resultsIM.sage.tsv") as reader: |
| 103 | + for psm in reader: |
| 104 | + psm.provenance_data = {} |
| 105 | + assert psm == test_psm_im |
57 | 106 |
|
58 | 107 |
|
59 | 108 | class TestSageParquetReader: |
|
0 commit comments