@@ -774,33 +774,33 @@ def __get_species(df):
774
774
return df ["species" ].value_counts ().to_dict ()
775
775
776
776
777
- def __get_cnbtaxonomy (df ):
777
+ def __get_ncbitaxonomy (df ):
778
778
"""
779
- Get a dictionary containing the count of occurrences of each unique CNB taxonomy.
779
+ Get a dictionary containing the count of occurrences of each unique NCBI taxonomy.
780
780
781
781
This function takes a pandas DataFrame `df` as input and counts the occurrences of each
782
- unique value in the "cnbtaxonomy " column. The result is returned as a dictionary, where
783
- the keys represent unique CNB taxonomies, and the values represent the count of occurrences
782
+ unique value in the "ncbitaxonomy " column. The result is returned as a dictionary, where
783
+ the keys represent unique NCBI taxonomies, and the values represent the count of occurrences
784
784
for each taxonomy.
785
785
786
786
Parameters:
787
787
-----------
788
788
df : pandas DataFrame
789
- The input DataFrame containing a column named "cnbtaxonomy " with CNB taxonomy information.
789
+ The input DataFrame containing a column named "ncbitaxonomy " with CNB taxonomy information.
790
790
791
791
Returns:
792
792
--------
793
793
dict
794
- A dictionary where the keys represent unique CNB taxonomies, and the values represent
794
+ A dictionary where the keys represent unique NCBI taxonomies, and the values represent
795
795
the count of occurrences for each taxonomy.
796
796
797
797
Note:
798
798
-----
799
- The input DataFrame `df` should have a column named "cnbtaxonomy " containing categorical data
800
- representing different CNB taxonomies. The function counts the occurrences of each unique CNB taxonomy
799
+ The input DataFrame `df` should have a column named "ncbitaxonomy " containing categorical data
800
+ representing different NCBI taxonomies. The function counts the occurrences of each unique CNB taxonomy
801
801
and returns the result as a dictionary.
802
802
"""
803
- return df ["cnbtaxonomy " ].value_counts ().to_dict ()
803
+ return df ["ncbitaxonomy " ].value_counts ().to_dict ()
804
804
805
805
806
806
def __get_genotypes (df ):
@@ -1326,7 +1326,7 @@ def report():
1326
1326
report ["affiliation" ] = __get_affilation (df )
1327
1327
report ["award_number" ] = __get_award_number (df )
1328
1328
report ["species" ] = __get_species (df )
1329
- report ["cnbtaxonomy " ] = __get_cnbtaxonomy (df )
1329
+ report ["ncbitaxonomy " ] = __get_ncbitaxonomy (df )
1330
1330
report ["samplelocalid" ] = __get_samplelocalid (df )
1331
1331
report ["genotype" ] = __get_genotype (df )
1332
1332
report ["generalmodality" ] = __get_generalmodality (df )
0 commit comments