latch 2.41.3.dev2__tar.gz → 2.41.3.dev4__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.
- {latch-2.41.3.dev2/latch.egg-info → latch-2.41.3.dev4}/PKG-INFO +1 -1
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/resources/tasks.py +1 -1
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/types/directory.py +2 -2
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/types/file.py +2 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4/latch.egg-info}/PKG-INFO +1 -1
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/nextflow/dependencies.py +5 -15
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/nextflow/workflow.py +12 -2
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/setup.py +1 -1
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/LICENSE +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/MANIFEST.in +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/README.md +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/__init__.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/account.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/executions.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/functions/__init__.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/functions/messages.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/functions/operators.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/functions/secrets.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/ldata/__init__.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/ldata/_transfer/__init__.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/ldata/_transfer/download.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/ldata/_transfer/manager.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/ldata/_transfer/node.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/ldata/_transfer/progress.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/ldata/_transfer/remote_copy.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/ldata/_transfer/throttle.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/ldata/_transfer/upload.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/ldata/_transfer/utils.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/ldata/path.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/ldata/type.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/registry/__init__.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/registry/project.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/registry/record.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/registry/table.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/registry/types.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/registry/upstream_types/__init__.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/registry/upstream_types/types.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/registry/upstream_types/values.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/registry/utils.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/resources/__init__.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/resources/conditional.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/resources/dynamic.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/resources/launch_plan.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/resources/map_tasks.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/resources/reference_workflow.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/resources/workflow.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/types/__init__.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/types/glob.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/types/json.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/types/metadata.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/types/utils.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/utils.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/verified/__init__.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/verified/deseq2.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/verified/mafft.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/verified/pathway.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/verified/rnaseq.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch/verified/trim_galore.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch.egg-info/SOURCES.txt +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch.egg-info/dependency_links.txt +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch.egg-info/entry_points.txt +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch.egg-info/requires.txt +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch.egg-info/top_level.txt +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/__init__.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/auth/__init__.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/auth/csrf.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/auth/oauth2.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/auth/pkce.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/auth/utils.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/centromere/__init__.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/centromere/ctx.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/centromere/utils.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/click_utils.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/constants.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/docker_utils/__init__.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/exceptions/__init__.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/exceptions/cache.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/exceptions/errors.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/exceptions/handler.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/exceptions/traceback.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/main.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/menus.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/nextflow/__init__.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/nextflow/utils.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/__init__.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/cp/__init__.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/cp/autocomplete.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/cp/glob.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/cp/main.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/cp/utils.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/execute/__init__.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/execute/main.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/execute/utils.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/get.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/get_executions.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/get_params.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/__init__.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/__pycache__/__init__.cpython-310.pyc +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/__pycache__/init.cpython-310.pyc +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/assemble_and_sort/.env +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/assemble_and_sort/LICENSE +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/assemble_and_sort/README.md +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/assemble_and_sort/__init__.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/assemble_and_sort/assemble.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/assemble_and_sort/sort.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/assemble_and_sort/system-requirements.txt +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/common/.dockerignore +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/example_conda/__init__.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/example_conda/conda_task.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/example_conda/environment.yaml +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/example_docker/__init__.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/example_docker/task.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/example_nfcore/Dockerfile +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/example_nfcore/__init__.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/example_nfcore/task.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/example_r/__init__.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/example_r/environment.R +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/example_r/r_task.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/example_snakemake/.latch/latch_entrypoint +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/example_snakemake/Dockerfile +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/example_snakemake/Snakefile +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/example_snakemake/config.yaml +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/example_snakemake/environment.yaml +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/example_snakemake/latch_metadata.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/example_snakemake/scripts/plot-quals.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/example_snakemake/version +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/init.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/template/LICENSE +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/template/README.md +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/template/__init__.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/template/task.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/launch.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/local_dev.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/local_dev_old.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/login.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/ls.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/mkdir.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/move.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/preview.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/register/__init__.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/register/constants.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/register/register.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/register/utils.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/rm.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/stop_pod.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/sync.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/test_data/__init__.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/test_data/ls.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/test_data/remove.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/test_data/upload.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/test_data/utils.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/workspace.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/snakemake/__init__.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/snakemake/config/__init__.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/snakemake/config/parser.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/snakemake/config/utils.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/snakemake/serialize.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/snakemake/serialize_utils.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/snakemake/single_task_snakemake.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/snakemake/utils.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/snakemake/workflow.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/tinyrequests.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/tui/__init__.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/utils/__init__.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/utils/path.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/workflow_config.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/pyproject.toml +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/setup.cfg +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/tests/__init__.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/tests/cp/__init__.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/tests/fixtures.py +0 -0
- {latch-2.41.3.dev2 → latch-2.41.3.dev4}/tests/test_ls.py +0 -0
|
@@ -518,7 +518,7 @@ def nextflow_runtime_task(cpu: int, memory: int):
|
|
|
518
518
|
},
|
|
519
519
|
pod_spec=V1PodSpec(
|
|
520
520
|
runtime_class_name="sysbox-runc",
|
|
521
|
-
|
|
521
|
+
automount_service_account_token=True,
|
|
522
522
|
containers=[primary_container],
|
|
523
523
|
volumes=[
|
|
524
524
|
V1Volume(
|
|
@@ -114,10 +114,10 @@ class LatchDir(FlyteDirectory):
|
|
|
114
114
|
self._path_generated = False
|
|
115
115
|
|
|
116
116
|
if is_valid_url(self.path) and remote_path is None:
|
|
117
|
-
self._raw_remote_path = path
|
|
117
|
+
self._raw_remote_path = str(path)
|
|
118
118
|
self._remote_directory = self.path
|
|
119
119
|
else:
|
|
120
|
-
self._raw_remote_path = remote_path
|
|
120
|
+
self._raw_remote_path = str(remote_path)
|
|
121
121
|
self._remote_directory = None if remote_path is None else str(remote_path)
|
|
122
122
|
|
|
123
123
|
if kwargs.get("downloader") is not None:
|
|
@@ -77,8 +77,10 @@ class LatchFile(FlyteFile):
|
|
|
77
77
|
self._path_generated = False
|
|
78
78
|
|
|
79
79
|
if is_valid_url(self.path) and remote_path is None:
|
|
80
|
+
self._raw_remote_path = str(path)
|
|
80
81
|
self._remote_path = str(path)
|
|
81
82
|
else:
|
|
83
|
+
self._raw_remote_path = str(remote_path)
|
|
82
84
|
self._remote_path = None if remote_path is None else str(remote_path)
|
|
83
85
|
|
|
84
86
|
if kwargs.get("downloader") is not None:
|
|
@@ -37,7 +37,8 @@ def download_nf_jars(pkg_root: Path):
|
|
|
37
37
|
s3_resource = boto3.resource("s3")
|
|
38
38
|
bucket = s3_resource.Bucket("latch-public")
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
subdir = "nextflow-v2/"
|
|
41
|
+
objects = list(bucket.objects.filter(Prefix=f"{subdir}.nextflow/"))
|
|
41
42
|
|
|
42
43
|
click.secho(" Downloading Nextflow binaries: \x1b[?25l", italic=True, nl=False)
|
|
43
44
|
|
|
@@ -49,7 +50,8 @@ def download_nf_jars(pkg_root: Path):
|
|
|
49
50
|
url = urljoin(
|
|
50
51
|
"https://latch-public.s3.us-west-2.amazonaws.com/", obj.key
|
|
51
52
|
)
|
|
52
|
-
obj_path = pkg_root / ".latch" / obj.key
|
|
53
|
+
obj_path = pkg_root / ".latch" / obj.key[len(subdir) :]
|
|
54
|
+
print(obj_path)
|
|
53
55
|
|
|
54
56
|
exec.submit(_do_download, url, obj_path, len(objects), counter, lock)
|
|
55
57
|
|
|
@@ -58,18 +60,6 @@ def download_nf_jars(pkg_root: Path):
|
|
|
58
60
|
|
|
59
61
|
|
|
60
62
|
def ensure_nf_dependencies(pkg_root: Path, *, force_redownload: bool = False):
|
|
61
|
-
try:
|
|
62
|
-
subprocess.run(["java", "--version"], check=True, capture_output=True)
|
|
63
|
-
except (subprocess.CalledProcessError, FileNotFoundError) as e:
|
|
64
|
-
click.secho(
|
|
65
|
-
dedent("""\
|
|
66
|
-
Java is not installed - this is a requirement to run Nextflow.
|
|
67
|
-
Please install Java and try again.
|
|
68
|
-
"""),
|
|
69
|
-
fg="red",
|
|
70
|
-
)
|
|
71
|
-
raise click.exceptions.Exit(1) from e
|
|
72
|
-
|
|
73
63
|
nf_executable = pkg_root / ".latch" / "bin" / "nextflow"
|
|
74
64
|
nf_jars = pkg_root / ".latch" / ".nextflow"
|
|
75
65
|
|
|
@@ -80,7 +70,7 @@ def ensure_nf_dependencies(pkg_root: Path, *, force_redownload: bool = False):
|
|
|
80
70
|
|
|
81
71
|
if not nf_executable.exists():
|
|
82
72
|
res = tinyrequests.get(
|
|
83
|
-
"https://latch-public.s3.us-west-2.amazonaws.com/nextflow"
|
|
73
|
+
"https://latch-public.s3.us-west-2.amazonaws.com/nextflow-v2/nextflow"
|
|
84
74
|
)
|
|
85
75
|
nf_executable.parent.mkdir(parents=True, exist_ok=True)
|
|
86
76
|
|
|
@@ -7,7 +7,7 @@ from typing import Any, List, Optional, Tuple
|
|
|
7
7
|
import click
|
|
8
8
|
|
|
9
9
|
import latch.types.metadata as metadata
|
|
10
|
-
from latch.types.directory import LatchDir
|
|
10
|
+
from latch.types.directory import LatchDir, LatchOutputDir
|
|
11
11
|
from latch.types.file import LatchFile
|
|
12
12
|
from latch_cli.snakemake.config.utils import get_preamble, type_repr
|
|
13
13
|
from latch_cli.snakemake.utils import reindent
|
|
@@ -176,6 +176,16 @@ def generate_nextflow_workflow(
|
|
|
176
176
|
if param.default is not None:
|
|
177
177
|
if isinstance(param.default, Enum):
|
|
178
178
|
defaults.append((sig, param.default))
|
|
179
|
+
elif param.type in {LatchDir, LatchFile}:
|
|
180
|
+
defaults.append((
|
|
181
|
+
sig,
|
|
182
|
+
f"{param.type.__name__}('{param.default._raw_remote_path}')",
|
|
183
|
+
))
|
|
184
|
+
elif param.type is LatchOutputDir:
|
|
185
|
+
defaults.append((
|
|
186
|
+
sig,
|
|
187
|
+
f"LatchOutputDir('{param.default._raw_remote_path}')",
|
|
188
|
+
))
|
|
179
189
|
else:
|
|
180
190
|
defaults.append((sig, repr(param.default)))
|
|
181
191
|
else:
|
|
@@ -195,7 +205,7 @@ def generate_nextflow_workflow(
|
|
|
195
205
|
workflow_func_name=identifier_from_str(workflow_name),
|
|
196
206
|
nf_script=nf_script.resolve().relative_to(pkg_root.resolve()),
|
|
197
207
|
param_signature_with_defaults=", ".join(
|
|
198
|
-
no_defaults + [f"{name}={val}" for name, val in defaults]
|
|
208
|
+
no_defaults + [f"{name} = {val}" for name, val in defaults]
|
|
199
209
|
),
|
|
200
210
|
param_signature=", ".join(no_defaults + [name for name, _ in defaults]),
|
|
201
211
|
param_args=", ".join(
|
|
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
|
{latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/__pycache__/__init__.cpython-310.pyc
RENAMED
|
File without changes
|
{latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/__pycache__/init.cpython-310.pyc
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/assemble_and_sort/__init__.py
RENAMED
|
File without changes
|
{latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/assemble_and_sort/assemble.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/example_conda/environment.yaml
RENAMED
|
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
|
{latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/example_snakemake/Dockerfile
RENAMED
|
File without changes
|
|
File without changes
|
{latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/example_snakemake/config.yaml
RENAMED
|
File without changes
|
{latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/example_snakemake/environment.yaml
RENAMED
|
File without changes
|
{latch-2.41.3.dev2 → latch-2.41.3.dev4}/latch_cli/services/init/example_snakemake/latch_metadata.py
RENAMED
|
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
|