You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/examples.rst
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,35 @@ Combining FASTQ output
61
61
By default, AdapterRemoval will create one output file for each mate, one file for discarded reads, and (in PE mode) one file paired reads where one mate has been discarded, and (optionally) two files for collapsed reads. Alternatively, these files may be combined using the ``--combined-output``, in which case all output is directed to the mate 1 and (in PE mode) to the mate 2 file. In cases where reads are discarded due to trimming to due to being collapsed into a single sequence, the sequence and quality scores of the discarded read is replaced with a single 'N' with base-quality 0. This option may be combined with ``--interleaved`` / ``--interleaved-output``, to write a single, interleaved file in paired-end mode.
62
62
63
63
64
+
Reading from STDIN and writing to STDOUT
65
+
----------------------------------------
66
+
67
+
AdapterRemoval does not provide specific command-line options for for reading data from STDIN or writing data to STDOUT, but files are opened/read only once and no data is written to STDOUT. The only exception is the ``--identify-adapters`` command, which prints the identification results to STDOUT, but this command does not produce FASTQ output.
68
+
69
+
This means that it is possible to read data from STDIN simply by using the special files ``/dev/stdin`` and ``/dev/stdout``.
70
+
71
+
For example, to read FASTQ reads from STDIN assuming that ``fastq-producer`` is a command that produces FASTQ output (compressed or uncompressed)::
0 commit comments