dump
ensembl.io.genomio.genome_stats.dump
¶
Generates a JSON representation of the genome stats (assembly and annotation) from a core database.
StatsGenerator
dataclass
¶
Interface to extract genome stats from a core database.
Source code in src/python/ensembl/io/genomio/genome_stats/dump.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 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 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 |
|
session
instance-attribute
¶
get_annotation_stats()
¶
Returns a dict of stats about the coordinate systems (number of biotypes, etc.).
Source code in src/python/ensembl/io/genomio/genome_stats/dump.py
85 86 87 88 89 90 91 |
|
get_assembly_stats()
¶
Returns a dict of stats about the assembly.
Source code in src/python/ensembl/io/genomio/genome_stats/dump.py
40 41 42 43 44 45 46 47 48 49 |
|
get_attrib_counts(code)
¶
Returns a dict of count for each value counted with the attrib_type code provided.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
code
|
str
|
Ensembl database attrib_type code. |
required |
Source code in src/python/ensembl/io/genomio/genome_stats/dump.py
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
|
get_biotypes(table)
¶
Returns a dict of stats about the feature biotypes.
Source code in src/python/ensembl/io/genomio/genome_stats/dump.py
93 94 95 96 97 98 99 100 101 |
|
get_feature_stats(table)
¶
Returns a dict of stats about a given feature.
Source code in src/python/ensembl/io/genomio/genome_stats/dump.py
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 |
|
get_genome_stats()
¶
Returns a dict of stats about the assembly and annotation.
Source code in src/python/ensembl/io/genomio/genome_stats/dump.py
126 127 128 129 130 131 132 |
|
dump_genome_stats(url)
¶
Returns JSON object containing the genome stats (assembly and annotation) of the given core database.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
url
|
StrURL
|
Core database URL. |
required |
Source code in src/python/ensembl/io/genomio/genome_stats/dump.py
135 136 137 138 139 140 141 142 143 144 145 146 |
|
main()
¶
Main script entry-point.
Source code in src/python/ensembl/io/genomio/genome_stats/dump.py
149 150 151 152 153 154 155 156 157 158 159 |
|