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
e4f7025c
Commit
e4f7025c
authored
6 years ago
by
Brandi Cantarel
Browse files
Options
Downloads
Patches
Plain Diff
adding cnvkit
parent
348e8503
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/cnvkit.sh
+23
-8
23 additions, 8 deletions
variants/cnvkit.sh
with
23 additions
and
8 deletions
variants/cnvkit.sh
+
23
−
8
View file @
e4f7025c
...
...
@@ -5,15 +5,19 @@ usage() {
echo
"-h --Help documentation for markdups.sh"
echo
"-b --BAM file"
echo
"-p --Prefix for output file name"
echo
"-n --Panel of Normal cnn file"
echo
"-t --Target and Antitarget prefix"
echo
"Example: bash cnvkit.sh -p prefix -b file.bam"
exit
1
}
OPTIND
=
1
# Reset OPTIND
while
getopts
:b:p:uh opt
while
getopts
:b:p:
n:t:
uh opt
do
case
$opt
in
b
)
sbam
=
$OPTARG
;;
p
)
pair_id
=
$OPTARG
;;
n
)
normals
=
$OPTARG
;;
t
)
targets
=
$OPTARG
;;
u
)
umi
=
'umi'
;;
h
)
usage
;;
esac
...
...
@@ -33,17 +37,28 @@ then
fi
baseDir
=
"
`
dirname
\"
$0
\"
`
"
source
/etc/profile.d/modules.sh
module load cnvkit/0.9.0
cnvkit.py coverage
${
sbam
}
${
index_path
}
/UTSWV2.cnvkit_targets.bed
-o
${
pair_id
}
.targetcoverage.cnn
cnvkit.py coverage
${
sbam
}
${
index_path
}
/UTSWV2.cnvkit_antitargets.bed
-o
${
pair_id
}
.antitargetcoverage.cnn
if
[[
-z
$normals
]]
then
if
[[
$umi
==
'umi'
]]
then
cnvkit.py fix
${
pair_id
}
.targetcoverage.cnn
${
pair_id
}
.antitargetcoverage.cnn
${
index_path
}
/UTSWV2.uminormals.cnn
-o
${
pair_id
}
.cnr
normals
=
"
${
index_path
}
/UTSWV2.uminormals.cnn
"
else
cnvkit.py fix
${
pair_id
}
.targetcoverage.cnn
${
pair_id
}
.antitargetcoverage.cnn
${
index_path
}
/UTSWV2.normals.cnn
-o
${
pair_id
}
.cnr
fi
normals
=
"
${
index_path
}
/UTSWV2.normals.cnn"
fi
fi
if
[[
-z
$targets
]]
then
targets
=
"
${
index_path
}
/UTSWV2.cnvkit_"
fi
echo
"
${
targets
}
targets.bed"
echo
"
${
targets
}
antitargets.bed"
source
/etc/profile.d/modules.sh
module load cnvkit/0.9.0
cnvkit.py coverage
${
sbam
}
${
targets
}
targets.bed
-o
${
pair_id
}
.targetcoverage.cnn
cnvkit.py coverage
${
sbam
}
${
targets
}
antitargets.bed
-o
${
pair_id
}
.antitargetcoverage.cnn
cnvkit.py fix
${
pair_id
}
.targetcoverage.cnn
${
pair_id
}
.antitargetcoverage.cnn
${
normals
}
-o
${
pair_id
}
.cnr
cnvkit.py segment
${
pair_id
}
.cnr
-o
${
pair_id
}
.cns
cnvkit.py call
${
pair_id
}
.cns
-o
${
pair_id
}
.call.cns
cnvkit.py diagram
${
pair_id
}
.cnr
-s
${
pair_id
}
.cns
-o
${
pair_id
}
.cnv.pdf
...
...
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