Skip to content

Commit

Permalink
Merge pull request MOZI-AI#18 from tanksha/master
Browse files Browse the repository at this point in the history
Adds latest csv source
  • Loading branch information
tanksha authored May 4, 2020
2 parents 77cffb7 + 30e7eca commit 861241b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion go-plus.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ def inheritLink(term1 , term2, parent_chebis=[]):

source = "https://bioportal.bioontology.org/ontologies/GO-PLUS"
source_csv = "https://gitlab.com/opencog-bio/pln_mozi/blob/master/raw_data/GO-PLUS.csv.gz"
source_csv_latest = "http://data.bioontology.org/ontologies/GO-PLUS/download?apikey=8b5b7825-538d-40e0-9e9e-5ab9274a9aeb&download_format=csv"

if not os.path.exists("raw_data/GO-PLUS.csv.gz"):
dataset = wget.download(source_csv, "raw_data")
dataset = wget.download(source_csv_latest, "raw_data")
df = pd.read_csv("raw_data/GO-PLUS.csv.gz", dtype=str)
# Parent CHEBI's should be a ConceptNode, not a MoleculeNode
parents = df["Parents"]
Expand Down

0 comments on commit 861241b

Please sign in to comment.