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

Feature request: allow for silent/verbose mode #17

Open
richelbilderbeek opened this issue Jun 2, 2020 · 3 comments
Open

Feature request: allow for silent/verbose mode #17

richelbilderbeek opened this issue Jun 2, 2020 · 3 comments

Comments

@richelbilderbeek
Copy link
Contributor

Dear MHCnuggets maintainer,

I have written a package to call MHCnuggets from R. However, when I call the predict function, MHCnuggets produces output, which (1) I cannot prevent, and (2) clutters the log files. Taking a look at the code, one can observe that there are no if statements around the output.

I suggest to add a silent/verbose mode, so that it is possible to run MHCnuggets without having output.

@richelbilderbeek
Copy link
Contributor Author

@XiaoshanShao: has this been closed because it is implemented or because it will not be?

@XiaoshanShao
Copy link
Contributor

XiaoshanShao commented Sep 29, 2020

I believe mhcnuggets' output only goes to log file if you did not provide an output path to it under the output flag as shown in this section of the code:

if output: filehandle = open(output, 'w') else: filehandle = sys.stdout

Do you wish to not output indication message such as which alleles it is predicting against or how many peptides it is predicting?

@richelbilderbeek
Copy link
Contributor Author

I believe mhcnuggets' output only goes to log file if you did not provide an output path to it under the output flag [...]

Yes, that is correct.

Do you wish to not output indication message such as which alleles it is predicting against or how many peptides it is predicting?

Yes, that is where I was referring to: I would enjoy to run MHCnuggets without any output. Here is an example from my log files:

Predicting for 2616 peptides
Number of peptides skipped/total due to length 0 / 0
Building model
Closest allele found HLA-A01:01
BA_to_HLAp model found, predicting with BA_to_HLAp model...
Using TensorFlow backend.

richelbilderbeek pushed a commit to richelbilderbeek/mhcnuggetsr that referenced this issue Feb 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants