diff --git a/nmdc_ontology/report_instantiated_traids.py b/nmdc_ontology/report_instantiated_traids.py index 5b6512e..1e1ea2f 100644 --- a/nmdc_ontology/report_instantiated_traids.py +++ b/nmdc_ontology/report_instantiated_traids.py @@ -57,7 +57,7 @@ def main(api_url, output_file, counts_output_file): counts_df = pd.DataFrame(value_counts.items(), columns=['Value', 'Count']) # Split the 'Value' column into two parts before and after the colon - counts_df[['Before Colon', 'After Colon']] = counts_df['Value'].str.split(':', n=1, expand=True) + counts_df[['ontology', 'local_id']] = counts_df['Value'].str.split(':', n=1, expand=True) # Save counts DataFrame to a TSV file counts_df.to_csv(counts_output_file, sep="\t", index=False) diff --git a/triad_term_counts.tsv b/triad_term_counts.tsv index b49a4b1..08a965e 100644 --- a/triad_term_counts.tsv +++ b/triad_term_counts.tsv @@ -1,4 +1,4 @@ -Value Count Before Colon After Colon +Value Count ontology local_id ENVO:01000253 1040 ENVO 01000253 ENVO:01000621 17 ENVO 01000621 ENVO:01000017 52 ENVO 01000017