Plotting module
plot_matched_item_types()
Plot reconciled item types
This will make a count table of item types, and plot it, for a defined entity type (data_type), it will take in the reconciled table itself, from where it will extract the counts, a summary table from where the totals can be acquired, the entity type being analysed and an axis on a matplotlib figure.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
reconciled_table |
DataFrame
|
The table containing the reconciled items. |
required |
summary_table |
DataFrame
|
A summary table created by summarize_histology() |
required |
data_type |
str
|
The data type being analysed, "cells", "organs" or "tissues". |
required |
ax |
Axes
|
A matplotlib figure axis to plot the final figure. |
required |
Returns:
Type | Description |
---|---|
matplotlib.Figure: A bar plot for the item type counts. |
Source code in wikidata_panglaodb/plotting.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
|
plot_gene_violin()
Make a violin plot for gene data
Plots the distribution of the number of statements for reconciled gene data.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data |
DataFrame
|
Gene data. |
required |
file_to |
str
|
Path where to save the final image. |
required |
Source code in wikidata_panglaodb/plotting.py
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
|