py2ls 0.2.4.7__py3-none-any.whl → 0.2.4.9__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- py2ls/.git/index +0 -0
- py2ls/batman.py +32 -1
- py2ls/bio.py +3 -17
- py2ls/data/usages_sns.json +2 -1
- py2ls/ips.py +1694 -838
- py2ls/ml2ls.py +1877 -391
- py2ls/plot.py +500 -222
- {py2ls-0.2.4.7.dist-info → py2ls-0.2.4.9.dist-info}/METADATA +1 -1
- {py2ls-0.2.4.7.dist-info → py2ls-0.2.4.9.dist-info}/RECORD +10 -10
- {py2ls-0.2.4.7.dist-info → py2ls-0.2.4.9.dist-info}/WHEEL +1 -1
py2ls/.git/index
CHANGED
Binary file
|
py2ls/batman.py
CHANGED
@@ -37,7 +37,38 @@ def convert_to_html(text_list, strict=False):
|
|
37
37
|
text = text.replace(escape_seq, html_rep)
|
38
38
|
html_content += text.replace("\n", "<br>") # Add line breaks for newlines
|
39
39
|
if strict:
|
40
|
-
html_content = "<html><body>\n" + html_content + "\n</body></html>"
|
40
|
+
# html_content = "<html><body>\n" + html_content + "\n</body></html>"
|
41
|
+
# Include mobile-friendly CSS for responsive tables
|
42
|
+
css_style = """
|
43
|
+
<style>
|
44
|
+
.table-container {
|
45
|
+
overflow-x: auto;
|
46
|
+
-webkit-overflow-scrolling: touch; /* Enable smooth scrolling on iOS */
|
47
|
+
margin-bottom: 20px;
|
48
|
+
}
|
49
|
+
table {
|
50
|
+
width: 100%;
|
51
|
+
border-collapse: collapse;
|
52
|
+
}
|
53
|
+
th, td {
|
54
|
+
padding: 8px;
|
55
|
+
border: 1px solid #ddd;
|
56
|
+
text-align: left;
|
57
|
+
}
|
58
|
+
</style>
|
59
|
+
"""
|
60
|
+
|
61
|
+
# Wrap the HTML content in the responsive container div
|
62
|
+
html_content = f"""
|
63
|
+
<html>
|
64
|
+
<head>{css_style}</head>
|
65
|
+
<body>
|
66
|
+
<div class="table-container">
|
67
|
+
{html_content}
|
68
|
+
</div>
|
69
|
+
</body>
|
70
|
+
</html>
|
71
|
+
"""
|
41
72
|
return html_content
|
42
73
|
|
43
74
|
|
py2ls/bio.py
CHANGED
@@ -254,23 +254,9 @@ def get_data(geo: dict, dataset: str = "GSE25097", verbose=False):
|
|
254
254
|
# get meta info
|
255
255
|
df_meta = get_meta(geo, dataset=dataset, verbose=False)
|
256
256
|
col_rm = [
|
257
|
-
"channel_count",
|
258
|
-
"
|
259
|
-
"
|
260
|
-
"contact_city",
|
261
|
-
"contact_country",
|
262
|
-
"contact_department",
|
263
|
-
"contact_email",
|
264
|
-
"contact_institute",
|
265
|
-
"contact_laboratory",
|
266
|
-
"contact_name",
|
267
|
-
"contact_phone",
|
268
|
-
"contact_state",
|
269
|
-
"contact_zip/postal_code",
|
270
|
-
"contributor",
|
271
|
-
"manufacture_protocol",
|
272
|
-
"taxid",
|
273
|
-
"web_link",
|
257
|
+
"channel_count","contact_web_link","contact_address","contact_city","contact_country","contact_department",
|
258
|
+
"contact_email","contact_institute","contact_laboratory","contact_name","contact_phone","contact_state",
|
259
|
+
"contact_zip/postal_code","contributor","manufacture_protocol","taxid","web_link",
|
274
260
|
]
|
275
261
|
# rm unrelavent columns
|
276
262
|
df_meta = df_meta.drop(columns=[col for col in col_rm if col in df_meta.columns])
|
py2ls/data/usages_sns.json
CHANGED
@@ -21,5 +21,6 @@
|
|
21
21
|
"residplot": "seaborn.residplot(data=None,*,x=None,y=None,x_partial=None,y_partial=None,lowess=False,order=1,robust=False,dropna=True,label=None,color=None,scatter_kws=None,line_kws=None,ax=None)\nhttps://seaborn.pydata.org/generated/seaborn.residplot.html",
|
22
22
|
"pairplot": "seaborn.pairplot(data,*,hue=None,hue_order=None,palette=None,vars=None,x_vars=None,y_vars=None,kind='scatter',diag_kind='auto',markers=None,height=2.5,aspect=1,corner=False,dropna=False,plot_kws=None,diag_kws=None,grid_kws=None,size=None)\nhttps://seaborn.pydata.org/generated/seaborn.pairplot.html",
|
23
23
|
"jointplot": "seaborn.jointplot(data=None,*,x=None,y=None,hue=None,kind='scatter',height=6,ratio=5,space=0.2,dropna=False,xlim=None,ylim=None,color=None,palette=None,hue_order=None,hue_norm=None,marginal_ticks=False,joint_kws=None,marginal_kws=None,**kwargs)\nhttps://seaborn.pydata.org/generated/seaborn.jointplot.html",
|
24
|
-
"plotting_context": "seaborn.plotting_context(context=None,font_scale=1,rc=None)\nhttps://seaborn.pydata.org/generated/seaborn.plotting_context.html"
|
24
|
+
"plotting_context": "seaborn.plotting_context(context=None,font_scale=1,rc=None)\nhttps://seaborn.pydata.org/generated/seaborn.plotting_context.html",
|
25
|
+
"swarmplot":"seaborn.swarmplot(data=None, *, x=None, y=None, hue=None, order=None, hue_order=None, dodge=False, orient=None, color=None, palette=None, size=5, edgecolor=None, linewidth=0, hue_norm=None, log_scale=None, native_scale=False, formatter=None, legend='auto', warn_thresh=0.05, ax=None, **kwargs)\nhttps://seaborn.pydata.org/generated/seaborn.swarmplot.html"
|
25
26
|
}
|