Thx a lot. So simple, I am really a Novice!!
Samtools Depth Can Only Have Stdout?
3 answers
In unix you can redirect stdout to file:
samtools mpileup bam > out.txt
• 0 views
•
link
I suppose you just want to redirect the output of your command into a file. This is not a bioinformatics question, but a UNIX question.
Anyway, you should use the redirection character (>) and your syntax should look like:
samtools_command -andoptions inputfile > outputfile
• 0 views
•
link
Thanks a lot!!!!
• 1 views
•
link
try to use the pipeline redirection: http://www.codecoffee.com/tipsforlinux/articles2/042.html
samtools depth file.bam > result.txt
• 0 views
•
link
Warm-hearted person!
• 1 views
•
link
Log in to answer this question.