protk 1.2.6.pre4 → 1.2.6.pre5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/augustus_to_proteindb.rb +7 -1
- data/bin/interprophet.rb +1 -1
- data/bin/mascot_to_pepxml.rb +1 -1
- data/bin/omssa_search.rb +2 -2
- data/bin/peptide_prophet.rb +3 -0
- data/bin/protein_prophet.rb +4 -4
- data/bin/tandem_search.rb +2 -4
- data/lib/protk/constants.rb +1 -1
- data/lib/protk/fastadb.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 876bb41de9b07d9a9b08132e2d44439e6de0c990
|
4
|
+
data.tar.gz: 799b9dd4c2a8c3720e315a7ade0085a7f54f31f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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="
|
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|
|
data/bin/mascot_to_pepxml.rb
CHANGED
@@ -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 << ";
|
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 << "
|
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}
|
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
|
#
|
data/bin/peptide_prophet.rb
CHANGED
data/bin/protein_prophet.rb
CHANGED
@@ -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="
|
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 << ";
|
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
|
data/lib/protk/constants.rb
CHANGED
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 =
|
14
|
-
@searchdbcmd =
|
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')
|