protk 1.2.6.pre4 → 1.2.6.pre5

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: f779db7583731b118880ba56e4c465b0a75856a3
4
- data.tar.gz: 459bfa1d39a6c8b11d6b04f4c2c30a0b85115f30
3
+ metadata.gz: 876bb41de9b07d9a9b08132e2d44439e6de0c990
4
+ data.tar.gz: 799b9dd4c2a8c3720e315a7ade0085a7f54f31f9
5
5
  SHA512:
6
- metadata.gz: 340df071b94a8658354e08d2c30a642cd1d715d2312b9e0eec7c67fd6be36a16ab77430cdf4160cb0365d53f747c3af7471168af39a0afdbc7c761801f853671
7
- data.tar.gz: 2e19a8b4ecd4af37077157f1eafbcb4d9dc7850b135e55853199ffd7637f417e264459fec0818fc298854d96afae96a53e2f0b5f2454e9b2c8898bdfd51612a1
6
+ metadata.gz: db8bf6c295925c649431ce25eccf10c55a15c4146f827d9ed9f55ad95f8ad50f3fc7aed04cf6d9a78d5311244e4ba7fd6e8954f068b50385f852a9b729c1e017
7
+ data.tar.gz: 312cd4aefc3380cd2311c41d0dac8dacf40d4f58a404fb6c86ed67e9454895f877ad7a465c55c8d3a721fd10e4a78b709975be3c530ed87502f9da4adbcfa35f
@@ -104,6 +104,12 @@ def cds_to_header_text(coding_sequence,transcript_id)
104
104
  "#{istart}|#{iend}"
105
105
  end
106
106
 
107
+ # Scaffold identifiers cant contain pipes
108
+ #
109
+ def sanitize_scaffold_idstring(raw_scaffold_string)
110
+ raw_scaffold_string.split("|")[0]
111
+ end
112
+
107
113
  def sequence_fasta_header(transcript_line,coding_sequences,scaffold)
108
114
 
109
115
  tmatch=transcript_line.match(/transcript\t(\d+)\t(\d+).*?([-\+]{1}).*?ID=(.*?);/)
@@ -114,7 +120,7 @@ def sequence_fasta_header(transcript_line,coding_sequences,scaffold)
114
120
  tstrand = "rev" if tmatch[3]=="-"
115
121
 
116
122
  tid=tmatch[4]
117
- header=">lcl|#{scaffold}_#{tstrand}_#{tid} #{tstart}|#{tend}"
123
+ header=">lcl|#{sanitize_scaffold_idstring(scaffold)}_#{tstrand}_#{tid} #{tstart}|#{tend}"
118
124
  if $add_transcript_info
119
125
  coding_sequences.each { |coding_sequence| header << " #{cds_to_header_text(coding_sequence,tid)}" }
120
126
  end
data/bin/interprophet.rb CHANGED
@@ -69,7 +69,7 @@ end
69
69
 
70
70
  if ( !Pathname.new(output_file).exist? || prophet_tool.over_write )
71
71
 
72
- cmd="#{genv.interprophetparser} #{prophet_tool.options.no_nss} #{prophet_tool.options.no_nrs} #{prophet_tool.options.no_nse} #{prophet_tool.options.no_nsi} #{prophet_tool.options.no_nsm}"
72
+ cmd="InterProphetParser #{prophet_tool.options.no_nss} #{prophet_tool.options.no_nrs} #{prophet_tool.options.no_nse} #{prophet_tool.options.no_nsi} #{prophet_tool.options.no_nsm}"
73
73
  cmd << " MINPROB=#{prophet_tool.min_prob}" if ( prophet_tool.min_prob !="" )
74
74
 
