Skip to content

Commit a2a0fb3

Browse files
authored
Merge pull request #1085 from griffithlab/fix-mygene-info
Update mygene.info call to use v3 of the api
2 parents 81970ee + 66ad158 commit a2a0fb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/app/models/my_gene_info.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ def self.make_request(gene_id)
1616
end
1717

1818
def self.my_gene_info_url(entrez_id)
19-
"http://mygene.info/v2/gene/#{entrez_id}?fields=name,symbol,alias,interpro,pathway,summary,genomic_pos_hg19,uniprot"
19+
"https://mygene.info/v3/gene/#{entrez_id}?fields=name,symbol,alias,interpro,pathway,summary,genomic_pos_hg19,uniprot"
2020
end
2121

2222
def self.cache_key(gene_id)
2323
"mygene_info_#{gene_id}"
2424
end
25-
end
25+
end

0 commit comments

Comments
 (0)