Skip to content

Commit

Permalink
go source updated mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
jal347 authored and everaldorodrigo committed Sep 9, 2024
1 parent c697583 commit b60313c
Showing 1 changed file with 32 additions and 39 deletions.
71 changes: 32 additions & 39 deletions src/hub/dataload/sources/entrez/go_upload.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from .parser import Gene2GOParser
import biothings.hub.dataload.uploader as uploader

from .parser import Gene2GOParser


class EntrezGOUploader(uploader.MergerSourceUploader):

name = "entrez_go"
Expand All @@ -26,22 +28,19 @@ def get_mapping(klass):
},
"id": {
"type": "keyword",
"normalizer" : "keyword_lowercase_normalizer",
'copy_to': ['all'],
"normalizer": "keyword_lowercase_normalizer",
"copy_to": ["all"],
},
"evidence": {
"type": "text",
"index": False
},
"pubmed": {
"type": "long",
"index": False
"type": "keyword",
"normalizer": "keyword_lowercase_normalizer",
},
"pubmed": {"type": "long", "index": False},
"category": {
"type": "text",
"index": False
}
}
"type": "keyword",
"normalizer": "keyword_lowercase_normalizer",
},
},
},
"CC": {
"dynamic": False,
Expand All @@ -51,22 +50,19 @@ def get_mapping(klass):
},
"id": {
"type": "keyword",
"normalizer" : "keyword_lowercase_normalizer",
'copy_to': ['all'],
"normalizer": "keyword_lowercase_normalizer",
"copy_to": ["all"],
},
"evidence": {
"type": "text",
"index": False
},
"pubmed": {
"type": "long",
"index": False
"type": "keyword",
"normalizer": "keyword_lowercase_normalizer",
},
"pubmed": {"type": "long", "index": False},
"category": {
"type": "text",
"index": False
}
}
"type": "keyword",
"normalizer": "keyword_lowercase_normalizer",
},
},
},
"BP": {
"dynamic": False,
Expand All @@ -76,24 +72,21 @@ def get_mapping(klass):
},
"id": {
"type": "keyword",
"normalizer" : "keyword_lowercase_normalizer",
'copy_to': ['all'],
"normalizer": "keyword_lowercase_normalizer",
"copy_to": ["all"],
},
"evidence": {
"type": "text",
"index": False
},
"pubmed": {
"type": "long",
"index": False
"type": "keyword",
"normalizer": "keyword_lowercase_normalizer",
},
"pubmed": {"type": "long", "index": False},
"category": {
"type": "text",
"index": False
}
}
}
}
"type": "keyword",
"normalizer": "keyword_lowercase_normalizer",
},
},
},
},
}
}

Expand Down

0 comments on commit b60313c

Please sign in to comment.