[Biopython] subprocess.Popen problem
Peter Cock
p.j.a.cock at googlemail.com
Wed Nov 2 09:42:15 UTC 2011
On Wed, Nov 2, 2011 at 9:03 AM, Mic <mictadlo at gmail.com> wrote:
> Thank you, but is it possible to store the SOAP output in the memory/file in
> order to retrieve the following statistics lines?
> Total Pairs: 1000 PE
> Paired: 35 ( 3.50%) PE
> Singled: 170 ( 8.50%) SE
> Total Elapsed Time: 24.00
> - Load Index Table: 23.22
> - Alignment: 0.78
> Thank you in advance.
Assuming that is written to stdout, just collect it as a pipe (handle)
via subprocess, or since it is short, use the .communicate method
and get this as a string.
http://docs.python.org/library/subprocess.html
Peter
More information about the Biopython
mailing list