Skip to content

Commit

Permalink
Use local copy of gwascatalog.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
tsujigiri committed Feb 14, 2024
1 parent ec8691e commit f1be677
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/workers/genome_gov.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class GenomeGov
def perform
@known_snps = Snp.pluck(:name).to_set

gwas_catalog = open('http://www.genome.gov/admin/gwascatalog.txt') do |f|
gwas_catalog = File.open(Rails.root.join('lib/gwascatalog.txt')) do |f|
f.readlines
end
gwas_catalog.shift # remove CSV header
Expand Down
2 changes: 1 addition & 1 deletion test/unit/genome_gov_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class GenomeGovTest < ActiveSupport::TestCase
paper = GenomeGovPaper.last
assert paper.snps.include?(@snp)
assert_equal 2.0e-50, paper.pvalue
assert_equal 'pvalue description test', paper.pvalue_description
assert_equal '', paper.pvalue_description
assert_equal '[3.33-5.00] ', paper.confidence_interval
assert_equal 'http://www.ncbi.nlm.nih.gov/pubmed/23740775', paper.pubmed_link
assert_equal 'Xie G', paper.first_author
Expand Down

0 comments on commit f1be677

Please sign in to comment.