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
ec1a962c
Commit
ec1a962c
authored
4 years ago
by
Brandi Cantarel
Browse files
Options
Downloads
Patches
Plain Diff
update snpeff ref; remove unnecessary ref data checks
parent
04d7650b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
variants/germline_vc.sh
+8
-17
8 additions, 17 deletions
variants/germline_vc.sh
variants/somatic_vc.sh
+6
-17
6 additions, 17 deletions
variants/somatic_vc.sh
variants/svcalling.sh
+2
-1
2 additions, 1 deletion
variants/svcalling.sh
with
16 additions
and
35 deletions
variants/germline_vc.sh
+
8
−
17
View file @
ec1a962c
#!/bin/bash
nucleu
#!/bin/bash
#germline_vc.sh
usage
()
{
...
...
@@ -36,21 +36,7 @@ if [[ -z $NPROC ]]
then
NPROC
=
`
nproc
`
fi
if
[[
-s
"
${
index_path
}
/dbSnp.vcf.gz"
]]
then
dbsnp
=
"
${
index_path
}
/dbSnp.vcf.gz"
gatk4_dbsnp
=
"
${
index_path
}
/dbSnp.gatk4.vcf.gz"
else
echo
"Missing dbSNP File:
${
index_path
}
/dbSnp.vcf.gz"
usage
fi
if
[[
-s
"
${
index_path
}
/GoldIndels.vcf.gz"
]]
then
knownindel
=
"
${
index_path
}
/GoldIndels.vcf.gz"
else
echo
"Missing InDel File:
${
index_path
}
/GoldIndels.vcf.gz"
usage
fi
if
[[
-s
"
${
index_path
}
/genome.fa"
]]
then
reffa
=
"
${
index_path
}
/genome.fa"
...
...
@@ -112,6 +98,12 @@ then
bcftools norm
-c
s
-f
${
reffa
}
-w
10
-O
z
-o
${
pair_id
}
.platypus.vcf.gz platypus.vcf.gz
elif
[[
$algo
==
'gatk'
]]
then
gatk4_dbsnp
=
"
${
index_path
}
/dbSnp.gatk4.vcf.gz"
if
[[
!
-f
"
${
index_path
}
/dbSnp.gatk4.vcf.gz"
]]
then
echo
"Missing dbSNP File:
${
index_path
}
/dbSnp.vcf.gz"
usage
fi
user
=
$USER
module load gatk/4.1.4.0
gvcflist
=
''
...
...
@@ -129,7 +121,6 @@ then
tabix
${
pair_id
}
.gatk.vcf.gz
elif
[
$algo
==
'mutect'
]
then
gatk4_dbsnp
=
${
index_path
}
/clinseq_prj/dbSnp.gatk4.vcf.gz
module load gatk/4.1.4.0 parallel/20150122
threads
=
`
expr
$NPROC
/ 2
`
bamlist
=
''
...
...
This diff is collapsed.
Click to expand it.
variants/somatic_vc.sh
+
6
−
17
View file @
ec1a962c
...
...
@@ -56,7 +56,6 @@ if [[ -f $pon ]]
then
ponopt
=
"--pon
$pon
"
fi
if
[[
-a
"
${
index_path
}
/genome.fa"
]]
then
reffa
=
"
${
index_path
}
/genome.fa"
...
...
@@ -65,21 +64,7 @@ else
echo
"Missing Fasta File:
${
index_path
}
/genome.fa"
usage
fi
if
[[
-a
"
${
index_path
}
/dbSnp.vcf.gz"
]]
then
dbsnp
=
"
${
index_path
}
/dbSnp.vcf.gz"
else
echo
"Missing dbSNP File:
${
index_path
}
/dbSnp.vcf.gz"
usage
fi
if
[[
-a
"
${
index_path
}
/cosmic.vcf.gz"
]]
then
cosmic
=
${
index_path
}
/cosmic.vcf.gz
else
echo
"Missing InDel File:
${
index_path
}
/cosmic.vcf.gz"
usage
fi
baseDir
=
"
`
dirname
\"
$0
\"
`
"
interval
=
`
cat
${
reffa
}
.fai |cut
-f
1 |grep
-v
decoy |grep
-v
'HLA'
|grep
-v
alt |grep
-v
'chrUn'
|grep
-v
'random'
| perl
-pe
's/\n/ -L /g'
|perl
-pe
's/-L $//'
`
...
...
@@ -96,7 +81,6 @@ then
nid
=
`
samtools view
-H
${
normal
}
|grep
'^@RG'
|perl
-pi
-e
's/\t/\n/g'
|grep ID |cut
-f
2
-d
':'
`
fi
if
[
$algo
==
'strelka2'
]
then
module load strelka/2.9.10 manta/1.3.1
...
...
@@ -127,6 +111,12 @@ then
elif
[
$algo
==
'virmid'
]
then
module load virmid/1.2
cosmic
=
${
index_path
}
/cosmic.vcf.gz
if
[[
!
-f
"
${
index_path
}
/cosmic.vcf.gz"
]]
then
echo
"Missing InDel File:
${
index_path
}
/cosmic.vcf.gz"
usage
fi
virmid
-R
${
reffa
}
-D
${
tumor
}
-N
${
normal
}
-s
${
cosmic
}
-t
$NPROC
-M
2000
-c1
10
-c2
10
perl
$baseDir
/addgt_virmid.pl
${
tumor
}
.virmid.som.passed.vcf
perl
$baseDir
/addgt_virmid.pl
${
tumor
}
.virmid.loh.passed.vcf
...
...
@@ -135,7 +125,6 @@ then
vcf-concat
*
gt.vcf | vcf-sort | vcf-annotate
-n
--fill-type
-n
| java
-jar
$SNPEFF_HOME
/SnpSift.jar filter
'((NDP >= 10) & (DDP >= 10))'
| perl
-pe
"s/TUMOR/
${
tid
}
/g"
| perl
-pe
"s/NORMAL/
${
nid
}
/g"
| bgzip
>
${
pair_id
}
.virmid.vcf.gz
elif
[
$algo
==
'mutect'
]
then
gatk4_dbsnp
=
${
index_path
}
/clinseq_prj/dbSnp.gatk4.vcf.gz
module load gatk/4.1.4.0 parallel/20150122
threads
=
`
expr
$NPROC
/ 2
`
gatk
--java-options
"-Xmx20g"
Mutect2
$ponopt
--independent-mates
-RF
AllowAllReadsReadFilter
-R
${
reffa
}
-I
${
tumor
}
-tumor
${
tid
}
-I
${
normal
}
-normal
${
nid
}
--output
${
tid
}
.mutect.vcf
-L
$interval
...
...
This diff is collapsed.
Click to expand it.
variants/svcalling.sh
+
2
−
1
View file @
ec1a962c
...
...
@@ -11,7 +11,7 @@ usage() {
exit
1
}
OPTIND
=
1
# Reset OPTIND
while
getopts
:r:p:b:t:x:c:y:n:l:a:hf opt
while
getopts
:r:p:b:t:x:c:
g:
y:n:l:a:hf opt
do
case
$opt
in
r
)
index_path
=
$OPTARG
;;
...
...
@@ -22,6 +22,7 @@ do
x
)
tid
=
$OPTARG
;;
y
)
nid
=
$OPTARG
;;
f
)
filter
=
1
;;
g
)
snpeffgeno
=
$OPTARG
;;
b
)
sbam
=
$OPTARG
;;
c
)
tbed
=
$OPTARG
;;
l
)
itdbed
=
$OPTARG
;;
...
...
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