Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cnvCallerGPU
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gad-public
cnvCallerGPU
Commits
fbfb9bf7
Commit
fbfb9bf7
authored
3 months ago
by
Theo Serralta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify filter
parent
35e59a9c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
cnv_sv_caller_gpu.py
cnv_sv_caller_gpu.py
+3
-3
No files found.
cnv_sv_caller_gpu.py
View file @
fbfb9bf7
...
@@ -1422,7 +1422,7 @@ def segmentation(events, segment, chr):
...
@@ -1422,7 +1422,7 @@ def segmentation(events, segment, chr):
elapsed_time
=
end_time
-
start_time
elapsed_time
=
end_time
-
start_time
logging
.
info
(
f
"Leaving segmentation for {chr} (Time taken: {elapsed_time:.4f} seconds)"
)
logging
.
info
(
f
"Leaving segmentation for {chr} (Time taken: {elapsed_time:.4f} seconds)"
)
def
display_results_vcf
(
sample
,
segment
,
signal
,
lengthFilter
,
output_file
,
chr
,
normalize_
depth_results
):
def
display_results_vcf
(
sample
,
segment
,
signal
,
lengthFilter
,
output_file
,
chr
,
depth_results
):
"""
"""
Generate a VCF file containing structural variant calls based on segmented regions and signal data.
Generate a VCF file containing structural variant calls based on segmented regions and signal data.
...
@@ -1488,7 +1488,7 @@ def display_results_vcf(sample, segment, signal, lengthFilter, output_file, chr,
...
@@ -1488,7 +1488,7 @@ def display_results_vcf(sample, segment, signal, lengthFilter, output_file, chr,
if
(
segment
[
k
][
elt
][
"end"
]
-
segment
[
k
][
elt
][
"start"
])
<
lengthFilter
:
if
(
segment
[
k
][
elt
][
"end"
]
-
segment
[
k
][
elt
][
"start"
])
<
lengthFilter
:
continue
continue
#sys.stderr.write("\t [segment[k][elt] %s\n" % [segment[k][elt]])
#sys.stderr.write("\t [segment[k][elt] %s\n" % [segment[k][elt]])
if
np
.
mean
(
normalize_
depth_results
[
segment
[
k
][
elt
][
"start"
]:
segment
[
k
][
elt
][
"end"
]])
>=
10
:
if
np
.
mean
(
depth_results
[
segment
[
k
][
elt
][
"start"
]:
segment
[
k
][
elt
][
"end"
]])
>=
10
:
if
int
(
signal
[
k
][
segment
[
k
][
elt
][
"start"
]])
<
0
:
if
int
(
signal
[
k
][
segment
[
k
][
elt
][
"start"
]])
<
0
:
f
.
write
(
f
.
write
(
"
%
s
\t
%
s
\t
.
\t
N
\t
<DEL>
\t
.
\t
.
\t
SVTYPE=DEL;END=
%
s;VALUE=
%
s
\t
GT:GQ
\t
./.:0
\n
"
"
%
s
\t
%
s
\t
.
\t
N
\t
<DEL>
\t
.
\t
.
\t
SVTYPE=DEL;END=
%
s;VALUE=
%
s
\t
GT:GQ
\t
./.:0
\n
"
...
@@ -2318,7 +2318,7 @@ def main_calcul(
...
@@ -2318,7 +2318,7 @@ def main_calcul(
segmentation
(
events
,
segment
,
chr
)
segmentation
(
events
,
segment
,
chr
)
# Appel fonction display_results_vcf
# Appel fonction display_results_vcf
display_results_vcf
(
sample
,
segment
,
signal
,
lengthFilter
,
output_file
,
chr
,
normalize_
depth_results
)
display_results_vcf
(
sample
,
segment
,
signal
,
lengthFilter
,
output_file
,
chr
,
depth_results
)
# #Ecrire les résultats dans le fichier de sortie
# #Ecrire les résultats dans le fichier de sortie
# with open(output_file, 'a') as f:
# with open(output_file, 'a') as f:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment