command <<< | command <<< | ||||
SAMTOOLS_DIR="/opt/samtools/samtools-1.13" | SAMTOOLS_DIR="/opt/samtools/samtools-1.13" | ||||
$SAMTOOLS_DIR/samtools addreplacerg -r "@RG\tID:${group}\tSM:${sample}\tPL:${pl}" -o ${bam_name}.bam ${bam} | |||||
$SAMTOOLS_DIR/samtools addreplacerg -w -r "@RG\tID:${group}\tSM:${sample}\tPL:${pl}" -o ${bam_name}.bam ${bam} | |||||
$SAMTOOLS_DIR/samtools index ${bam_name}.bam | $SAMTOOLS_DIR/samtools index ${bam_name}.bam | ||||
>>> | >>> | ||||