Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
johnne committed Oct 6, 2021
1 parent cab1aad commit 8518508
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/coidb/scripts/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@ def filter(sm):
bin_taxa.set_index("BIN", inplace=True)
bin_taxa = bin_taxa.to_dict()["tax"]
bin_species = {}
for key in tqdm(bin_taxa.keys(),
desc="Extracting species names for BINs",
unit=" bins", ):
value = bin_taxa[key]
sp_name = extract_species_name(value)
bin_species[key] = sp_name
for key in tqdm(bin_taxa.keys(),
desc="Extracting species names for BINs",
unit=" bins", ):
value = bin_taxa[key]
sp_name = extract_species_name(value)
bin_species[key] = sp_name
# Update the BOLD BIN ids in the species column to species names
df.species = df.species.map(bin_species).fillna(df.species)
# Merge in order to get the intersection
Expand Down

0 comments on commit 8518508

Please sign in to comment.