Skip to content

Commit

Permalink
tabix
Browse files Browse the repository at this point in the history
  • Loading branch information
lskatz committed Sep 2, 2015
1 parent b33eab7 commit a5615eb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/pooledToMatrix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ if [ "$OUT" == "" ] || [ "$IN" == "" ]; then
fi

# Create the basic matrix
if [ ! -e "$IN.tbi" ]; then
logmsg "$IN.tbi not found -- running tabix."
tabix $IN
fi

# bcftools query
t='\t'
command="bcftools query -i '%TYPE=\"snp\"' -f '%CHROM$t%POS$t%REF$t[%TGT$t]\\n' --print-header $IN > $OUT.unrefined.tmp"
logmsg $command;
Expand Down

0 comments on commit a5615eb

Please sign in to comment.