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
Blaise LI
libhts
Commits
63cbe65b
Commit
63cbe65b
authored
Mar 16, 2018
by
Blaise Li
Browse files
Data in plot_lfc_distribution is a Series.
parent
352dc658
Changes
1
Hide whitespace changes
Inline
Side-by-side
libhts/libhts.py
View file @
63cbe65b
...
...
@@ -454,10 +454,12 @@ def plot_lfc_distribution(res, contrast, fold_type=None):
if
fold_type
is
None
:
fold_type
=
"log2FoldChange"
lfc
=
getattr
(
res
,
fold_type
).
dropna
()
lfc
.
name
=
contrast
usetex
=
mpl
.
rcParams
.
get
(
"text.usetex"
,
False
)
if
usetex
:
lfc
.
columns
=
[
texscape
(
colname
)
for
colname
in
lfc
.
columns
]
lfc
.
name
=
texscape
(
contrast
)
else
:
lfc
.
name
=
contrast
# lfc.columns = [texscape(colname) for colname in lfc.columns]
axis
=
sns
.
kdeplot
(
lfc
)
axis
.
set_xlabel
(
fold_type
)
axis
.
set_ylabel
(
"frequency"
)
...
...
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