@@ -33,6 +33,36 @@ def __get_completeness_score(df):
33
33
def __get_metadata_version (df ):
34
34
return df ['metadata_version' ] .value_counts ().to_dict ()
35
35
36
+ def __get_contributor (df ):
37
+ return df ['contributor' ].value_counts ().to_dict ()
38
+
39
+ def __get_affilation (df ):
40
+ return df ['affiliation' ].value_counts ().to_dict ()
41
+
42
+ def __get_award_number (df ):
43
+ return df ['award_number' ].value_counts ().to_dict ()
44
+
45
+ def __get_species (df ):
46
+ return df ['species' ].value_counts ().to_dict ()
47
+
48
+ def __ get_cnbtaxonomy (df ):
49
+ return df ['cnbtaxonomy' ].value_counts ().to_dict ()
50
+
51
+ def __get_samplelocalid (df ):
52
+ return df ['samplelocalid' ].value_counts ().to_dict ()
53
+
54
+ def __get_genotype (df ):
55
+ return df ['genotype' ].value_counts ().to_dict ()
56
+
57
+ def __get_generalmodality (df ):
58
+ return df ['generalmodality' ].value_counts ().to_dict ()
59
+
60
+ def __get_technique (df ):
61
+ return df ['technique' ].value_counts ().to_dict ()
62
+
63
+ def __get_locations (df ):
64
+ return df ['locations' ].value_counts ().to_dict ()
65
+
36
66
def report ():
37
67
# Get today's date
38
68
tdate = date .today ()
@@ -47,5 +77,15 @@ def report():
47
77
report ['number_of_datasets' ] = __get_number_of_datasets (df )
48
78
report ['completeness_score' ] = __get_completeness_score (df )
49
79
report ['metadata_version' ] = __get_metadata_version (df )
50
-
80
+ report ['contributor' ] = __get_contributor (df )
81
+ report ['affiliation' ] = __get_affilation (df )
82
+ report ['award_number' ] = __get_award_number (df )
83
+ report ['species' ] = __get_species (df )
84
+ report ['cnbtaxonomy' ] = __ get_cnbtaxonomy (df )
85
+ report ['samplelocalid' ] = __get_samplelocalid (df )
86
+ report ['genotype' ] = __get_genotype (df )
87
+ report ['generalmodality' ] = __get_generalmodality (df )
88
+ report ['technique' ] = __get_technique (df )
89
+ report ['locations' ] = __get_locations (df )
90
+
51
91
return report
0 commit comments