Skip to content

Commit d79a9b7

Browse files
authored
Merge pull request #152 from griffithlab/add_scripts
add variants.sh script
2 parents 630dcf5 + 92f25c5 commit d79a9b7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

scripts/variants.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
# usage:
3+
# bash variants.sh <input.tsv> <output.bed>
4+
awk 'NR>1 {print $17}' $1 > $2
5+
sed -ie 's/[,]/\n/g' $2
6+
sed -ie 's/[:\-]/\t/g' $2
7+
sort $2 | uniq > ${2}.tmp
8+
cat ${2}.tmp > $2
9+
rm -f ${2}.tmp
10+
rm ${2}e

0 commit comments

Comments
 (0)