...
- Here's one of those cases where you have to be careful about separating standard output and standard error.
- cutadapt writes its FASTQ output to standard output by default, and writes summary information to standard error.
- In this command we first redirect standard error to a log file named miRNA_test.cuta.log using the 2> syntax, in order to capture cutadapt diagnostics.
- Then the remaining standard output is piped to gzip, whose output is the redirected to a new compressed FASTQ file.
- (Read more about Standard streams and redirection)
...
Expand | ||
---|---|---|
| ||
The cutadapt --help output describes its usage as follows:
From this we see that the
And this says that input reads can also be provided on standard input, if that argument is a hyphen ( - ). So input data can come:
What about cutadapt output (the trimmed reads)? The brackets around the usage -o option indicate that the resulting trimmed FASTQ can be written to a file, but is not by default. This implies that cutadapt by default writes its results to standard output. So output can go
Finally, as we've seen, cutadapt also writes diagnostic output. Where does it go? The usage line doesn't say anything about diagnostics explicitly. But in the Output section of cutadapt --help:
Careful reading of this suggests that:
|
...