[go: nahoru, domu]

Skip to content

Commit

Permalink
Reactome version update (#148)
Browse files Browse the repository at this point in the history
* get release version of reactome

* fixed spacing issue
  • Loading branch information
jal347 committed Apr 18, 2024
1 parent e8250f5 commit 03c90fa
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/hub/dataload/sources/reactome/dump.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
import datetime
import os
import sys
import time

import biothings
import requests

import os, sys, time, datetime
import config

import biothings, config
biothings.config_for_app(config)

from config import DATA_ARCHIVE_ROOT
from biothings.hub.dataload.dumper import LastModifiedHTTPDumper
from biothings.utils.common import unzipall

from config import DATA_ARCHIVE_ROOT


class ReactomeDumper(LastModifiedHTTPDumper):

Expand All @@ -18,3 +24,9 @@ class ReactomeDumper(LastModifiedHTTPDumper):
SRC_URLS = ["https://reactome.org/download/current/NCBI2Reactome_All_Levels.txt"]
SCHEDULE = "0 6 * * *"

def set_release(self):
self.release = str(
requests.get(
"https://reactome.org/ContentService/data/database/version"
).json()
)

0 comments on commit 03c90fa

Please sign in to comment.