Skip to content

Commit

Permalink
add metadata sep in args dict of all output
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanMainguy committed Mar 11, 2024
1 parent 23afb59 commit df35cf0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ppanggolin/formats/writeFlatGenomes.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,9 @@ def write_flat_genome_files(pangenome: Pangenome, output: Path, table: bool = Fa
organism2args = defaultdict(lambda: {"output": output, "table": table, "gff": gff,
"proksee": proksee, "compress": compress})
for organism in organisms_list:
organism_args = {"genome_file": org_dict[organism.name]['path'] if org_dict else None}
organism_args = {"genome_file": org_dict[organism.name]['path'] if org_dict else None,
"metadata_sep": metadata_sep}

if proksee:
organism_args["module_to_colors"] = {module: module_to_colors[module] for module in organism.modules}

Expand All @@ -531,7 +533,6 @@ def write_flat_genome_files(pangenome: Pangenome, output: Path, table: bool = Fa
"CDS": "external"}
else:
organism_args["annotation_sources"] = {}
organism_args["metadata_sep"] = metadata_sep

if table:
organism_args.update({"need_regions": need_dict['need_rgp'],
Expand Down

0 comments on commit df35cf0

Please sign in to comment.