https://github.com/carlomazzaferro/mhc_parser
Package for mhc binding prediction analysis
https://github.com/carlomazzaferro/mhc_parser
Last synced: 2 months ago
JSON representation
Package for mhc binding prediction analysis
- Host: GitHub
- URL: https://github.com/carlomazzaferro/mhc_parser
- Owner: carlomazzaferro
- Created: 2017-02-08T04:02:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-31T18:59:00.000Z (about 8 years ago)
- Last Synced: 2025-02-10T02:39:06.146Z (4 months ago)
- Language: Jupyter Notebook
- Size: 1.43 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Data Structure
Package for parsing netMHC predictions. Data is stored in a
General Info:
class PredictionCollection
PredictionCollection.dictionary_collections
[ { protein_1 : {'High Affinity Regions : [region1, region 2, ...],
'ProtSeq : 'SNFEDNSKDAJSNFWIAIAIJFNWKSAM....',
'Predictions : [ Prediction,
Prediction,
...
Prediction.Swaps.swap
[ { swap : Prediction },
{ swap : Prediction },
...,
{ swap : Prediction }
]
],
{ protein_3 : {'High Affinity Regions : [region1, region 2, ...],
'ProtSeq : 'SNFEDNSKDAJSNFWIAIAIJFNWKSAM....',
'Predictions : [ Prediction,
Prediction,
...
Prediction.Swaps.swap
[ { swap : Prediction },
{ swap : Prediction },
...,
{ swap : Prediction }
]
],
...,
{ protein_1 : {'High Affinity Regions : [region1, region 2, ...],
'ProtSeq : 'SNFEDNSKDAJSNFWIAIAIJFNWKSAM....',
'Predictions : [ Prediction,
Prediction,
...
Prediction.Swaps.swap
[ { swap : Prediction },
{ swap : Prediction },
...,
{ swap : Prediction }
]
], `
More specific information about the Prediction class:class Prediction #Holds all the info about a single prediction.
#I.e.:
Prediction.allele
Prediction.original_position
Prediction.protein
Prediction.affinity_level
Prediction.rank
Prediction.core_pep
Prediction.h_avg_ranks
Prediction.n_binders
Prediction.allele
Prediction.nmer`And as shown above, it also holds data about the possible swaps. For high-affinity peptides (user-defined thershold), the Swap class has as attribute a dictionary with the following structure:
Prediction.Swap.swaps
{'swap1': Prediction,
'swap2': Prediction,
'swap3': Prediction,
...
'swapN': Prediction}
Where `swapK` is a singly-modified peptide from the original, high-affinity peptide.