geoseeq 0.6.13.dev0__tar.gz → 0.6.13.dev2__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/PKG-INFO +1 -1
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/cli/main.py +1 -1
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/id_constructors/from_ids.py +4 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/knex.py +4 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq.egg-info/PKG-INFO +1 -1
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/pyproject.toml +1 -1
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/LICENSE +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/README.md +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/__init__.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/app.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/blob_constructors.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/bulk_creators.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/cli/__init__.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/cli/constants.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/cli/copy.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/cli/detail.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/cli/download.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/cli/fastq_utils.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/cli/get_eula.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/cli/manage.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/cli/progress_bar.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/cli/project.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/cli/raw.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/cli/run.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/cli/search.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/cli/shared_params/__init__.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/cli/shared_params/common_state.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/cli/shared_params/config.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/cli/shared_params/id_handlers.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/cli/shared_params/obj_getters.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/cli/shared_params/opts_and_args.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/cli/upload/__init__.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/cli/upload/upload.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/cli/upload/upload_advanced.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/cli/upload/upload_reads.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/cli/user.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/cli/utils.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/cli/view.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/constants.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/contrib/__init__.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/contrib/ncbi/__init__.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/contrib/ncbi/api.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/contrib/ncbi/bioproject.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/contrib/ncbi/cli.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/contrib/ncbi/setup_logging.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/file_system_cache.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/id_constructors/__init__.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/id_constructors/from_blobs.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/id_constructors/from_names.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/id_constructors/from_uuids.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/id_constructors/resolvers.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/id_constructors/utils.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/organization.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/pipeline.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/plotting/__init__.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/plotting/constants.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/plotting/highcharts.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/plotting/map/__init__.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/plotting/map/base_layer.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/plotting/map/map.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/plotting/map/overlay.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/plotting/selectable.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/project.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/remote_object.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/result/__init__.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/result/bioinfo.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/result/file_chunker.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/result/file_download.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/result/file_upload.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/result/result_file.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/result/result_folder.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/result/resumable_download_tracker.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/result/resumable_upload_tracker.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/result/utils.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/sample.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/search.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/upload_download_manager.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/user.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/utils.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/vc/__init__.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/vc/checksum.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/vc/cli.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/vc/clone.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/vc/constants.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/vc/vc_cache.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/vc/vc_dir.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/vc/vc_sample.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/vc/vc_stub.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq/work_orders.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq.egg-info/SOURCES.txt +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq.egg-info/dependency_links.txt +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq.egg-info/entry_points.txt +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq.egg-info/requires.txt +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/geoseeq.egg-info/top_level.txt +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/setup.cfg +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/setup.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/tests/__init__.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/tests/test_api_client.py +0 -0
- {geoseeq-0.6.13.dev0 → geoseeq-0.6.13.dev2}/tests/test_plotting.py +0 -0
@@ -54,7 +54,7 @@ def version():
|
|
54
54
|
Use of this tool implies acceptance of the GeoSeeq End User License Agreement.
|
55
55
|
Run `geoseeq eula show` to view the EULA.
|
56
56
|
"""
|
57
|
-
click.echo('0.6.
|
57
|
+
click.echo('0.6.13dev2') # remember to update pyproject.toml
|
58
58
|
|
59
59
|
|
60
60
|
@main.group('advanced')
|
@@ -1,4 +1,5 @@
|
|
1
1
|
from geoseeq import GeoseeqNotFoundError
|
2
|
+
import logging
|
2
3
|
from .from_uuids import (
|
3
4
|
org_from_uuid,
|
4
5
|
project_from_uuid,
|
@@ -24,9 +25,12 @@ from .from_names import (
|
|
24
25
|
from .utils import is_grn_or_uuid, is_name
|
25
26
|
from geoseeq.knex import with_knex
|
26
27
|
|
28
|
+
logger = logging.getLogger("geoseeq_api") # Same name as calling module
|
29
|
+
|
27
30
|
|
28
31
|
def _generic_from_id(knex, id, from_uuid_func, from_name_func):
|
29
32
|
"""Return the object which the id points to."""
|
33
|
+
logger.info(f'Getting object from id: {id}, knex: {knex}, from_uuid_func: {from_uuid_func}, from_name_func: {from_name_func}')
|
30
34
|
if is_grn_or_uuid(id):
|
31
35
|
id = id.split(':')[-1] # if this is a GRN, get the UUID. Won't hurt if it's already a UUID.
|
32
36
|
return from_uuid_func(knex, id)
|
@@ -222,16 +222,20 @@ class Knex:
|
|
222
222
|
def with_knex(func):
|
223
223
|
def wrapper(*args, **kwargs):
|
224
224
|
# check if any of the arguments are a knex instance
|
225
|
+
logger.info(f"Checking for knex in args: {args}, kwargs: {kwargs}")
|
225
226
|
any_knex = any([isinstance(arg, Knex) for arg in args])
|
226
227
|
if any_knex:
|
228
|
+
logger.info("knex found in args args: {args}, kwargs: {kwargs}")
|
227
229
|
return func(*args, **kwargs)
|
228
230
|
else:
|
231
|
+
logger.info("knex not found in args args: {args}, kwargs: {kwargs}")
|
229
232
|
varnames = [
|
230
233
|
varname for varname in func.__code__.co_varnames
|
231
234
|
if varname != "knex"
|
232
235
|
]
|
233
236
|
kwargs.update(zip(varnames, args))
|
234
237
|
if "knex" not in kwargs:
|
238
|
+
logger.info("knex not found in kwargs args: {args}, kwargs: {kwargs}")
|
235
239
|
profile = kwargs.pop("profile", "")
|
236
240
|
kwargs['knex'] = Knex.load_profile(profile=profile)
|
237
241
|
# reorder kwargs to match the function signature
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|