Skip to content

Commit

Permalink
Merge pull request #453 from tcezard/Fix_Release_port
Browse files Browse the repository at this point in the history
Fix release port
  • Loading branch information
tcezard committed Jun 13, 2024
2 parents a593333 + f855371 commit 95d2b5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def run_release_for_assembly(private_config_xml_file, profile, taxonomy_id, asse
taxonomy_id, assembly_accession,
release_species_inventory_table,
release_version, assembly_release_folder)
release_command = 'java -Xmx{0}g -jar {1} --spring.config.location=file:{2} -Dspring.data.mongodb.port={3}'\
release_command = 'java -Xmx{0}g -jar {1} --spring.config.location=file:{2} --spring.data.mongodb.port={3}'\
.format(memory, release_jar_path, release_properties_file, mongo_port)
run_command_with_output("Running release pipeline for assembly: " + assembly_accession, release_command)
exit_code = 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,11 @@ 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}'
workflow_command = ' '.join((
f"cd {release_dir} &&",
f"{cfg.query('executable', 'nextflow')} run {workflow_file_path}",
f"-name {run_name}",
f"-params-file {nextflow_params}",
f'-c {nextflow_config}' if nextflow_config else '',
'-resume' if resume else '',
Expand Down Expand Up @@ -147,7 +149,7 @@ def main():
argparse.add_argument("--taxonomy_id", help="ex: 9913")
argparse.add_argument("--assembly_accessions", nargs='+', help="ex: GCA_000003055.3")
argparse.add_argument("--release_version")
argparse.add_argument("--resume", default=False,
argparse.add_argument("--resume", default=False, action='store_true',
help="Resume the nextflow pipeline for the specified taxonomy and assembly")
args = argparse.parse_args()
load_config()
Expand Down

0 comments on commit 95d2b5b

Please sign in to comment.