bingxiao / biopieces

Automatically exported from code.google.com/p/biopieces
0 stars 0 forks source link

Verbose writing to screen all the time #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. read_sam -n 10 -i sample.sam | write_tab -o out.txt 
2.
3.

What is the expected output? What do you see instead?
pipe the input file into re-formated file.
instead, piping works, but always write all the input to screen at the same time

What version of the product are you using? On what operating system?
current
OS X 10.6

Please provide any additional information below.
I tried combination of different read/write functions, the input data is always 
written to the screen.

Original issue reported on code.google.com by zhezhan...@gmail.com on 17 Jun 2010 at 8:50

GoogleCodeExporter commented 9 years ago
Using that pipe you are getting a mixture of tabular lines and the records from 
the data stream. You want to terminate the data stream with the -x 
(--no_stream) option to avoid this:

read_sam -n 10 -i sample.sam | write_tab -o out.txt -x

Read about the data stream here:

http://code.google.com/p/biopieces/wiki/Introduction#The_Data_Stream

Martin

Original comment by martinah...@gmail.com on 18 Jun 2010 at 5:36