Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arraymapVariant-callsMapping
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bo Gao
arraymapVariant-callsMapping
Commits
8c504a51
Commit
8c504a51
authored
Mar 24, 2017
by
Michael Baudis
Browse files
Options
Downloads
Patches
Plain Diff
adding the new variant attributes
parent
e3b1a468
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
arraymap2ga4gh.py
+13
-2
13 additions, 2 deletions
arraymap2ga4gh.py
with
13 additions
and
2 deletions
arraymap2ga4gh.py
+
13
−
2
View file @
8c504a51
...
...
@@ -370,8 +370,12 @@ def cli(input_db, input_collection, output_db, output_collection_individuals, ou
for
seg
in
sample
[
'
SEGMENTS_HG18
'
]:
no_segments
+=
1
alternate_bases
=
''
variant_type
=
''
start
=
int
()
end
=
int
()
# cipos,ciend may get values which reflect the array precision
cipos
=
[]
ciend
=
[]
varvalue
=
float
()
try
:
...
...
@@ -382,11 +386,15 @@ def cli(input_db, input_collection, output_db, output_collection_individuals, ou
continue
if
int
(
seg
[
'
SEGTYPE
'
])
<
0
:
alternate_bases
=
'
DEL
'
alternate_bases
=
'
<
DEL
>
'
variant_type
=
'
DEL
'
cipos
=
[
-
1000
,
1000
]
ciend
=
[
-
1000
,
1000
]
elif
int
(
seg
[
'
SEGTYPE
'
])
>
0
:
alternate_bases
=
'
DUP
'
alternate_bases
=
'
<
DUP
>
'
variant_type
=
'
DUP
'
cipos
=
[
-
1000
,
1000
]
ciend
=
[
-
1000
,
1000
]
elif
int
(
seg
[
'
SEGTYPE
'
])
==
0
:
if
log
is
not
None
:
click
.
echo
(
'
TpyeWarning:
'
+
str
(
callset_id
)
+
'
SEGTYPE is
"
0
"'
,
file
=
log
)
...
...
@@ -439,6 +447,9 @@ def cli(input_db, input_collection, output_db, output_collection_individuals, ou
'
updated
'
:
datetime
.
datetime
.
utcnow
(),
'
reference_bases
'
:
'
.
'
,
'
alternate_bases
'
:
str
(
alternate_bases
),
'
variant_type
'
:
str
(
variant_type
),
'
cipos
'
:
cipos
,
'
ciend
'
:
ciend
,
'
calls
'
:
[
call
]
}
...
...
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