Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
DAStk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
biof-git will be offline from 4-5PM on Friday, 2/22/2019 for security updates.
Open sidebar
dowelllab
DAStk
Commits
987997bd
Commit
987997bd
authored
Jun 23, 2018
by
Ignacio Tripodi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix: Now generating barcode plots also works in Python 3
parent
1c6f654c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
differential_md_score.py
DAStk/differential_md_score.py
+2
-2
No files found.
DAStk/differential_md_score.py
View file @
987997bd
...
...
@@ -166,7 +166,7 @@ def main():
# Condense the barcode to half the bins for prettier display
control_bc_data
=
control_bc_data
.
astype
(
int
)
heat_m
=
np
.
nan
*
np
.
empty
(
shape
=
(
int
(
HISTOGRAM_BINS
/
4
),
HISTOGRAM_BINS
))
for
row
in
range
(
HISTOGRAM_BINS
/
4
):
for
row
in
range
(
int
(
HISTOGRAM_BINS
/
4
)
):
heat_m
[
row
]
=
control_bc_data
ax0
.
matshow
(
heat_m
,
cmap
=
cm
.
YlGnBu
)
ax0
.
axis
(
'off'
)
...
...
@@ -176,7 +176,7 @@ def main():
perturbation_bc_data
=
np
.
array
(
perturbation_barcode
[
relevant_tf
]
.
split
(
';'
))
perturbation_bc_data
=
perturbation_bc_data
.
astype
(
int
)
heat_m
=
np
.
nan
*
np
.
empty
(
shape
=
(
int
(
HISTOGRAM_BINS
/
4
),
HISTOGRAM_BINS
))
for
row
in
range
(
HISTOGRAM_BINS
/
4
):
for
row
in
range
(
int
(
HISTOGRAM_BINS
/
4
)
):
heat_m
[
row
]
=
perturbation_bc_data
ax1
.
matshow
(
heat_m
,
cmap
=
cm
.
YlGnBu
)
ax1
.
axis
(
'off'
)
...
...
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