pangea.contrib.metasub package

Submodules

pangea.contrib.metasub.admin module

pangea.contrib.metasub.apps module

class pangea.contrib.metasub.apps.MetaSUBConfig(app_name, app_module)[source]

Bases: django.apps.config.AppConfig

name = 'metasub'

pangea.contrib.metasub.constants module

pangea.contrib.metasub.constants.METASUB_LIBRARY_UUID()

pangea.contrib.metasub.models module

pangea.contrib.metasub.tests module

class pangea.contrib.metasub.tests.MetaSUBTests(methodName='runTest')[source]

Bases: rest_framework.test.APITestCase

classmethod setUpTestData()[source]

Load initial data for the TestCase.

test_detailed_match_cities()[source]

Check that a detailed query returns appropriatelylimited results.

test_detailed_match_samples()[source]

Check that a detailed query returns appropriatelylimited results.

test_fuzzy_match_samples()[source]

Check that a detailed query returns appropriatelylimited results.

pangea.contrib.metasub.urls module

pangea.contrib.metasub.urls.path(route, view, kwargs=None, name=None, *, Pattern=<class 'django.urls.resolvers.RoutePattern'>)

pangea.contrib.metasub.views module

pangea.contrib.metasub.views.all_taxa(self, request, *args, **kwargs)[source]

Reply with a list of all taxa names in MetaSUB.

pangea.contrib.metasub.views.fuzzy_taxa_search_cities(self, request, *args, **kwargs)[source]

Return samples with taxa results aggregated by city.

pangea.contrib.metasub.views.fuzzy_taxa_search_materials(self, request, *args, **kwargs)[source]

Return samples with taxa results aggregated by materials.

pangea.contrib.metasub.views.fuzzy_taxa_search_samples(self, request, *args, **kwargs)[source]

Return samples with taxa results that fuzzy match the query.

pangea.contrib.metasub.views.normalize_surface(el)[source]
pangea.contrib.metasub.views.sample_taxonomy_sunburst(self, request, *args, **kwargs)[source]

Reply with the taxonomy of a sample prepped for a Plotly sunburst plot.

Module contents