Question: What is the "-" option of samtools?
0
gravatar for vw
11 months ago by
vw20
vw20 wrote:

Hi all,

I saw a command line:

samtools view -u alignment.sam | samtools sort -@ 4 - output_prefix

from samtools (conversion from .sam to .bam) and sorting of .bam file

I don't know the function of the - before the output_prefix. I cannot find it in the manual book.

Could you help me figure out it?

Thank you!

samtools • 299 views
ADD COMMENTlink modified 11 months ago by Pierre Lindenbaum128k • written 11 months ago by vw20
2
gravatar for Pierre Lindenbaum
11 months ago by
France/Nantes/Institut du Thorax - INSERM UMR1087
Pierre Lindenbaum128k wrote:

'-' just means stdin/standard input

http://www.htslib.org/doc/samtools-1.2.html

Samtools is designed to work on a stream. It regards an input file - as the standard input (stdin) and an output file - as the standard output (stdout).

ADD COMMENTlink modified 11 months ago • written 11 months ago by Pierre Lindenbaum128k

Thank you! You solved my question.

ADD REPLYlink written 11 months ago by vw20
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1077 users visited in the last hour