Skip to content
Snippets Groups Projects
Commit ed054149 authored by Brandi Cantarel's avatar Brandi Cantarel
Browse files

adding union

parent a65f5d7a
Branches
Tags
No related merge requests found
...@@ -9,11 +9,12 @@ usage() { ...@@ -9,11 +9,12 @@ usage() {
exit 1 exit 1
} }
OPTIND=1 # Reset OPTIND OPTIND=1 # Reset OPTIND
while getopts :r:p:h opt while getopts :r:d:p:h opt
do do
case $opt in case $opt in
r) index_path=$OPTARG;; r) index_path=$OPTARG;;
p) pair_id=$OPTARG;; p) pair_id=$OPTARG;;
d) dir=$OPTARG;;
h) usage;; h) usage;;
esac esac
done done
...@@ -21,15 +22,22 @@ function join_by { local IFS="$1"; shift; echo "$*"; } ...@@ -21,15 +22,22 @@ function join_by { local IFS="$1"; shift; echo "$*"; }
shift $(($OPTIND -1)) shift $(($OPTIND -1))
baseDir="`dirname \"$0\"`" baseDir="`dirname \"$0\"`"
echo $pair_id $index_path $dir
if [[ -z $dir ]]
then
dir='.'
fi
source /etc/profile.d/modules.sh source /etc/profile.d/modules.sh
module load bedtools/2.26.0 samtools/1.6 bcftools/1.6 snpeff/4.3q module load bedtools/2.26.0 samtools/1.6 bcftools/1.6 snpeff/4.3q
HS=*.hotspot.vcf.gz HS=*.hotspot.vcf.gz
list1=`ls *vcf.gz|grep -v hotspot` list1=`ls ${dir}/*vcf.gz|grep -v hotspot`
list2=`ls *vcf.gz|grep -v hotspot` list2=`ls ${dir}/*vcf.gz|grep -v hotspot`
varlist='' varlist=''
calllist='' calllist=''
for i in *.vcf.gz; do for i in ${dir}/*.vcf.gz; do
if [[ $i == $HS ]] if [[ $i == $HS ]]
then then
bcftools norm -m - -O z -o hotspot.norm.vcf.gz $i bcftools norm -m - -O z -o hotspot.norm.vcf.gz $i
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment