Skip to content

Commit

Permalink
revert to older stlite
Browse files Browse the repository at this point in the history
  • Loading branch information
maxibor committed Jul 30, 2024
1 parent 89c17dc commit d84f5d2
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,19 @@
<title>stlite app</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@stlite/mountable@0.61.0/build/stlite.css"
href="https://cdn.jsdelivr.net/npm/@stlite/mountable@0.52.1/build/stlite.css"
/>
</head>
<body>
<div id="root"></div>
<script src="https://cdn.jsdelivr.net/npm/@stlite/mountable@0.61.0/build/stlite.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@stlite/mountable@0.52.1/build/stlite.js"></script>
<script>
stlite.mount(
{
requirements: ["streamlit-aggrid==0.3.4.post3", "AMDirT==1.6.2", "streamlit<=1.35.0"],
requirements: ["streamlit-aggrid==0.3.4.post3", "AMDirT==1.6.2"],
entrypoint: "streamlit_app.py",
files: {
"streamlit_app.py": `from numpy import ALLOW_THREADS
import streamlit as st
"streamlit_app.py": `import streamlit as st
import pandas as pd
import os
from st_aggrid import GridOptionsBuilder, AgGrid, GridUpdateMode, DataReturnMode, JsCode
Expand Down Expand Up @@ -94,7 +93,7 @@
unsafe_allow_html=True,
)
st.write(f"# [AMDirT](https://github.com/SPAAM-community/AMDirT) viewer tool")
st.write(f"\\n Version: {__version__}")
st.write("Version "+str(__version__))
st.session_state.tag_name = st.selectbox(
label="Select an AncientMetagenomeDir release", options=tags
)
Expand All @@ -109,7 +108,7 @@
)
if st.session_state.dl_method == "aspera":
st.warning(
"You will need to set the \`\${ASPERA_PATH}\` environment variable. See [documentation](https://amdirt.readthedocs.io) for more information."
"You will need to set the $ASPERA_PATH environment variable. See [documentation](https://amdirt.readthedocs.io) for more information."
)
st.warning(
f"Only {' and '.join(supported_archives)} archives are supported for now"
Expand All @@ -127,11 +126,11 @@
)
df = pd.read_csv(
samp_url,
sep="\\t",
sep="\t",
)
library = pd.read_csv(
lib_url,
sep="\\t",
sep="\t",
)
gbs = GridOptionsBuilder.from_dataframe(df)
gbs.configure_default_column(
Expand Down Expand Up @@ -290,7 +289,7 @@
data=(
pd.DataFrame(df_mod["selected_rows"])
.drop("_selectedRowNodeInfo", axis=1)
.to_csv(sep="\\t", index=False)
.to_csv(sep="\t", index=False)
.encode("utf-8")
),
file_name="AncientMetagenomeDir_filtered_samples.tsv",
Expand All @@ -309,7 +308,7 @@
st.download_button(
label="Download AncientMetagenomeDir Library Table",
data=(
lib_mod.drop(col_drop, axis=1).to_csv(sep="\\t", index=False)
lib_mod.drop(col_drop, axis=1).to_csv(sep="\t", index=False)
).encode("utf-8"),
file_name="AncientMetagenomeDir_filtered_libraries.tsv",
)
Expand All @@ -328,7 +327,7 @@
st.session_state.table_name,
supported_archives,
)["df"]["archive_accession"]
.to_csv(sep="\\t", header=False, index=False)
.to_csv(sep="\t", header=False, index=False)
.encode("utf-8"),
file_name="AncientMetagenomeDir_nf_core_fetchngs_input_table.tsv",
)
Expand Down Expand Up @@ -381,7 +380,7 @@
st.session_state.table_name,
supported_archives,
)
.to_csv(sep="\\t", index=False)
.to_csv(sep="\t", index=False)
.encode("utf-8"),
file_name="AncientMetagenomeDir_nf_core_eager_input_table.tsv",
)
Expand Down Expand Up @@ -462,7 +461,7 @@
st.session_state.table_name,
supported_archives,
)
.to_csv(sep="\\t", index=False)
.to_csv(sep="\t", index=False)
.encode("utf-8"),
file_name="AncientMetagenomeDir_aMeta_input_table.tsv",
)
Expand All @@ -477,9 +476,7 @@
file_name="AncientMetagenomeDir_bibliography.bib",
)
st.markdown(
"ℹ️ _By default all download scripts/inputs include ALL libraries of the selected samples. \\n Review the AncientMetagenomeDir library table prior using any other table, to ensure usage of relevant libraries!_"
)
st.markdown("⚠️ _By default all download scripts/inputs include ALL libraries of the selected samples. Review the AncientMetagenomeDir library table prior using any other table, to ensure usage of relevant libraries!_")
st.markdown(
"⚠️ _We provide no warranty to the accuracy of the generated input sheets._"
)
Expand All @@ -500,5 +497,5 @@

</script>
</body>
<!-- Generated from stlite sharing (https://edit.share.stlite.net/), and the source version is 4463be9fdff90d8c330535e53526d343908895b0 -->
<!-- Generated from stlite sharing (https://edit.share.stlite.net/), and the source version is 0ff29dc4b8c2ee38a99e007f4a0a91b42580eb89 -->
</html>

0 comments on commit d84f5d2

Please sign in to comment.