Skip to content

Commit

Permalink
Merge pull request #93 from jonasscheid/fix_netmhc_len_restriction
Browse files Browse the repository at this point in the history
Fix netmhc len restriction, add netmhciipan 4.2 interface
  • Loading branch information
jonasscheid authored Dec 1, 2023
2 parents 52b9387 + 5f8f6a6 commit 48b22f4
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
2 changes: 2 additions & 0 deletions epytope/Data/supportedAlleles/external/netmhcIIpan_4_2.py

Large diffs are not rendered by default.

30 changes: 29 additions & 1 deletion epytope/EpitopePrediction/External.py
Original file line number Diff line number Diff line change
Expand Up @@ -1493,7 +1493,7 @@ class NetMHCIIpan_4_0(NetMHCIIpan_3_1):
"""
__name = "netmhcIIpan"
__version = "4.0"
__supported_length = frozenset([9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20])
__supported_length = frozenset(list(range(9,57)))
__allele_import_name = f"{__name}_{__version}".replace('.', '_')
__alleles = getattr(__import__("epytope.Data.supportedAlleles.external." + __allele_import_name,
fromlist=[__allele_import_name])
Expand Down Expand Up @@ -1597,6 +1597,34 @@ def parse_external_result(self, file):

return result

class NetMHCIIpan_4_2(NetMHCIIpan_4_1):
"""
Implementation of NetMHCIIpan 4.2 adapter.
"""
__name = "netmhcIIpan"
__version = "4.2"
__supported_length = frozenset(list(range(9,57)))
__allele_import_name = f"{__name}_{__version}".replace('.', '_')
__alleles = getattr(__import__("epytope.Data.supportedAlleles.external." + __allele_import_name,
fromlist=[__allele_import_name])
, __allele_import_name)

__command = "netMHCIIpan -f {peptides} -inptype 1 -a {alleles} {options} -xls -xlsfile {out}"


@property
def version(self):
"""The version of the predictor"""
return self.__version

@property
def command(self):
"""
Defines the commandline call for external tool
"""
return self.__command


class PickPocket_1_1(AExternalEpitopePrediction):
"""
Implementation of PickPocket adapter.
Expand Down

0 comments on commit 48b22f4

Please sign in to comment.