https://github.com/AstraZeneca-NGS/Seq2C
Raw File
Tip revision: 92f214e72df005e4c0c3b9fe64388d1196eec8b8 authored by Polina Bevad on 12 July 2022, 09:53:12 UTC
Merge pull request #14 from AstraZeneca-NGS/purity_mapd_update
Tip revision: 92f214e
seq2cov_wrap.sh
#!/bin/bash
set -x

BAM=$1
SAMPLE=$2
BED=$3
N=$4
SEQ2COV=$5

SAMTOOLS='samtools'
if [ $6 ]
    then
    SAMTOOLS=$6
fi

OUTPUT=cov.txt.${N}
if [ $7 ]
    then
    OUTPUT=$7
fi

DONE_MARKER=seq2c.done.${N}
if [ $8 ]
    then
    DONE_MARKER=$8
fi

perl $SEQ2COV -m $SAMTOOLS -z -b $BAM -N $SAMPLE $BED > $OUTPUT
touch $DONE_MARKER

set +x
back to top