Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Mosaicatcher Update
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Thomas Weber
Mosaicatcher Update
Commits
3b032697
Commit
3b032697
authored
6 years ago
by
Tobias Marschall
Browse files
Options
Downloads
Patches
Plain Diff
Jan's update to filter scripts.
parent
4c264b2b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
utils/filter_MosaiCatcher_calls.pl
+7
-7
7 additions, 7 deletions
utils/filter_MosaiCatcher_calls.pl
with
7 additions
and
7 deletions
utils/filter_MosaiCatcher_calls.pl
+
7
−
7
View file @
3b032697
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
use
strict
;
use
strict
;
my
$min_N_inv
=
3
;
my
$min_N_inv
=
3
;
my
$min_WC
=
0.2
;
my
$min_WC
=
1
/
3
;
my
$safe_llr_to_ref
=
50
;
my
$safe_llr_to_ref
=
50
;
my
$SegDup_file
=
"
./utils/segdups/segDups_hg38_UCSCtrack.bed.gz
";
my
$SegDup_file
=
"
./utils/segdups/segDups_hg38_UCSCtrack.bed.gz
";
my
$MaxSegDup_overlap
=
0.5
;
my
$MaxSegDup_overlap
=
0.5
;
...
@@ -17,8 +17,8 @@ my $input_file = $ARGV[0];
...
@@ -17,8 +17,8 @@ my $input_file = $ARGV[0];
if
(
!
$ARGV
[
0
])
{
if
(
!
$ARGV
[
0
])
{
print
STDERR
"
Input filname missinf=g (use e.g. sv_calls_txt_file_all/RPE1-WT/100000_fixed_norm.selected_j0.01_s0.1/simpleCalls_llr4_poppriorsTRUE_haplotagsTRUE_gtcutoff0.05_regfactor6.txt )
\n
";
print
STDERR
"
Input filname missinf=g (use e.g. sv_calls_txt_file_all/RPE1-WT/100000_fixed_norm.selected_j0.01_s0.1/simpleCalls_llr4_poppriorsTRUE_haplotagsTRUE_gtcutoff0.05_regfactor6.txt )
\n
";
print
STDERR
"
Filters inversions unless they are seen at least
$min_N_inv
times.
\n
";
print
STDERR
"
Filters inversions unless they are seen at least
$min_N_inv
times.
\n
";
print
STDERR
"
Filters deletions seen in
less
th
e
n
$min_WC
WC chromosomes
\n
";
print
STDERR
"
Filters deletions seen in
not more
th
a
n
$min_WC
WC chromosomes
\n
";
print
STDERR
"
Filters duplications seen in
less
th
e
n
$min_WC
WC chromosomes (but gives inv-dups seen in such context a PASS)
\n
";
print
STDERR
"
Filters duplications seen in
not more
th
a
n
$min_WC
WC chromosomes (but gives inv-dups seen in such context a PASS)
\n
";
print
STDERR
"
Del and Dup events with llr_to_ref>=
$safe_llr_to_ref
will never be masked
\n
";
print
STDERR
"
Del and Dup events with llr_to_ref>=
$safe_llr_to_ref
will never be masked
\n
";
printf
STDERR
"
uses SegDup file
$SegDup_file
and removes all Dels overlapping with SegDups by >%3.1f%
\n
",
$MaxSegDup_overlap
*
100
;
printf
STDERR
"
uses SegDup file
$SegDup_file
and removes all Dels overlapping with SegDups by >%3.1f%
\n
",
$MaxSegDup_overlap
*
100
;
exit
;
exit
;
...
@@ -193,16 +193,16 @@ foreach my $chrom (sort keys %STARTs) {
...
@@ -193,16 +193,16 @@ foreach my $chrom (sort keys %STARTs) {
$iterate
+=
$val
/
@
{
$FILTER_ARR
{
$chrom
}{
$STARTs
{
$chrom
}[
$i
]}{
$ENDs
{
$chrom
}[
$i
]}};
$iterate
+=
$val
/
@
{
$FILTER_ARR
{
$chrom
}{
$STARTs
{
$chrom
}[
$i
]}{
$ENDs
{
$chrom
}[
$i
]}};
}
}
$FILTER
{
$chrom
}{
$STARTs
{
$chrom
}[
$i
]}{
$ENDs
{
$chrom
}[
$i
]}
=
sprintf
("
FAIL(WC:%4.2f)
",
$iterate
)
if
(
$iterate
<
$min_WC
);
$FILTER
{
$chrom
}{
$STARTs
{
$chrom
}[
$i
]}{
$ENDs
{
$chrom
}[
$i
]}
=
sprintf
("
FAIL(WC:%4.2f)
",
$iterate
)
if
(
$iterate
<
=
$min_WC
);
$FILTER
{
$chrom
}{
$STARTs
{
$chrom
}[
$i
]}{
$ENDs
{
$chrom
}[
$i
]}
=
"
PASS
"
if
(
$iterate
>
=
$min_WC
or
$LLR_TO_REF
{
$chrom
}{
$STARTs
{
$chrom
}[
$i
]}{
$ENDs
{
$chrom
}[
$i
]}
>=
$safe_llr_to_ref
);
$FILTER
{
$chrom
}{
$STARTs
{
$chrom
}[
$i
]}{
$ENDs
{
$chrom
}[
$i
]}
=
"
PASS
"
if
(
$iterate
>
$min_WC
or
$LLR_TO_REF
{
$chrom
}{
$STARTs
{
$chrom
}[
$i
]}{
$ENDs
{
$chrom
}[
$i
]}
>=
$safe_llr_to_ref
);
}
}
if
(
exists
(
$TESTED_DUP
{
$chrom
}{
$STARTs
{
$chrom
}[
$i
]}{
$ENDs
{
$chrom
}[
$i
]}))
{
#check DUP to identify events seen not largely in CC and WW chromosomes
if
(
exists
(
$TESTED_DUP
{
$chrom
}{
$STARTs
{
$chrom
}[
$i
]}{
$ENDs
{
$chrom
}[
$i
]}))
{
#check DUP to identify events seen not largely in CC and WW chromosomes
my
$iterate
=
0
;
my
$iterate
=
0
;
foreach
my
$val
(
@
{
$FILTER_ARR_DUP
{
$chrom
}{
$STARTs
{
$chrom
}[
$i
]}{
$ENDs
{
$chrom
}[
$i
]}})
{
foreach
my
$val
(
@
{
$FILTER_ARR_DUP
{
$chrom
}{
$STARTs
{
$chrom
}[
$i
]}{
$ENDs
{
$chrom
}[
$i
]}})
{
$iterate
+=
$val
/
@
{
$FILTER_ARR_DUP
{
$chrom
}{
$STARTs
{
$chrom
}[
$i
]}{
$ENDs
{
$chrom
}[
$i
]}};
$iterate
+=
$val
/
@
{
$FILTER_ARR_DUP
{
$chrom
}{
$STARTs
{
$chrom
}[
$i
]}{
$ENDs
{
$chrom
}[
$i
]}};
}
}
$FILTER
{
$chrom
}{
$STARTs
{
$chrom
}[
$i
]}{
$ENDs
{
$chrom
}[
$i
]}
=
sprintf
("
FAIL(WC:%4.2f)
",
$iterate
)
if
(
$iterate
<
$min_WC
);
$FILTER
{
$chrom
}{
$STARTs
{
$chrom
}[
$i
]}{
$ENDs
{
$chrom
}[
$i
]}
=
sprintf
("
FAIL(WC:%4.2f)
",
$iterate
)
if
(
$iterate
<
=
$min_WC
);
$FILTER
{
$chrom
}{
$STARTs
{
$chrom
}[
$i
]}{
$ENDs
{
$chrom
}[
$i
]}
=
"
PASS
"
if
(
$iterate
>
=
$min_WC
or
$LLR_TO_REF
{
$chrom
}{
$STARTs
{
$chrom
}[
$i
]}{
$ENDs
{
$chrom
}[
$i
]}
>=
$safe_llr_to_ref
);
$FILTER
{
$chrom
}{
$STARTs
{
$chrom
}[
$i
]}{
$ENDs
{
$chrom
}[
$i
]}
=
"
PASS
"
if
(
$iterate
>
$min_WC
or
$LLR_TO_REF
{
$chrom
}{
$STARTs
{
$chrom
}[
$i
]}{
$ENDs
{
$chrom
}[
$i
]}
>=
$safe_llr_to_ref
);
}
}
}
}
unless
(
exists
(
$FILTER
{
$chrom
}{
$STARTs
{
$chrom
}[
$i
]}{
$ENDs
{
$chrom
}[
$i
]}))
{
unless
(
exists
(
$FILTER
{
$chrom
}{
$STARTs
{
$chrom
}[
$i
]}{
$ENDs
{
$chrom
}[
$i
]}))
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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