Skip to content

Commit

Permalink
nextflow run name needs a random component
Browse files Browse the repository at this point in the history
  • Loading branch information
tcezard committed Jun 21, 2024
1 parent 3fb084e commit 7b61dd6
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

import os
from functools import lru_cache
from random import choice
from string import ascii_lowercase

import yaml
from ebi_eva_common_pyutils.command_utils import run_command_with_output
Expand Down Expand Up @@ -102,7 +104,8 @@ def run_release_for_species(taxonomy_id, release_assemblies, release_version, re
workflow_file_path = get_run_release_for_assembly_nextflow()
release_dir = get_assembly_release_folder(release_version, taxonomy_id, assembly_accession)
nextflow_config = get_nextflow_config()
run_name = f'release_{release_version}_{taxonomy_id}_{assembly_accession}'
random_string = ''.join(choice(ascii_lowercase) for i in range(4))
run_name = f'release_{release_version}_{taxonomy_id}_{assembly_accession}_{random_string}'.replace('.', '_')
workflow_command = ' '.join((
f"cd {release_dir} &&",
f"{cfg.query('executable', 'nextflow')} run {workflow_file_path}",
Expand Down

0 comments on commit 7b61dd6

Please sign in to comment.