rbbt-sources 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,7 @@ module DbSNP
9
9
 
10
10
  URL = "ftp://ftp.ncbi.nlm.nih.gov/snp/organisms/human_9606/VCF/common_all.vcf.gz"
11
11
 
12
- DbSNP.claim DbSNP.mutations, :proc do
12
+ DbSNP.claim DbSNP.mutations_ncbi, :proc do
13
13
  tsv = TSV.setup({}, :key_field => "RS ID", :fields => ["Genomic Mutation"], :type => :single)
14
14
  file = Open.open(URL, :nocache => true)
15
15
  while line = file.gets do
@@ -28,8 +28,9 @@ module DbSNP
28
28
  tsv.to_s
29
29
  end
30
30
 
31
- DbSNP.claim DbSNP.mutations_gatk, :proc do
31
+ DbSNP.claim DbSNP.mutations, :proc do
32
32
  ftp = Net::FTP.new('ftp.broadinstitute.org')
33
+ ftp.passive = true
33
34
  ftp.login('gsapubftp-anonymous', 'devnull@nomail.org')
34
35
  ftp.chdir('/bundle/2.3/hg19')
35
36
 
@@ -23,6 +23,7 @@ module Ensembl
23
23
  release = Ensembl.releases[build]
24
24
  name = Organism.scientific_name(organism)
25
25
  ftp = Net::FTP.new(Ensembl::FTP::SERVER)
26
+ ftp.passive = true
26
27
  ftp.login
27
28
  ftp.chdir(File.join('pub', release, 'mysql'))
28
29
  file = ftp.list(name.downcase.gsub(" ",'_') + "_core_*").collect{|l| l.split(" ").last}.last
@@ -448,6 +448,7 @@ rule /^chromosome_.*/ do |t|
448
448
  release = Ensembl.releases[archive]
449
449
 
450
450
  ftp = Net::FTP.new("ftp.ensembl.org")
451
+ ftp.passive = true
451
452
  ftp.login
452
453
  ftp.chdir("pub/#{ release }/fasta/")
453
454
  ftp.chdir($scientific_name.downcase.sub(" ",'_'))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-sources
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-07 00:00:00.000000000 Z
12
+ date: 2013-01-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rbbt-util