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
488f3a25
Commit
488f3a25
authored
5 years ago
by
Brandi Cantarel
Browse files
Options
Downloads
Patches
Plain Diff
sv filtering
parent
8d9c724f
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/filter_delly.pl
+2
-1
2 additions, 1 deletion
variants/filter_delly.pl
variants/filter_svaba.pl
+2
-1
2 additions, 1 deletion
variants/filter_svaba.pl
variants/svcalling.sh
+12
-9
12 additions, 9 deletions
variants/svcalling.sh
with
16 additions
and
11 deletions
variants/filter_delly.pl
+
2
−
1
View file @
488f3a25
...
...
@@ -15,7 +15,7 @@ W1:while (my $line = <IN>) {
chomp
(
$line
);
if
(
$line
=~
m/^#/
)
{
if
(
$line
=~
m/^#CHROM/
)
{
print
OUT
"
##INFO=<ID=AF,Number=A,Type=Integer,Description=
\"
Alternate allele observation frequency
\"
>
\n
";
print
VCF
OUT
"
##INFO=<ID=AF,Number=A,Type=Integer,Description=
\"
Alternate allele observation frequency
\"
>
\n
";
my
@header
=
split
(
/\t/
,
$line
);
(
$chrom
,
$pos
,
$id
,
$ref
,
$alt
,
$score
,
$filter
,
$info
,
$format
,
@gtheader
)
=
split
(
/\t/
,
$line
);
...
...
@@ -29,6 +29,7 @@ W1:while (my $line = <IN>) {
}
}
print
VCFOUT
$line
,"
\n
";
next
;
}
my
(
$chrom
,
$pos
,
$id
,
$ref
,
$alt
,
$score
,
$filter
,
$annot
,
$format
,
@gts
)
=
split
(
/\t/
,
$line
);
...
...
This diff is collapsed.
Click to expand it.
variants/filter_svaba.pl
+
2
−
1
View file @
488f3a25
...
...
@@ -15,7 +15,7 @@ W1:while (my $line = <IN>) {
chomp
(
$line
);
if
(
$line
=~
m/^#/
)
{
if
(
$line
=~
m/^#CHROM/
)
{
print
OUT
"
##INFO=<ID=AF,Number=A,Type=Integer,Description=
\"
Alternate allele observation frequency
\"
>
\n
";
print
VCF
OUT
"
##INFO=<ID=AF,Number=A,Type=Integer,Description=
\"
Alternate allele observation frequency
\"
>
\n
";
my
@header
=
split
(
/\t/
,
$line
);
(
$chrom
,
$pos
,
$id
,
$ref
,
$alt
,
$score
,
$filter
,
$info
,
$format
,
@gtheader
)
=
split
(
/\t/
,
$line
);
...
...
@@ -29,6 +29,7 @@ W1:while (my $line = <IN>) {
}
}
print
VCFOUT
$line
,"
\n
";
next
;
}
my
(
$chrom
,
$pos
,
$id
,
$ref
,
$alt
,
$score
,
$filter
,
$annot
,
$format
,
@gts
)
=
split
(
/\t/
,
$line
);
...
...
This diff is collapsed.
Click to expand it.
variants/svcalling.sh
+
12
−
9
View file @
488f3a25
...
...
@@ -77,7 +77,6 @@ then
delly2 call
-t
INS
-o
${
pair_id
}
.delly_insertion.bcf
-q
30
-g
${
reffa
}
${
sbam
}
${
normal
}
#delly2 filter -o ${pair_id}.delly_tra.bcf -f somatic -s samples.tsv ${pair_id}.delly_translocations.bcf
else
$tid
=
#RUN DELLY
delly2 call
-t
BND
-o
${
pair_id
}
.delly_translocations.bcf
-q
30
-g
${
reffa
}
${
sbam
}
delly2 call
-t
DUP
-o
${
pair_id
}
.delly_duplications.bcf
-q
30
-g
${
reffa
}
${
sbam
}
...
...
@@ -87,19 +86,23 @@ then
#delly2 filter -o ${pair_id}.delly_tra.bcf -f germline ${pair_id}.delly_translocations.bcf
fi
#MERGE DELLY AND MAKE BED
bcftools concat
-a
-O
v
${
pair_id
}
.delly_duplications.bcf
${
pair_id
}
.delly_inversions.bcf
${
pair_id
}
.delly_translocations.bcf
${
pair_id
}
.delly_deletion.bcf
${
pair_id
}
.delly_insertion.bcf | vcf-sort
-t
temp | bgzip
>
${
pair_id
}
.delly.svar.vcf.gz
bash
$baseDir
/norm_annot.sh
-r
${
index_path
}
-p
${
pair_id
}
.delly.sv
-v
${
pair_id
}
.delly.svar.vcf.gz
-s
java
-jar
$SNPEFF_HOME
/SnpSift.jar filter
"( GEN[*].DP >= 20 )"
${
pair_id
}
.delly.sv.norm.vcf.gz | java
-Xmx10g
-jar
$SNPEFF_HOME
/snpEff.jar
-no-intergenic
-lof
-c
$SNPEFF_HOME
/snpEff.config
${
snpeffgeno
}
- | bgzip
>
${
pair_id
}
.delly.vcf.gz
if
[[
$filter
==
1
]]
then
if
[[
-z
$tid
]]
then
tid
=
`
samtools view
-H
${
sbam
}
|grep
'^@RG'
|perl
-pi
-e
's/\t/\n/g'
|grep ID |cut
-f
2
-d
':'
`
fi
zgrep
'#CHROM'
${
pair_id
}
.delly.vcf.gz
>
${
pair_id
}
.delly.genefusion.txt
zcat
${
pair_id
}
.delly.vcf.gz |
$SNPEFF_HOME
/scripts/vcfEffOnePerLine.pl |java
-jar
$SNPEFF_HOME
/SnpSift.jar extractFields - CHROM POS CHR2 END ANN[
*
]
.EFFECT ANN[
*
]
.GENE ANN[
*
]
.BIOTYPE FILTER FORMAT GEN[
*
]
|grep
-E
'gene_fusion|feature_fusion'
|
sort
-u
>>
${
pair_id
}
.d
elly.genefusion
.txt
zcat
${
pair_id
}
.delly.vcf.gz |
$SNPEFF_HOME
/scripts/vcfEffOnePerLine.pl |java
-jar
$SNPEFF_HOME
/SnpSift.jar extractFields - CHROM POS CHR2 END ANN[
*
]
.EFFECT ANN[
*
]
.GENE ANN[
*
]
.BIOTYPE FILTER FORMAT GEN[
*
]
|grep
-E
'gene_fusion|feature_fusion'
|
sort
-u
>>
${
pair_id
}
.d
gf
.txt
mv
${
pair_id
}
.delly.vcf.gz
${
pair_id
}
.delly.ori.vcf.gz
bash
$baseDir
/filter_delly.pl
-t
$tid
-p
$pair_id
-i
${
pair_id
}
.delly.ori.vcf.gz
perl
$baseDir
/filter_delly.pl
-t
$tid
-p
$pair_id
-i
${
pair_id
}
.delly.ori.vcf.gz
bgzip
${
pair_id
}
.delly.vcf
cat
${
pair_id
}
.potentialfusion.txt
>
>
${
pair_id
}
.delly.genefusion.txt
fi
cat
${
pair_id
}
.
delly.
potentialfusion.txt
${
pair_id
}
.dgf.txt |sort
-u
>
${
pair_id
}
.delly.genefusion.txt
fi
elif
[[
$method
==
'svaba'
]]
then
if
[[
-n
${
normal
}
]]
...
...
@@ -120,11 +123,11 @@ then
if
[[
$filter
==
1
]]
then
zgrep
'#CHROM'
${
pair_id
}
.svaba.sv.vcf.gz
>
${
pair_id
}
.svaba.genefusion.txt
zcat
${
pair_id
}
.svaba.sv.vcf.gz |
$SNPEFF_HOME
/scripts/vcfEffOnePerLine.pl |java
-jar
$SNPEFF_HOME
/SnpSift.jar extractFields - CHROM POS ALT ID ANN[
*
]
.EFFECT ANN[
*
]
.GENE ANN[
*
]
.BIOTYPE FILTER FORMAT GEN[
*
]
|grep
-E
'gene_fusion|feature_fusion'
|
sort
-u
>>
${
pair_id
}
.s
vaba.genefusion
.txt
zcat
${
pair_id
}
.svaba.sv.vcf.gz |
$SNPEFF_HOME
/scripts/vcfEffOnePerLine.pl |java
-jar
$SNPEFF_HOME
/SnpSift.jar extractFields - CHROM POS ALT ID ANN[
*
]
.EFFECT ANN[
*
]
.GENE ANN[
*
]
.BIOTYPE FILTER FORMAT GEN[
*
]
|grep
-E
'gene_fusion|feature_fusion'
|
sort
-u
>>
${
pair_id
}
.s
gf
.txt
mv
${
pair_id
}
.svaba.vcf.gz
${
pair_id
}
.svaba.ori.vcf.gz
bash
$baseDir
/filter_svaba.pl
-t
$tid
-p
$pair_id
-i
${
pair_id
}
.svaba.ori.vcf.gz
perl
$baseDir
/filter_svaba.pl
-t
$tid
-p
$pair_id
-i
${
pair_id
}
.svaba.ori.vcf.gz
-v
bgzip
${
pair_id
}
.svaba.vcf
cat
${
pair_id
}
.potentialfusion.txt
>>
${
pair_id
}
.svaba.genefusion.txt
cat
${
pair_id
}
.
svaba.
potentialfusion.txt
${
pair_id
}
.sgf.txt |
sort
-u
>>
${
pair_id
}
.svaba.genefusion.txt
fi
elif
[[
$method
==
'lumpy'
]]
then
...
...
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