Comments (5)
There are two types of document in the solr index, entity-oriented and association-oriented. The former uses 'category', the latter '{subject,object}_category'. The counts for the latter should be accurate. the former may only be implemented for searching a subset of types, @kshefchek ?
from ontobio.
Looks good, thanks.
from ontobio.
I get an error when trying to replicate:
"msg":"undefined field: "category"",
I don't believe this is in the monarch solr schema, which solr server are you using?
from ontobio.
@kshefchek I'm using version 0.2.11 of ontobio.
Chris' suggestion seems to be correct:
results = GolrAssociationQuery(
rows=0,
facet_fields=['subject_category', 'object_category']
).exec()
facet_counts = results['facet_counts']
return jsonify(facet_counts)
Which produces:
{
"object_category": {
"anatomy": 1325778,
"biological process": 870753,
"case": 29237,
"disease": 438822,
"family": 22759,
"gene": 13382523,
"genotype": 1239754,
"model": 24848,
"pathway": 300028,
"phenotype": 8589086,
"variant": 7487546
},
"subject_category": {
"case": 21592,
"disease": 273984,
"gene": 8908453,
"genotype": 1471295,
"model": 681489,
"pathway": 1928772,
"publication": 13326444,
"variant": 7099105
}
}
from ontobio.
from ontobio.
Related Issues (20)
- Changes to rdfgen/gocamgen for handling new date fields
- What does this repo do? Please improve the readme
- GAF evidence code to ECO conversion: always use gaf-eco-mapping.txt PURL
- Unknown GAF qualifier/relation breaks parser HOT 1
- get_minimal_subgraph gives "RecursionError: maximum recursion depth exceeded"
- ModuleNotFoundError: No module named ‘ontobio.graph_io'
- Emit creation-date on Evidence individuals HOT 1
- error in gocamgen HOT 1
- Obsolete GO term with no replacement breaks with/from validation HOT 2
- pyparsing upgrade causes AttributeError HOT 1
- ogr bug? HOT 1
- loading local json files fails HOT 1
- ontobio output to obograph?
- Cannot render subgraphs using GraphRenderer
- GO-CAM translation should convert 'transports or maintains localization of' and other relations HOT 3
- "category" field in Token should be "categories"
- Converting GPAD to GAF can result in blank evidence codes if no ECO-to-GAF mapping exists HOT 2
- Use gaf-eco-mapping-derived.txt in EcoMap in GpadParser and GafWriter HOT 2
- EcoMap should parse eco.owl as ontology HOT 1
- enrichment_test() function not returning anything
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ontobio.