Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
process_scripts
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
NGS CLIA Lab
process_scripts
Commits
ed054149
Commit
ed054149
authored
6 years ago
by
Brandi Cantarel
Browse files
Options
Downloads
Patches
Plain Diff
adding union
parent
a65f5d7a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
variants/union.sh
+12
-4
12 additions, 4 deletions
variants/union.sh
with
12 additions
and
4 deletions
variants/union.sh
+
12
−
4
View file @
ed054149
...
...
@@ -9,11 +9,12 @@ usage() {
exit
1
}
OPTIND
=
1
# Reset OPTIND
while
getopts
:r:p:h opt
while
getopts
:r:
d:
p:h opt
do
case
$opt
in
r
)
index_path
=
$OPTARG
;;
p
)
pair_id
=
$OPTARG
;;
d
)
dir
=
$OPTARG
;;
h
)
usage
;;
esac
done
...
...
@@ -21,15 +22,22 @@ function join_by { local IFS="$1"; shift; echo "$*"; }
shift
$((
$OPTIND
-
1
))
baseDir
=
"
`
dirname
\"
$0
\"
`
"
echo
$pair_id
$index_path
$dir
if
[[
-z
$dir
]]
then
dir
=
'.'
fi
source
/etc/profile.d/modules.sh
module load bedtools/2.26.0 samtools/1.6 bcftools/1.6 snpeff/4.3q
HS
=
*
.hotspot.vcf.gz
list1
=
`
ls
*
vcf.gz|grep
-v
hotspot
`
list2
=
`
ls
*
vcf.gz|grep
-v
hotspot
`
list1
=
`
ls
${
dir
}
/
*
vcf.gz|grep
-v
hotspot
`
list2
=
`
ls
${
dir
}
/
*
vcf.gz|grep
-v
hotspot
`
varlist
=
''
calllist
=
''
for
i
in
*
.vcf.gz
;
do
for
i
in
${
dir
}
/
*
.vcf.gz
;
do
if
[[
$i
==
$HS
]]
then
bcftools norm
-m
-
-O
z
-o
hotspot.norm.vcf.gz
$i
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment