Skip to content

Commit

Permalink
Merge pull request #152 from griffithlab/add_scripts
Browse files Browse the repository at this point in the history
add variants.sh script
  • Loading branch information
kcotto committed Oct 12, 2021
2 parents 630dcf5 + 92f25c5 commit d79a9b7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/variants.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
# usage:
# bash variants.sh <input.tsv> <output.bed>
awk 'NR>1 {print $17}' $1 > $2
sed -ie 's/[,]/\n/g' $2
sed -ie 's/[:\-]/\t/g' $2
sort $2 | uniq > ${2}.tmp
cat ${2}.tmp > $2
rm -f ${2}.tmp
rm ${2}e

0 comments on commit d79a9b7

Please sign in to comment.