Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into projection
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanMainguy committed Sep 19, 2023
2 parents 5c50430 + c2e8ef7 commit 08a5aae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion ppanggolin/formats/writeFlat.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ def write_stats(output: Path, soft_core: float = 0.95, dup_margin: float = 0.05,
nb_gene_core += 1
completeness = "NA"
if len(single_copy_markers) > 0:
completeness = round(((org.number_of_families() + len(single_copy_markers)) /
completeness = round((len(set(org.families) & single_copy_markers) /
len(single_copy_markers)) * 100, 2)
outfile.write("\t".join(map(str, [org.name,
org.number_of_families(),
Expand Down
1 change: 0 additions & 1 deletion ppanggolin/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ def cmd_line() -> argparse.Namespace:

# First parse args to check that nothing is missing or not expected in cli and throw help when requested
args = parser.parse_args()

if hasattr(args, "config"):
# the two subcommand with no common args does not have config parameter. so we can skip this part for them.
args = manage_cli_and_config_args(args.subcommand, args.config, SUBCOMMAND_TO_SUBPARSER)
Expand Down

0 comments on commit 08a5aae

Please sign in to comment.