Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setting the anchor points to '0,8' does not lead to an exception #280

Open
cbaakman opened this issue Oct 11, 2024 · 1 comment
Open

setting the anchor points to '0,8' does not lead to an exception #280

cbaakman opened this issue Oct 11, 2024 · 1 comment
Labels
Warning/Exception needed The code should return a warning or exception to make something clearer for the user

Comments

@cbaakman
Copy link

cbaakman commented Oct 11, 2024

Code:

 28 def run_case(args):
 29 
 30     id_, peptide = args
 31 
 32     allele_type = "HLA-A*0201"
 33 
 34     _log.debug(f"run case {allele_type} {peptide}")
 35 
 36     target = Target(
 37         id_,
 38         allele_type=allele_type,
 39         peptide=peptide,
 40         MHC_class="I",
 41         use_netmhcpan=True,
 42         output_dir="/home/cbaakman/pandora-models",
 43         anchors=[0,8],
 44     )
 45 
 46     forbidden_cluster = cluster_per_peptide[peptide]
 47 
 48     find_template_result, find_template_scores, keep_IL = find_template(target, db, best_n_templates=1000)
 49     templates = []
 50     for template in find_template_result:
 51         if template.peptide not in cluster_per_peptide or cluster_per_peptide[template.peptide] != forbidden_cluster:
 52             templates.append(template)
 53 
 54     case = Pandora(target, db, template=templates[0])
 55 
 56     case.model()

When I use this function, PANDORA builds the model, but the anchor isn't restrained.

@cbaakman cbaakman added the bug Something isn't working label Oct 11, 2024
@DarioMarzella DarioMarzella added Warning/Exception needed The code should return a warning or exception to make something clearer for the user and removed bug Something isn't working labels Oct 11, 2024
@DarioMarzella
Copy link
Collaborator

Thanks for reporting this @cbaakman . Will add an exception for the new version release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Warning/Exception needed The code should return a warning or exception to make something clearer for the user
Projects
Status: To do
Development

No branches or pull requests

2 participants