bio-phyta 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -205,7 +205,7 @@ Before you install RVM, make sure you have git and curl installed on your system
205
205
 
206
206
  RVM can be installed by calling:
207
207
 
208
- bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
208
+ bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
209
209
 
210
210
  This will install RVM to .rvm in your home folder and print several instructions specific to your platform on how to finish the installation. Please pay close attention to the "dependencies" section and look for the part where it says something like this:
211
211
 
@@ -275,7 +275,9 @@ The database does not have to be hosted on the system that is running PhyTA, but
275
275
 
276
276
  The correct installation procedure for MySQL varies widely among different platforms. For many systems (like Mac OS X) binaries can be obtained from the {official website}[http://www.mysql.com/downloads/mysql/]. In the following, the setup under Ubuntu 10.10 is explained.
277
277
 
278
- sudo apt-get install mysql-server
278
+ sudo apt-get install mysql-server libmysqlclient-dev
279
+
280
+ That should conclude the database setup under Ubuntu.
279
281
 
280
282
  On Mac OS X, you can install the MySQL preference pane and start the server from there. The MySQL binaries are at /usr/local/mysql/bin/. In order to be able to execute the following examples without having to prefix this path every time, you can add aliases to your bash configuration:
281
283
 
@@ -285,6 +287,7 @@ Now add the following lines at the end:
285
287
 
286
288
  alias mysql=/usr/local/mysql/bin/mysql
287
289
  alias mysqladmin=/usr/local/mysql/bin/mysqladmin
290
+ export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:/usr/local/mysql/lib/"
288
291
 
289
292
  Refer to the ReadMe file that comes with the MySQL installer if you are using tclsh instead of bash.
290
293
 
@@ -301,9 +304,11 @@ You can now start MySQL by typing
301
304
 
302
305
  First, you need to set up an empty database for the NCBI taxonomy data. This can be achieved by typing:
303
306
 
304
- mysql -u root -p password -e "CREATE DATABASE kingdom_assignment_taxonomy"
307
+ mysql -u root -ppassword -e "CREATE DATABASE kingdom_assignment_taxonomy"
308
+
309
+ In this example, substitute root for your MySQL username, password for your password and kingdom_assignment_taxonomy for the database name.
305
310
 
306
- In this example, substitute root for your MySQL username, password for your password and kingdom_assignment_taxonomy for the database name. Leave out the parameter -p if your database does not have a password.
311
+ Please note the lack of a space between the parameter p and the password. Leave this parameter out if your database does not have a password.
307
312
 
308
313
  After that, the program phyta-setup-taxonomy-db will help you set up the NCBI taxonomy database. Its command line options are the following.
309
314
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.2
1
+ 0.9.3
@@ -59,7 +59,15 @@ Dir.mktmpdir() do |dir|
59
59
 
60
60
  tax_dmp = 'taxdump.tar.gz'
61
61
  puts "Downloading #{tax_dmp}... "
62
- ftp.getbinaryfile(tax_dmp, tax_dmp)
62
+
63
+ begin
64
+ ftp.getbinaryfile(tax_dmp, tax_dmp)
65
+ rescue Net::FTPPermError => e
66
+ puts "Received #{e.message}, trying FTP passive mode"
67
+ ftp.passive = true
68
+ ftp.getbinaryfile(tax_dmp, tax_dmp)
69
+ end
70
+
63
71
  taxdump_md5 = ftp.gettextfile(tax_dmp + ".md5")
64
72
  #TODO validate checksum
65
73
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bio-phyta
3
3
  version: !ruby/object:Gem::Version
4
- hash: 63
4
+ hash: 61
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 2
10
- version: 0.9.2
9
+ - 3
10
+ version: 0.9.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Philipp Comans
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-11-30 00:00:00 Z
18
+ date: 2011-12-02 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  requirement: &id001 !ruby/object:Gem::Requirement