Skip to content

Commit

Permalink
fixed lineage_id and rank format
Browse files Browse the repository at this point in the history
  • Loading branch information
farchaab committed Apr 5, 2024
1 parent ada0381 commit 6fad495
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assembly_finder/bin/select_assemblies.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ def read_json(file):
lineage_df["lineage_id"] = lineage_df[ranks_id].apply(
lambda x: ",".join(x.dropna().astype(str)), axis=1
)

lineage_df["lineage_id"] = lineage_df["lineage_id"].str.replace(".0", "")
lineage_df["rank"] = lineage_df["rank"].str.lower()
# Merge lineage and genome summary
df = summary_df.merge(lineage_df, on="tax_id")
df = df.replace(np.nan, "na")
Expand Down

0 comments on commit 6fad495

Please sign in to comment.