[Biopython-dev] Adding QUIET argument to PDBParser()

Peter Cock p.j.a.cock at googlemail.com
Fri May 6 16:25:40 UTC 2011


On Fri, May 6, 2011 at 5:23 PM, Eric Talevich <eric.talevich at gmail.com> wrote:
> On Fri, May 6, 2011 at 3:54 AM, João Rodrigues <anaryin at gmail.com> wrote:
>
>> Hello all,
>>
>> The PDBParser is sometimes a bit too loud, making meaningful output drown
>> in
>> dozens of warnings messages. This is partly (mostly) my fault because of
>> the
>> element guessing addition. Therefore, I'd suggest adding a QUIET argument
>> (bool) to PDBParser that would supress all warnings. Of course, default is
>> False. It might come handy for batch processing of proteins.
>>
>> I've added it to my pdb_enhancements branch so you can take a look:
>>
>>
>> https://github.com/JoaoRodrigues/biopython/commit/5405d8a4cc555bcfce6ad0915db62a131cee9493
>>
>>
> Since the PERMISSIVE argument is already an integer, could we consolidate
> these by letting (PERMISSIVE=2) behave as (PERMISSIVE=1, QUIET=1) ?
>

I'm OK with that,

Peter




More information about the Biopython-dev mailing list