How to add prefix to samtools collate
1
0
Entering edit mode
3.3 years ago
MAPK ★ 2.1k

I am trying to run this command in loop. While doing so I am getting error for tmp directory having no space in collate step. I saw that samtools manual mentioning about prefix, but I am not sure how to redirect to temporary files to desired /path using prefix.

samtools collate -uO ${INBAM} | samtools fastq - -@ ${THREADS} -N -1 ${FQ_OUT1} -2 ${FQ_OUT2} -0 /dev/null -s /dev/null -n

What do I need to do to direct any temporary data to my designated /path?

samtools • 1.1k views
ADD COMMENT
3
Entering edit mode
3.3 years ago
ATpoint 80k

Usage: samtools collate [-Ou] [-o <name>] [-n nFiles] [-l cLevel] <in.bam> [<prefix>]

samtools collate -uO ${INBAM} ${INBAM}_prefix | samtools fastq - -@ ${THREADS} -N -1 ${FQ_OUT1} -2 ${FQ_OUT2} -0 /dev/null -s /dev/null -n
ADD COMMENT

Login before adding your answer.

Traffic: 1736 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6