Skip to content

Feature request: allow for silent/verbose mode #17

Description

@richelbilderbeek

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.

Activity

  1. richelbilderbeek commented on Sep 28, 2020

    @richelbilderbeek
    ContributorAuthor

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

  2. XiaoshanShao commented on Sep 29, 2020

    @XiaoshanShao
    Contributor

    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?

  3. richelbilderbeek commented on Sep 29, 2020

    @richelbilderbeek
    ContributorAuthor

    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.
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions