Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
popsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SVdetection
popsim
Commits
0ac88db1
Commit
0ac88db1
authored
7 years ago
by
Floreal Cabanettes
Browse files
Options
Downloads
Patches
Plain Diff
Build results/figures: genotype and filtered results ignored
parent
6737fa62
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
build_figures.py
+4
-1
4 additions, 1 deletion
build_figures.py
build_results.py
+6
-4
6 additions, 4 deletions
build_results.py
with
10 additions
and
5 deletions
build_figures.py
+
4
−
1
View file @
0ac88db1
...
...
@@ -200,8 +200,11 @@ def build_recall_precision_graphs(tools, output_dir):
def
init
(
input_dir
,
nb_inds
,
haploid
,
stripplot
,
output
):
os
.
chdir
(
input_dir
)
tools
=
[
"
breakdancer
"
,
"
delly
"
,
"
lumpy
"
,
"
pindel
"
,
"
cnvnator
"
,
"
genomestrip
"
,
"
Filtered_results
"
]
build_genotype_quality_graphs
(
tools
,
nb_inds
,
haploid
,
stripplot
,
output
)
build_recall_precision_graphs
(
tools
,
output
)
if
len
(
glob
.
glob
(
"
*sv_genotypes_quality_per_tools.tsv
"
))
>
0
:
build_genotype_quality_graphs
(
tools
,
nb_inds
,
haploid
,
stripplot
,
output
)
else
:
print
(
"
No genotypes found. Step ignored.
"
)
def
main
():
...
...
This diff is collapsed.
Click to expand it.
build_results.py
+
6
−
4
View file @
0ac88db1
...
...
@@ -813,9 +813,10 @@ def build_body_cells(rec_keys, records, nb_records, nb_inds, tools, cells, cells
###############################################################################
# Until we have filled all tools, check if the record is kept after filtering: #
###############################################################################
cells
,
cells_gt
,
cells_gq
=
apply_style_of_filter_cells
(
cells
,
cells_gt
,
cells_gq
,
i
,
is_kept
,
nb_records
,
nb_inds
,
nb_tools
,
filtered_records
,
do_genotype
,
rec_id
)
if
filtered_records
is
not
None
:
cells
,
cells_gt
,
cells_gq
=
apply_style_of_filter_cells
(
cells
,
cells_gt
,
cells_gq
,
i
,
is_kept
,
nb_records
,
nb_inds
,
nb_tools
,
filtered_records
,
do_genotype
,
rec_id
)
i
+=
1
...
...
@@ -858,9 +859,10 @@ def init(output, vcf_folder, true_vcf, filtered_vcfs=None, genotypes_files=None,
eprint
(
"
Reading file %s
"
%
true_ones
)
sv_set_to
,
true_ones_records
=
read_vcf_file
(
true_ones
)
sv_set
+=
sv_set_to
filtered_records
=
[]
filtered_records
=
None
if
filtered_vcfs
:
filtered_records
=
[]
for
filtered_vcf
in
filtered_vcfs
:
eprint
(
"
Reading file %s
"
%
filtered_vcf
)
filtered_records
+=
read_vcf_file
(
filtered_vcf
)[
1
]
...
...
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