75
75
  inputs = ARGV.collect {|file_name|
@@ -61,7 +61,7 @@ ARGV.each do |file_name|
61
61
  else #Mascot2XML doesn't support explicitly named output files so we move the file to an appropriate output filename after finishing
62
62
  new_basename="#{this_dir}/#{MascotUtil.input_basename(name)}_mascot2xml"
63
63
  cmd="cp #{name} #{new_basename}.dat"
64
- cmd << "; #{genv.mascot2xml} #{new_basename}.dat -D#{current_db} -E#{tool.enzyme}"
64
+ cmd << "; Mascot2XML #{new_basename}.dat -D#{current_db} -E#{tool.enzyme}"
65
65
  cmd << " -shortid" if tool.shortid
66
66
  cmd << "; mv #{new_basename}.pep.xml #{tool.explicit_output}; rm #{new_basename}.dat"
67
67
  repair_script="#{File.dirname(__FILE__)}/repair_run_summary.rb"
data/bin/omssa_search.rb CHANGED
@@ -82,7 +82,7 @@ case
82
82
  when Pathname.new(search_tool.database).exist? # It's an explicitly named db
83
83
  current_db=Pathname.new(search_tool.database).realpath.to_s
84
84
  if(not FileTest.exists?("#{current_db}.phr"))
85
- make_blastdb_cmd << "#{genv.makeblastdb} -dbtype prot -parse_seqids -in #{current_db}; "
85
+ make_blastdb_cmd << "makeblastdb -dbtype prot -parse_seqids -in #{current_db}; "
86
86
  end
87
87
  else
88
88
  current_db=search_tool.current_database :fasta
@@ -121,7 +121,7 @@ ARGV.each do |filename|
121
121
 
122
122
  # The basic command
123
123
  #
124
- cmd = "#{make_blastdb_cmd} #{genv.omssacl} -nt #{search_tool.nthreads} -d #{current_db} -fm #{input_path} -op #{output_path} -w"
124
+ cmd = "#{make_blastdb_cmd} omssacl -nt #{search_tool.nthreads} -d #{current_db} -fm #{input_path} -op #{output_path} -w"
125
125
 
126
126
  #Missed cleavages
127
127
  #
@@ -170,6 +170,9 @@ def generate_command(genv,prophet_tool,inputs,output,database,engine)
170
170
 
171
171
  cmd="xinteract -N#{output} -l7 -eT -D'#{database}' "
172
172
 
173
+ # Do not produce png plots
174
+ cmd << " -Ot "
175
+
173
176
  if prophet_tool.glyco
174
177
  cmd << " -Og "
175
178
  end
@@ -103,7 +103,7 @@ p output_file
103
103
 
104
104
  if ( !Pathname.new(output_file).exist? || prophet_tool.over_write )
105
105
 
106
- cmd="ProteinProphet "
106
+ cmd="ProteinProphet NOPLOT "
107
107
 
108
108
  inputs = ARGV.collect {|file_name|
109
109
  file_name.chomp
@@ -131,11 +131,11 @@ else
131
131
  genv.log("Protein Prophet output file #{output_file} already exists. Run with -r option to replace",:warn)
132
132
  end
133
133
 
134
- if for_galaxy
134
+ # if for_galaxy
135
135
  # Restore references to peptide prophet xml so downstream tools like
136
136
  # libra can find it.
137
- input_stager.restore_references("protein_prophet_results.prot.xml")
138
- end
137
+ # input_stager.restore_references("protein_prophet_results.prot.xml")
138
+ # end
139
139
 
140
140
 
141
141
 
data/bin/tandem_search.rb CHANGED
@@ -108,9 +108,7 @@ end
108
108
 
109
109
  # Set search engine specific parameters on the SearchTool object
110
110
  #
111
- tandem_bin="#{genv.xtandem}"
112
-
113
- throw "Could not find X!Tandem executable" unless FileTest.exists?(tandem_bin)
111
+ tandem_bin="tandem"
114
112
 
115
113
  tandem_params=search_tool.tandem_params
116
114
 
@@ -432,7 +430,7 @@ ARGV.each do |filename|
432
430
  #
433
431
  unless search_tool.no_pepxml
434
432
  repair_script="#{File.dirname(__FILE__)}/repair_run_summary.rb"
435
- cmd << "; #{genv.tandem2xml} #{output_path} #{pepxml_path}; #{repair_script} #{pepxml_path}"
433
+ cmd << "; Tandem2XML #{output_path} #{pepxml_path}; #{repair_script} #{pepxml_path}"
436
434
  if search_tool.tandem_output
437
435
  cmd << "; cp #{output_path} #{search_tool.tandem_output}"
438
436
  else
@@ -91,7 +91,7 @@ class Constants
91
91
  end
92
92
 
93
93
  def blast_root
94
- "#{@protk_dir}/blast"
94
+ "#{@protk_dir}/tools/blast"
95
95
  end
96
96
 
97
97
  def log_file
data/lib/protk/fastadb.rb CHANGED
@@ -10,8 +10,8 @@ class FastaDB
10
10
  def initialize(blast_database_file_path)
11
11
  env = Constants.new
12
12
  @database = blast_database_file_path
13
- @makedbcmd = env.makeblastdb
14
- @searchdbcmd = env.searchblastdb
13
+ @makedbcmd = "makeblastdb"
14
+ @searchdbcmd = "blastdbcmd"
15
15
  end
16
16
 
17
17
  def self.create(blast_database_file_path,input_fasta_filepath,type='nucl')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.6.pre4
4
+ version: 1.2.6.pre5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ira Cooke