alphabase 1.10.2__tar.gz → 1.10.3.dev0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {alphabase-1.10.2/alphabase.egg-info → alphabase-1.10.3.dev0}/PKG-INFO +1 -1
- alphabase-1.10.3.dev0/alphabase/__init__.py +1 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/spectral_library/decoy.py +51 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0/alphabase.egg-info}/PKG-INFO +1 -1
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/docs/conf.py +1 -1
- alphabase-1.10.2/alphabase/__init__.py +0 -1
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/LICENSE.txt +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/MANIFEST.in +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/README.md +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/constants/__init__.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/constants/_const.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/constants/aa.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/constants/atom.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/constants/const_files/__emass_element.yaml +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/constants/const_files/amino_acid.tsv +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/constants/const_files/common_constants.yaml +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/constants/const_files/contaminants.fasta +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/constants/const_files/modification.tsv +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/constants/const_files/nist_element.yaml +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/constants/const_files/pg_reader.yaml +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/constants/const_files/protease.yaml +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/constants/const_files/psm_reader.yaml +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/constants/element.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/constants/isotope.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/constants/modification.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/constants/spectral_library.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/io/__init__.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/io/hdf.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/io/tempmmap.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/numba_wrapper.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/peptide/__init__.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/peptide/fragment.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/peptide/mass_calc.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/peptide/mobility.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/peptide/precursor.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/pg_reader/__init__.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/pg_reader/alphadia_pg_reader.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/pg_reader/alphapept_pg_reader.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/pg_reader/diann_pg_reader.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/pg_reader/directlfq_pg_reader.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/pg_reader/fragpipe_pg_reader.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/pg_reader/keys.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/pg_reader/maxquant_pg_reader.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/pg_reader/mztab_pg_reader.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/pg_reader/pd_pg_reader.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/pg_reader/pg_reader.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/pg_reader/spectronaut_reader.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/protein/__init__.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/protein/fasta.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/protein/inference.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/protein/lcp_digest.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/protein/protein_level_decoy.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/psm_reader/__init__.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/psm_reader/alphadia_reader.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/psm_reader/alphapept_reader.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/psm_reader/dia_psm_reader.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/psm_reader/keys.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/psm_reader/maxquant_reader.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/psm_reader/modification_mapper.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/psm_reader/msfragger_reader.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/psm_reader/pfind_reader.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/psm_reader/psm_reader.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/psm_reader/sage_reader.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/psm_reader/utils.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/smiles/__init__.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/smiles/adding_smiles.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/smiles/peptide.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/smiles/smiles.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/spectral_library/__init__.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/spectral_library/annotate.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/spectral_library/base.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/spectral_library/flat.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/spectral_library/metrics.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/spectral_library/peaks_reader.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/spectral_library/reader.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/spectral_library/translate.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/spectral_library/translate_diann.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/spectral_library/validate.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/tools/__init__.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/tools/data_downloader.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/utils.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/yaml_utils.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase.egg-info/SOURCES.txt +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase.egg-info/dependency_links.txt +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase.egg-info/requires.txt +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase.egg-info/top_level.txt +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/nbs_tests/conftest.py +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/pyproject.toml +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/requirements/requirements.txt +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/requirements/requirements_development.txt +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/requirements/requirements_docs.txt +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/requirements/requirements_hdf.txt +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/requirements/requirements_hdf_loose.txt +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/requirements/requirements_loose.txt +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/requirements/requirements_numba.txt +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/requirements/requirements_numba_loose.txt +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/requirements/requirements_rdkit.txt +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/requirements/requirements_rdkit_loose.txt +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/requirements/requirements_tests.txt +0 -0
- {alphabase-1.10.2 → alphabase-1.10.3.dev0}/setup.cfg +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.10.3-dev0"
|
|
@@ -65,6 +65,55 @@ class DIANNDecoyGenerator(BaseDecoyGenerator):
|
|
|
65
65
|
)
|
|
66
66
|
|
|
67
67
|
|
|
68
|
+
class DIANNKeepProlineDecoyGenerator(DIANNDecoyGenerator):
|
|
69
|
+
"""
|
|
70
|
+
Decoy of `DIANNDecoyGenerator` that keeps a proline before the C-terminal
|
|
71
|
+
residue and mutates the residue before it instead.
|
|
72
|
+
|
|
73
|
+
Sequences shorter than 5 residues get the parent's decoy, because
|
|
74
|
+
moving the mutation inwards would hit the N-terminal mutation.
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
def _decoy(self, sequence: str) -> str:
|
|
78
|
+
if len(sequence) < 5 or sequence[-2] != "P":
|
|
79
|
+
return super()._decoy(sequence)
|
|
80
|
+
return (
|
|
81
|
+
sequence[0]
|
|
82
|
+
+ self._mutate(sequence[1])
|
|
83
|
+
+ sequence[2:-3]
|
|
84
|
+
+ self._mutate(sequence[-3])
|
|
85
|
+
+ sequence[-2:]
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
def _mutate(self, amino_acid: str) -> str:
|
|
89
|
+
return self.mutated_AAs[self.raw_AAs.index(amino_acid)]
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
class DIANNInnerDecoyGenerator(DIANNKeepProlineDecoyGenerator):
|
|
93
|
+
"""
|
|
94
|
+
Decoy that applies the mutation map of `DIANNDecoyGenerator` to the third
|
|
95
|
+
and the third-to-last residue instead of the second and the second-to-last.
|
|
96
|
+
|
|
97
|
+
A proline at either mutated position moves that mutation one residue
|
|
98
|
+
inwards, so the decoy keeps the proline. Sequences shorter than 7 residues
|
|
99
|
+
get the parent's decoy, because the two mutations could fall on the same
|
|
100
|
+
residue.
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
def _decoy(self, sequence: str) -> str:
|
|
104
|
+
if len(sequence) < 7:
|
|
105
|
+
return super()._decoy(sequence)
|
|
106
|
+
first, second = 2, len(sequence) - 3
|
|
107
|
+
if sequence[second] == "P":
|
|
108
|
+
second -= 1
|
|
109
|
+
if sequence[first] == "P" and first + 1 < second:
|
|
110
|
+
first += 1
|
|
111
|
+
residues = list(sequence)
|
|
112
|
+
residues[first] = self._mutate(sequence[first])
|
|
113
|
+
residues[second] = self._mutate(sequence[second])
|
|
114
|
+
return "".join(residues)
|
|
115
|
+
|
|
116
|
+
|
|
68
117
|
class PseudoReverseDecoyGenerator(BaseDecoyGenerator):
|
|
69
118
|
def __init__(self, fix_C_term: bool = True):
|
|
70
119
|
"""
|
|
@@ -258,3 +307,5 @@ register and get different types of decoy methods.
|
|
|
258
307
|
|
|
259
308
|
decoy_lib_provider.register("pseudo_reverse", PseudoReverseDecoyGenerator)
|
|
260
309
|
decoy_lib_provider.register("diann", DIANNDecoyGenerator)
|
|
310
|
+
decoy_lib_provider.register("diann_keep_proline", DIANNKeepProlineDecoyGenerator)
|
|
311
|
+
decoy_lib_provider.register("diann_inner", DIANNInnerDecoyGenerator)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "1.10.2"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/constants/const_files/__emass_element.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/constants/const_files/common_constants.yaml
RENAMED
|
File without changes
|
{alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/constants/const_files/contaminants.fasta
RENAMED
|
File without changes
|
|
File without changes
|
{alphabase-1.10.2 → alphabase-1.10.3.dev0}/alphabase/constants/const_files/nist_element.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|