Closed fungs closed 6 years ago
It looks like it comes from this line:
https://github.com/fhcrc/seqmagick/blob/0.7.0/seqmagick/transform.py#L665
logging.warning("Unknown Codon: %s", codon)
Which in turn is probably configured here:
https://github.com/fhcrc/seqmagick/blob/0.7.0/seqmagick/scripts/cli.py#L27
# set up logging
logging.basicConfig(stream=sys.stdout, format=logformat, level=loglevel)
That should surely default to logging to sys.stderr
rather than sys.stdout
exactly because of the problem reported here (polluting standard output which should be data only).
Closed by #75. Thank you both, @fungs for reporting and @peterjc for submitting the fix!
Hi, lovely program! I'm using it to convert entire nucleotide alignments with gaps to protein space, there are very few programs around that would correctly treat gaps symbols here. One issue I'm having with v0.7.0 is that it writes error messages to stdout instead of stderr, for instance to notify about unknown codons which include gap symbols. This should be easy to fix. I currently have to filter the output through grep to clean it up.
Example input in aln.fna:
Example output in aln.faa:
Thanks!
Best, Johannes