NVIDIA-Genomics-Research / GenomeWorks

SDK for GPU accelerated genome assembly and analysis
https://clara-parabricks.github.io/GenomeWorks/
Apache License 2.0
278 stars 76 forks source link

[pygenomeworks] logger chatter. #648

Open iiSeymour opened 3 years ago

iiSeymour commented 3 years ago

When creating a CudaPoaBatch object a default logger is initialized and outputs to stderr.

>>> from genomeworks.cudapoa import CudaPoaBatch
>>> CudaPoaBatch(1000, 1000, 3724032)
GenomeWorks logger not initialized yet. Initializing default logger now.
Initialized GenomeWorks logger with log level ERROR

Can the logger be initialized from Python with a stream to avoid this output?

iiSeymour commented 3 years ago

cudapoa also outputs to stdout which can go unseen and corrupt output formats (fastx, sam, ect).

vellamike commented 3 years ago

@ohadmo @EpiSlim can we add an option to disable logging completely?