apscale-gui 3.2.0__tar.gz → 3.2.2__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apscale_gui
3
- Version: 3.2.0
3
+ Version: 3.2.2
4
4
  Summary: Advanced Pipeline for Simple yet Comprehensive AnaLysEs of DNA metabarcoding data - Graphical User Interface
5
5
  Home-page: https://github.com/TillMacher/apscale_gui
6
6
  Author: Till-Hendrik Macher
@@ -26,6 +26,7 @@ Requires-Dist: streamlit-file-browser>=3.2.22
26
26
  Requires-Dist: scipy>=1.16.1
27
27
  Requires-Dist: cutadapt>=5.1
28
28
  Requires-Dist: update-checker>=0.18.0
29
+ Requires-Dist: update_checker
29
30
  Requires-Dist: powerlaw>=1.5
30
31
  Requires-Dist: requests>=2.32.3
31
32
  Requires-Dist: beautifulsoup4>=4.13.4
@@ -5,6 +5,7 @@ import streamlit as st
5
5
  from streamlit_file_browser import st_file_browser
6
6
  import importlib
7
7
  from update_checker import update_check
8
+ from update_checker import UpdateChecker
8
9
  from pathlib import Path
9
10
  import glob
10
11
  import pandas as pd
@@ -129,6 +130,21 @@ large datasets—potentially billions of sequences—at high speed, without requ
129
130
  memory. This makes it especially useful for scaling up analyses.
