language:
- en
pretty_name: TreeOfLife10M EDA
TreeOfLife10M EDA Repo
This repo contains the analysis of the TreeOfLife10M dataset as it's being crafted and refined.
Data
The data folder contains
catalog.csv: the metadata and identifiers for all images in the dataset. This includes original data source, unique identifier within TreeOfLife10M, and the associated taxa information for the image. This is the file that will be updated, while preserving thecatalog-v1-dev.csvfile for ease of comparison.stats_avg_std_byClass.csv: average and standard distribution of images given by class incatalog.csv. This is for both all images, and images that have labels.predicted-catalog.csv: the metadata and identifiers for all entries expected in the dataset, prior to webdataset creation. This includes original data source, unique identifier within TreeOfLife10M, and the associated taxa information. In version 3.3 (first time it was generated), it showed 27K more entries than in the webdataset and they all had full taxonomic rank filled.catalog-v1-dev.csv: the metadata and identifiers for all images in the dataset. This includes original data source, unique identifier within TreeOfLife10M, and the associated taxa information for the image. This file will be maintained for v1 reference, and as such will not be updated.taxa_counts.csv: count of distinct lower taxa within each higher taxon fromkingdomdown togenusincatalog-v1-dev.csv, though the genus count was interrupted and therefore is incomplete.avg_std_byClass.csv: average and standard distribution of images incatalog-v1-dev.csvgiven by class (taxonomic rank). This is for both all images, and images that have labels. Note that kingdoms had not been merged and no standardization was performed on the taxonomic hierarchy prior to creation of this file.tol_hierarchy_test.csv: Subset ofcatalog-v1-dev.csvfor testing thecheck_taxascript to ensure the hierarchy is properly filled in after data generation.
Notebooks
The notebooks folder contains
ToL_catalog_EDA.ipynb: more full EDA of TreeOfLife10M dataset usingcatalog.csv. To be updated ascatalog.csvis updated, i.e., as the dataset is updated.ToL_catalog_EDA.py: py file paired toToL_catalog_EDA.ipynbto facilitate diff checking in case of cell text changes in notebook.ToL_predicted-catalog_EDA.ipynb: more full EDA of TreeOfLife10M dataset usingpredicted-catalog.csv. To be updated aspredicted-catalog.csvis updated, i.e., as the dataset is updated.ToL_predicted-catalog_EDA.py: py file paired toToL_predicted-catalog_EDA.ipynbto facilitate diff checking in case of cell text changes in notebook.BioCLIP_taxa_viz.ipynb: generates data visualizations, in particular, the generation of treemaps invisualsfolder; also includes a histogram of kingdoms. The treemaps produced in the notebook are interactive andHTMLinteractive versions can also be found invisuals.BioCLIP_data_viz.ipynb: notebook with quick basic stats forcatalog-v1-dev.csv, generatestaxa_counts.csv.BioCLIP_taxa_viz_bySource.ipynb: generates data visualizations, in particular, the generation of visualizations invisualsfolder and some histograms. The treemaps produced in the notebook are interactive.ToL_EDA.ipynb: more full EDA of TreeOfLife10M dataset. Explores the labeling inconsistencies for direction of standardization efforts. Maintained for v1 reference, should not be updated.missing_taxa_testGen.ipynb: generatestol_hierarchy_test.csvto testcheck_taxascript. Also observes species labeled as(unidentified)in EOL data.
Note: run pip install -r requirements.txt before starting the visualization notebooks. EDA notebooks only require pandas and seaborn.
Visuals
Visualizations generated to demonstrate the distribution and diversity within the phyla of TreeOfLife10M.
category-v1-visuals: visualizations made for the originalcatalog-v1-dev.csvusingBioCLIP_taxa_viz_bySource.ipynb. There is also one for just the iNat21 data included.kingdom_ToL_tree.html: interactive treemap fromkingdomtofamilyto demonstrate the distribution of the data. 2:1 aspect ratio.kingdom_ToL_tree.pdf: static treemap fromkingdomtofamilyto demonstrate the distribution of the data. 2:1 aspect ratio.phyla_ToL_tree.html: interactive treemap fromphylumtofamilyto demonstrate the distribution of the data. 2:1 aspect ratio.kingdom_ToL_tree.pdf: static treemap fromphylumtofamilyto demonstrate the distribution of the data. 2:1 aspect ratio.