Skip to content

Commit

Permalink
fix remaining deprecated args
Browse files Browse the repository at this point in the history
  • Loading branch information
jpjarnoux committed Jun 11, 2024
1 parent edb09e6 commit ed629cf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ppanggolin/cluster/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ def read_clustering(pangenome: Pangenome, families_tsv_file: Path, infer_singlet
:param disable_bar: Allow to disable progress bar
"""
check_pangenome_former_clustering(pangenome, force)
check_pangenome_info(pangenome, need_annotations=True, need_gene_sequences=write_sequences, disable_bar=disable_bar)
check_pangenome_info(pangenome, need_annotations=True, need_gene_sequences=True, disable_bar=disable_bar)

logging.getLogger("PPanGGOLiN").info(f"Reading {families_tsv_file.name} the gene families file ...")
filesize = os.stat(families_tsv_file).st_size
Expand Down Expand Up @@ -455,8 +455,7 @@ def read_clustering(pangenome: Pangenome, families_tsv_file: Path, infer_singlet
pangenome.status["genesClustered"] = "Computed"
if frag: # if there was fragment information in the file.
pangenome.status["defragmented"] = "Computed"
if write_sequences:
pangenome.status["geneFamilySequences"] = "Computed"
pangenome.status["geneFamilySequences"] = "Computed"
pangenome.parameters["cluster"] = {}
pangenome.parameters["cluster"]["# read_clustering_from_file"] = True
pangenome.parameters["cluster"]["infer_singletons"] = infer_singleton
Expand Down

0 comments on commit ed629cf

Please sign in to comment.