130
131
  """
131
132
 
133
+ def check_package_update_disp(packages):
134
+ for pkg in packages:
135
+ installed_version = importlib.metadata.version(pkg)
136
+ checker = UpdateChecker()
137
+ result = checker.check(pkg, installed_version)
138
+ if result:
139
+ st.sidebar.info(f'{result}\n\n$ pip install --upgrade {pkg}')
140
+
141
+ def get_package_versions_disp(pkg):
142
+ try:
143
+ version = importlib.metadata.version(pkg)
144
+ return version
145
+ except importlib.metadata.PackageNotFoundError:
146
+ return
147
+
132
148
  def check_dependencies(tools=["cutadapt", "vsearch", "swarm", "blastn"]):
133
149
  missing = []
134
150
  for tool in tools:
@@ -612,7 +628,10 @@ def main():
612
628
 
613
629
  # Sidebar inputs & outputs
614
630
  with st.sidebar:
615
- st.subheader("APSCALE projects")
631
+ apscale_gui_version = get_package_versions_disp("apscale_gui")
632
+ st.markdown(f"# APSCALE-GUI v{apscale_gui_version}")
633
+ check_package_update_disp(["apscale_gui", "apscale", "apscale_blast", "boldigger3"])
634
+ st.divider()
616
635
 
617
636
  # read user_data.txt
618
637
  script_path = Path(__file__).resolve()
@@ -923,6 +942,8 @@ def main():
923
942
 
924
943
  if st.session_state["P5 Primer (5' - 3')"] == '' or st.session_state["P7 Primer (5' - 3')"] == '' or st.session_state['min length'] == '' or st.session_state['max length'] =='':
925
944
  st.error('Please fill out all required fields!')
945
+ elif float(st.session_state["sequence group threshold"]) >= 1:
946
+ st.error('Please choose a sequence group threshold > 1.\n\nESVs are generated seperately!')
926
947
  else:
927
948
  if st.session_state['run_apscale_mode'] == 'Run apscale (basic mode)':
928
949
  st.info('The "Basic mode" mode skips "Replicate merging" and "NC removal".')
@@ -1021,19 +1042,16 @@ def main():
1021
1042
  subprocess.Popen(cmd, creationflags=subprocess.DETACHED_PROCESS | subprocess.CREATE_NEW_PROCESS_GROUP)
1022
1043
  st.success("APSCALE analysis module started — it will open in a new browser tab.")
1023
1044
 
1024
- with st.expander("🧩 TaxonTableTools Table Conversion", expanded=False):
1045
+ with st.expander("🧩 TaxonTableTools2", expanded=False):
1025
1046
  st.write(
1026
- "Combine your read and taxonomy tables into a single, merged table. "
1027
- "This format is fully compatible with TaxonTableTools for downstream analyses "
1028
- "and provides a more convenient structure for working with your data."
1029
- )
1030
- available_read_tables = {Path(i).name: Path(i) for i in glob.glob(str(project_folder / '11_read_table' / 'data' / '*_read_table_*.xlsx'))}
1031
- available_taxonomy_tables = {Path(i).name: Path(i) for i in glob.glob(str(project_folder / '11_read_table' / 'data' / 'blastn_*' / 'blastn_*.xlsx'))}
1032
- st.selectbox(label='Read table', key='TTT_read_table', options=list(available_read_tables.keys()))
1033
- st.selectbox(label='Taxonomy table', key='TTT_taxonomy_table', options=list(available_taxonomy_tables.keys()))
1034
-
1035
- if st.button('Merge tables'):
1036
- merge_tables(available_read_tables[st.session_state['TTT_read_table']], available_taxonomy_tables[st.session_state['TTT_taxonomy_table']])
1047
+ "Combine your read and taxonomy tables into a single, merged table for TaxonTableTools2.\n\n"
1048
+ "TaxonTableTools2 (TTT) is an easy-to-use graphical software designed for the analysis"
1049
+ "and visualization of DNA metabarcoding data. It enables biologists and researchers"
1050
+ "without bioinformatics experience to explore taxonomic datasets quickly, reproducibly,"
1051
+ "and interactively through a modern graphical user interface."
1052
+ )
1053
+ if st.button('Learn More'):
1054
+ webbrowser.open("https://github.com/TillMacher/TaxonTableTools2")
1037
1055
 
1038
1056
  ############################################################################################################
1039
1057
  st.markdown("---")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apscale_gui
3
- Version: 3.2.0
3
+ Version: 3.2.2
4
4
  Summary: Advanced Pipeline for Simple yet Comprehensive AnaLysEs of DNA metabarcoding data - Graphical User Interface
5
5
  Home-page: https://github.com/TillMacher/apscale_gui
6
6
  Author: Till-Hendrik Macher
@@ -26,6 +26,7 @@ Requires-Dist: streamlit-file-browser>=3.2.22
26
26
  Requires-Dist: scipy>=1.16.1
27
27
  Requires-Dist: cutadapt>=5.1
28
28
  Requires-Dist: update-checker>=0.18.0
29
+ Requires-Dist: update_checker
29
30
  Requires-Dist: powerlaw>=1.5
30
31
  Requires-Dist: requests>=2.32.3
31
32
  Requires-Dist: beautifulsoup4>=4.13.4
@@ -12,6 +12,7 @@ streamlit-file-browser>=3.2.22
12
12
  scipy>=1.16.1
13
13
  cutadapt>=5.1
14
14
  update-checker>=0.18.0
15
+ update_checker
15
16
  powerlaw>=1.5
16
17
  requests>=2.32.3
17
18
  beautifulsoup4>=4.13.4
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
5
5
 
6
6
  setuptools.setup(
7
7
  name="apscale_gui",
8
- version="3.2.0",
8
+ version="3.2.2",
9
9
  author="Till-Hendrik Macher",
10
10
  author_email="macher@uni-trier.de",
11
11
  description="Advanced Pipeline for Simple yet Comprehensive AnaLysEs of DNA metabarcoding data - Graphical User Interface",
@@ -29,6 +29,7 @@ setuptools.setup(
29
29
  "scipy>=1.16.1",
30
30
  "cutadapt>=5.1",
31
31
  "update-checker>=0.18.0",
32
+ "update_checker",
32
33
  "powerlaw>=1.5",
33
34
  "requests>=2.32.3",
34
35
  "beautifulsoup4>=4.13.4",
File without changes
File without changes
File without changes
File without changes