Skip to content

Commit

Permalink
minor reword
Browse files Browse the repository at this point in the history
  • Loading branch information
jrr-cpt authored Jun 28, 2021
1 parent f5b98d1 commit 40e2c1f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cacao_taxon_pie.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

"""
NOTE:
This file consist of a modified jupyter notebook converted to a script to generate the designated figure
This file is derived from a jupyter notebook and was converted to a script to generate the designated figure.
"""

### Bring in CACACO gpad
Expand Down Expand Up @@ -92,7 +92,7 @@ def calc_the_diff(df1, df2):
return df


### Setup data for the pie chart
### Set up data for the pie chart

### Subset dataframe based on domains
Euk = fetch_domain_annotations(expanded_parsed, "Eukaryota")
Expand Down Expand Up @@ -125,7 +125,7 @@ def calc_the_diff(df1, df2):
Arc["phylum"].groupby(Arc["domain"]).value_counts().rename("counts").reset_index()
) # take top 2

## Calculate the difference of the total amount of the domain, and the subset top N rank
## Calculate the difference between the total number in the domain and the subset top N rank
euk_diff = len(Euk) - (
int(euk_phylum["counts"][:1].values)
+ int(euk_phylum["counts"][1:2].values)
Expand Down

0 comments on commit 40e2c1f

Please sign in to comment.