aai 0.2.0 → 0.2.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 14d742b51fba76ccd8b279d36ee672e2ee8cb329
4
- data.tar.gz: 2bdc68dc8d289e3d9770373f856d9e05d6c1a0b0
3
+ metadata.gz: c9a07b9c733b60359634489b11fbe34e26890afa
4
+ data.tar.gz: 74c4793c46883e92fab311837cf8b9ffd74b116d
5
5
  SHA512:
6
- metadata.gz: 0c36035231ab8a7a8608d545b617d2f23009479b625efd9385076f229e18b086dcddaff9eb9b49fa9431e9236c377442a1562861d9352317cfc8cc218160d09a
7
- data.tar.gz: fc78b1e0a2e5e83a0841c8cb31706095e6b55a85dfd76ddb892f2f3873335dce664a91ffe410cc1b13c1de2521b0a034b15a8f75620fa0092fdd95af8b2110e2
6
+ metadata.gz: bdb1b9a67c88b837052e423beb3ecf89454633f48192c8ae3660dbcaf3f16e6ca9cb51e909d422fd644fe2dc28fd684b9118506395d26c51bda4a87dbea25fbb
7
+ data.tar.gz: 615dc08d06a337722696f7035d8d29126ef1fc95d38394131a5391029c83c57501bb19e22ce25b517bcb242da8c5dca35475817423d2226b4cd1cec14b531425
data/lib/aai.rb CHANGED
@@ -48,12 +48,7 @@ module Aai
48
48
  end
49
49
 
50
50
  title = "Running blast jobs"
51
- cmd = "parallel --link blastp -outfmt 6 " +
52
- "-query {1} -db {2} " +
53
- "-out {3} -evalue 1e-3 " +
54
- "::: #{first_files.join " "} ::: " +
55
- "#{second_files.join " "} ::: " +
56
- "#{outf_names.join " "}"
51
+ cmd = %Q{parallel --xapply "blastp -outfmt 6 -query {1} -db {2} -out {3} -evalue 1e-3" ::: #{first_files.join " "} ::: #{second_files.join " "} ::: #{outf_names.join " "}}
57
52
 
58
53
  Process.run_and_time_it! title, cmd
59
54
 
@@ -70,9 +65,7 @@ module Aai
70
65
  outfiles = fnames.map { |fname| fname + suffix }
71
66
 
72
67
  title = "Making blast databases"
73
- cmd = "parallel makeblastdb -in {} " +
74
- "-out {}#{BLAST_DB_SUFFIX} -dbtype prot " +
75
- "::: #{fnames.join " "}"
68
+ cmd = %Q{parallel "makeblastdb -in {} -out {}#{BLAST_DB_SUFFIX} -dbtype prot" ::: #{fnames.join " "}}
76
69
 
77
70
  Process.run_and_time_it! title, cmd
78
71
 
@@ -51,7 +51,8 @@ module Aai
51
51
  path = command? cmd
52
52
 
53
53
  AbortIf.abort_unless path,
54
- "MIssing #{cmd} command. Is it on your path?"
54
+ "Missing #{cmd} command. " +
55
+ "Is it executable and on your path?"
55
56
 
56
57
  path
57
58
  end
@@ -1,5 +1,5 @@
1
1
  module Aai
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  COPYRIGHT = "2017 Ryan Moore"
4
4
  CONTACT = "moorer@udel.edu"
5
5
  WEBSITE = "https://github.com/mooreryan/aai"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aai
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Moore