@@ -54,10 +54,12 @@ def __get_contributor(df):
54
54
def __get_affilation (df ):
55
55
return df ["affiliation" ].value_counts ().to_dict ()
56
56
57
+ def __get_awards (df ):
58
+ return df ["award_number" ].unique ()
57
59
58
- def __get_award_numbers (df ):
59
- return df ["award_number" ].value_counts ().to_dict ()
60
60
61
+ def __get_award_number (df ):
62
+ return df ["award_number" ].value_counts ().to_dict ()
61
63
62
64
def __get_species (df ):
63
65
return df ["species" ].value_counts ().to_dict ()
@@ -66,19 +68,22 @@ def __get_species(df):
66
68
def __get_cnbtaxonomy (df ):
67
69
return df ["cnbtaxonomy" ].value_counts ().to_dict ()
68
70
71
+ def __get_genotypes (df ):
72
+ """
73
+ Write documentation here.
74
+ """
75
+ return df ["genotype" ].unique ()
69
76
70
- def __get_samplelocalid (df ):
71
- return df ["samplelocalid" ].value_counts ().to_dict ()
72
-
73
-
74
- def __get_genotype (df ):
75
- return df ["genotype" ].value_counts ().to_dict ()
77
+ def __get_genotype_frequency (df ):
78
+ """
79
+ Write documentation here.
80
+ """
81
+ return df ["genotypes" ].value_counts ().to_dict ()
76
82
77
83
78
84
def __get_generalmodality (df ):
79
85
return df ["generalmodality" ].value_counts ().to_dict ()
80
86
81
-
82
87
def __get_techniques (df ):
83
88
"""
84
89
Write documentation here.
@@ -92,13 +97,36 @@ def techniques_frequency(df):
92
97
"""
93
98
return df ["technique" ].value_counts ().to_dict ()
94
99
95
-
96
100
def __get_locations (df ):
97
101
return df ["locations" ].value_counts ().to_dict ()
98
102
103
+ def __get_contributors (df ):
104
+ """
105
+ This returns an array of contributor names from the contributorname column.
106
+ """
107
+ return df ["contributorname" ].unique ()
108
+
109
+
110
+ def __get_list_of_projects (df ):
111
+ """
112
+ Get the list of names for unique projects
113
+
114
+ Input parameter: dataframe
115
+ Output: list of projects
116
+ """
117
+
118
+ return df ["project" ].unique ().to_dict ()
119
+
99
120
100
- technique_frequency (df )
121
+ def __get_number_of_projects (df ):
122
+ """
123
+ Get the number of unique projects
124
+
125
+ Input parameter: dataframe
126
+ Output: number of projects
127
+ """
101
128
129
+ return len (df ["project" ].unique ())
102
130
103
131
def report ():
104
132
# Get today's date
0 commit comments