Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genotoul-bioinfo
D-GENIES
Commits
cf524495
Commit
cf524495
authored
Dec 14, 2017
by
Floreal Cabanettes
Browse files
Fix save json function
parent
e276e77c
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/
F
asta.py
→
lib/
f
asta.py
View file @
cf524495
File moved
lib/paf.py
View file @
cf524495
...
...
@@ -246,12 +246,9 @@ class Paf:
def
save_json
(
self
,
out
):
import
json
success
,
data
=
self
.
parse_paf
()
if
success
:
with
open
(
out
,
"w"
)
as
out_f
:
out_f
.
write
(
json
.
dumps
(
data
))
else
:
raise
Exception
(
data
)
data
=
self
.
get_d3js_data
()
with
open
(
out
,
"w"
)
as
out_f
:
out_f
.
write
(
json
.
dumps
(
data
))
def
is_contig_well_oriented
(
self
,
lines
:
list
,
contig
,
chrom
):
"""
...
...
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment