taxontabletools2 2.3.4__tar.gz → 2.3.5__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.
- {taxontabletools2-2.3.4/taxontabletools2.egg-info → taxontabletools2-2.3.5}/PKG-INFO +1 -1
- {taxontabletools2-2.3.4 → taxontabletools2-2.3.5}/setup.py +1 -1
- {taxontabletools2-2.3.4 → taxontabletools2-2.3.5}/taxontabletools2/taxontabletools_2.0.py +49 -29
- {taxontabletools2-2.3.4 → taxontabletools2-2.3.5/taxontabletools2.egg-info}/PKG-INFO +1 -1
- {taxontabletools2-2.3.4 → taxontabletools2-2.3.5}/LICENSE +0 -0
- {taxontabletools2-2.3.4 → taxontabletools2-2.3.5}/MANIFEST.in +0 -0
- {taxontabletools2-2.3.4 → taxontabletools2-2.3.5}/README.md +0 -0
- {taxontabletools2-2.3.4 → taxontabletools2-2.3.5}/setup.cfg +0 -0
- {taxontabletools2-2.3.4 → taxontabletools2-2.3.5}/taxontabletools2/Rscripts/EFI.R +0 -0
- {taxontabletools2-2.3.4 → taxontabletools2-2.3.5}/taxontabletools2/Rscripts/diathor.R +0 -0
- {taxontabletools2-2.3.4 → taxontabletools2-2.3.5}/taxontabletools2/Rscripts/internal/.DS_Store +0 -0
- {taxontabletools2-2.3.4 → taxontabletools2-2.3.5}/taxontabletools2/Rscripts/internal/efiminus.R +0 -0
- {taxontabletools2-2.3.4 → taxontabletools2-2.3.5}/taxontabletools2/Rscripts/internal/internal.zip +0 -0
- {taxontabletools2-2.3.4 → taxontabletools2-2.3.5}/taxontabletools2/WFD_conversion/.DS_Store +0 -0
- {taxontabletools2-2.3.4 → taxontabletools2-2.3.5}/taxontabletools2/WFD_conversion/efi_ecoregions.png +0 -0
- {taxontabletools2-2.3.4 → taxontabletools2-2.3.5}/taxontabletools2/WFD_conversion/efi_table.xlsx +0 -0
- {taxontabletools2-2.3.4 → taxontabletools2-2.3.5}/taxontabletools2/__init__.py +0 -0
- {taxontabletools2-2.3.4 → taxontabletools2-2.3.5}/taxontabletools2/__main__.py +0 -0
- {taxontabletools2-2.3.4 → taxontabletools2-2.3.5}/taxontabletools2/read_table_example.xlsx +0 -0
- {taxontabletools2-2.3.4 → taxontabletools2-2.3.5}/taxontabletools2/taxonomy_table_example.xlsx +0 -0
- {taxontabletools2-2.3.4 → taxontabletools2-2.3.5}/taxontabletools2/user_preferences.xlsx +0 -0
- {taxontabletools2-2.3.4 → taxontabletools2-2.3.5}/taxontabletools2.egg-info/SOURCES.txt +0 -0
- {taxontabletools2-2.3.4 → taxontabletools2-2.3.5}/taxontabletools2.egg-info/dependency_links.txt +0 -0
- {taxontabletools2-2.3.4 → taxontabletools2-2.3.5}/taxontabletools2.egg-info/entry_points.txt +0 -0
- {taxontabletools2-2.3.4 → taxontabletools2-2.3.5}/taxontabletools2.egg-info/requires.txt +0 -0
- {taxontabletools2-2.3.4 → taxontabletools2-2.3.5}/taxontabletools2.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: taxontabletools2
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.5
|
|
4
4
|
Summary: Taxontabletools2 - A comprehensive, platform-independent graphical user interface software to explore and visualise DNA metabarcoding data
|
|
5
5
|
Home-page: https://pypi.org/project/taxontabletools2
|
|
6
6
|
Author: Till-Hendrik Macher
|
|
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
|
|
5
5
|
|
|
6
6
|
setuptools.setup(
|
|
7
7
|
name="taxontabletools2",
|
|
8
|
-
version="2.3.
|
|
8
|
+
version="2.3.5",
|
|
9
9
|
author="Till-Hendrik Macher",
|
|
10
10
|
author_email="macher@uni-trier.de",
|
|
11
11
|
description="Taxontabletools2 - A comprehensive, platform-independent graphical user interface software to explore and visualise DNA metabarcoding data",
|
|
@@ -85,7 +85,7 @@ warnings.filterwarnings("ignore", category=pd.errors.PerformanceWarning)
|
|
|
85
85
|
# TTT_colorscale
|
|
86
86
|
|
|
87
87
|
if 'test' == 'pass':
|
|
88
|
-
table_display_name = Path('/Users/tillmacher/Desktop/TTT_projects/AA_test/TaXon_tables/
|
|
88
|
+
table_display_name = Path('/Users/tillmacher/Desktop/TTT_projects/AA_test/TaXon_tables/AA_test_XLSX_taxon_table.xlsx')
|
|
89
89
|
df_taxon_table = pd.read_excel(table_display_name).fillna('')
|
|
90
90
|
seq_loc = df_taxon_table.columns.tolist().index('Seq')
|
|
91
91
|
hash_loc = df_taxon_table.columns.tolist().index('Hash')
|
|
@@ -538,14 +538,22 @@ def create_taxon_table():
|
|
|
538
538
|
samples = merged_df.columns.tolist()[seq_loc:]
|
|
539
539
|
metadata_df = pd.DataFrame([[i] + i.split('_') for i in samples])
|
|
540
540
|
metadata_df.rename(columns={0: "Samples"}, inplace=True)
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
541
|
+
metadata_df.insert(loc=1, column="Date", value="")
|
|
542
|
+
metadata_df.insert(loc=1, column="Longitude", value="")
|
|
543
|
+
metadata_df.insert(loc=1, column="Latitude", value="")
|
|
544
|
+
|
|
545
|
+
# Write table
|
|
546
|
+
if st.session_state['taxon_table_export_format'] == '.h5':
|
|
547
|
+
to_h5_path = st.session_state['active_project_path'] / 'TaXon_tables' / str(st.session_state['taxon_table_creation_name'] + '_taxon_table.h5')
|
|
548
|
+
merged_df.to_hdf(to_h5_path, key='Taxon Table')
|
|
549
|
+
metadata_df.to_hdf(to_h5_path, key='Metadata Table')
|
|
550
|
+
st.success(f'Saved Taxon Table as: {to_h5_path}')
|
|
551
|
+
else:
|
|
552
|
+
to_excel_path = st.session_state['active_project_path'] / 'TaXon_tables' / str(st.session_state['taxon_table_creation_name'] + '_taxon_table.xlsx')
|
|
553
|
+
with pd.ExcelWriter(to_excel_path, engine="openpyxl") as writer:
|
|
554
|
+
merged_df.to_excel(writer, sheet_name="Taxon Table", index=False)
|
|
555
|
+
metadata_df.to_excel(writer, sheet_name="Metadata Table", index=False)
|
|
556
|
+
st.success(f'Saved Taxon Table as: {to_excel_path}')
|
|
549
557
|
|
|
550
558
|
else:
|
|
551
559
|
expected_columns = ["id", "phylum", "class", "order", "family", "genus", "species", "pct_identity", "status", "records", "records_ratio", "selected_level", "BIN", "flags"]
|
|
@@ -587,14 +595,22 @@ def create_taxon_table():
|
|
|
587
595
|
samples = merged_df.columns.tolist()[merged_df.columns.tolist().index('Seq') + 1:]
|
|
588
596
|
metadata_df = pd.DataFrame([[i] + i.split('_') for i in samples])
|
|
589
597
|
metadata_df.rename(columns={0: "Samples"}, inplace=True)
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
+
metadata_df.insert(loc=1, column="Date", value="")
|
|
599
|
+
metadata_df.insert(loc=1, column="Longitude", value="")
|
|
600
|
+
metadata_df.insert(loc=1, column="Latitude", value="")
|
|
601
|
+
|
|
602
|
+
# Write table
|
|
603
|
+
if st.session_state['taxon_table_export_format'] == '.h5':
|
|
604
|
+
to_h5_path = st.session_state['active_project_path'] / 'TaXon_tables' / str(st.session_state['taxon_table_creation_name'] + '_taxon_table.h5')
|
|
605
|
+
merged_df.to_hdf(to_h5_path, key='Taxon Table')
|
|
606
|
+
metadata_df.to_hdf(to_h5_path, key='Metadata Table')
|
|
607
|
+
st.success(f'Saved Taxon Table as: {to_h5_path}')
|
|
608
|
+
else:
|
|
609
|
+
to_excel_path = st.session_state['active_project_path'] / 'TaXon_tables' / str(st.session_state['taxon_table_creation_name'] + '_taxon_table.xlsx')
|
|
610
|
+
with pd.ExcelWriter(to_excel_path, engine="openpyxl") as writer:
|
|
611
|
+
merged_df.to_excel(writer, sheet_name="Taxon Table", index=False)
|
|
612
|
+
metadata_df.to_excel(writer, sheet_name="Metadata Table", index=False)
|
|
613
|
+
st.success(f'Saved Taxon Table as: {to_excel_path}')
|
|
598
614
|
|
|
599
615
|
########################################################################################################################
|
|
600
616
|
# Tutorial
|
|
@@ -4395,21 +4411,17 @@ if path_to_projects.exists():
|
|
|
4395
4411
|
|
|
4396
4412
|
a1, a2 = st.columns(2)
|
|
4397
4413
|
with a1:
|
|
4398
|
-
selected_read_table = st.selectbox(label='Select Read Table', options=import_folder_files.keys(), key='selected_read_table')
|
|
4399
|
-
st.selectbox(label='Choose Import Format', options=['APSCALE'], key='read_table_import_format')
|
|
4414
|
+
selected_read_table = st.selectbox(label='Select Read Table:', options=import_folder_files.keys(), key='selected_read_table')
|
|
4415
|
+
st.selectbox(label='Choose Import Format:', options=['APSCALE'], key='read_table_import_format')
|
|
4400
4416
|
with a2:
|
|
4401
|
-
selected_taxonomy_table = st.selectbox(label='Select Taxonomy Table', options=import_folder_files.keys(), key='selected_taxonomy_table')
|
|
4402
|
-
st.selectbox(label='Choose Import Format', options=['APSCALE', 'BOLDigger'], key='taxonomy_table_import_format')
|
|
4417
|
+
selected_taxonomy_table = st.selectbox(label='Select Taxonomy Table:', options=import_folder_files.keys(), key='selected_taxonomy_table')
|
|
4418
|
+
st.selectbox(label='Choose Import Format:', options=['APSCALE', 'BOLDigger'], key='taxonomy_table_import_format')
|
|
4403
4419
|
|
|
4404
4420
|
a1, a2 = st.columns(2)
|
|
4405
4421
|
with a1:
|
|
4406
|
-
taxon_table_creation_name = st.text_input(label='Enter Name of Taxon Table', key='taxon_table_creation_name')
|
|
4422
|
+
taxon_table_creation_name = st.text_input(label='Enter Name of Taxon Table:', value=st.session_state['active_project_path'].stem, key='taxon_table_creation_name')
|
|
4407
4423
|
with a2:
|
|
4408
|
-
st.
|
|
4409
|
-
if st.session_state['TTT_tableformat'] == '.h5':
|
|
4410
|
-
st.info(f'Export Format: {st.session_state["TTT_tableformat"]} (fast, recommended for large tables)')
|
|
4411
|
-
else:
|
|
4412
|
-
st.info(f'Export Format: {st.session_state["TTT_tableformat"]} (editable, slower)')
|
|
4424
|
+
st.selectbox(label='Select Export Format:', options=['.xlsx', '.h5'], key='taxon_table_export_format', help=format_help_text)
|
|
4413
4425
|
|
|
4414
4426
|
if selected_read_table and selected_taxonomy_table:
|
|
4415
4427
|
if st.button('Create Taxon Table'):
|
|
@@ -5083,7 +5095,15 @@ if 'df_taxon_table' in st.session_state and 'table_display_name' in st.session_s
|
|
|
5083
5095
|
)
|
|
5084
5096
|
|
|
5085
5097
|
cols = st.session_state['df_metadata_table'].columns.tolist()
|
|
5086
|
-
|
|
5098
|
+
lat_lon_check = "Latitude" in cols and "Longitude" in cols
|
|
5099
|
+
if lat_lon_check == True:
|
|
5100
|
+
lat_data = list(st.session_state['df_metadata_table']['Latitude'].unique()) != ['']
|
|
5101
|
+
lon_data = list(st.session_state['df_metadata_table']['Longitude'].unique()) != ['']
|
|
5102
|
+
else:
|
|
5103
|
+
lat_data = False
|
|
5104
|
+
lon_data = False
|
|
5105
|
+
|
|
5106
|
+
if lat_lon_check == True and lat_data == True and lon_data == True:
|
|
5087
5107
|
st.write('### GBIF Occurrence Validation')
|
|
5088
5108
|
col1, col2 ,col3 = st.columns(3)
|
|
5089
5109
|
with col1:
|
|
@@ -5118,7 +5138,7 @@ if 'df_taxon_table' in st.session_state and 'table_display_name' in st.session_s
|
|
|
5118
5138
|
st.divider()
|
|
5119
5139
|
|
|
5120
5140
|
else:
|
|
5121
|
-
st.info('Please add the columns "Latitude" and "Longitude" to your Metadata Table!')
|
|
5141
|
+
st.info('Please add the columns "Latitude" and "Longitude" to your Metadata Table and enter the GPS coordinates!')
|
|
5122
5142
|
|
|
5123
5143
|
########################################################################################################################
|
|
5124
5144
|
st.markdown("## 📆 Time Series")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: taxontabletools2
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.5
|
|
4
4
|
Summary: Taxontabletools2 - A comprehensive, platform-independent graphical user interface software to explore and visualise DNA metabarcoding data
|
|
5
5
|
Home-page: https://pypi.org/project/taxontabletools2
|
|
6
6
|
Author: Till-Hendrik Macher
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{taxontabletools2-2.3.4 → taxontabletools2-2.3.5}/taxontabletools2/Rscripts/internal/.DS_Store
RENAMED
|
File without changes
|
{taxontabletools2-2.3.4 → taxontabletools2-2.3.5}/taxontabletools2/Rscripts/internal/efiminus.R
RENAMED
|
File without changes
|
{taxontabletools2-2.3.4 → taxontabletools2-2.3.5}/taxontabletools2/Rscripts/internal/internal.zip
RENAMED
|
File without changes
|
|
File without changes
|
{taxontabletools2-2.3.4 → taxontabletools2-2.3.5}/taxontabletools2/WFD_conversion/efi_ecoregions.png
RENAMED
|
File without changes
|
{taxontabletools2-2.3.4 → taxontabletools2-2.3.5}/taxontabletools2/WFD_conversion/efi_table.xlsx
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{taxontabletools2-2.3.4 → taxontabletools2-2.3.5}/taxontabletools2/taxonomy_table_example.xlsx
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{taxontabletools2-2.3.4 → taxontabletools2-2.3.5}/taxontabletools2.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{taxontabletools2-2.3.4 → taxontabletools2-2.3.5}/taxontabletools2.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|