WWW = "www.phylosoft.org"
DELIMITER_OPTION = "d"
+ SPECIES_OPTION = "s"
I_E_VALUE_THRESHOLD_OPTION = "ie"
FS_E_VALUE_THRESHOLD_OPTION = "pe"
HMM_FOR_PROTEIN_OUTPUT = "m"
allowed_opts.push( PARSE_OUT_DESCRIPITION_OPTION )
allowed_opts.push( HMM_FOR_PROTEIN_OUTPUT )
allowed_opts.push( UNIPROT )
+ allowed_opts.push( SPECIES_OPTION )
disallowed = cla.validate_allowed_options_as_str( allowed_opts )
if ( disallowed.length > 0 )
end
end
+
+
fs_e_value_threshold = -1.0
if ( cla.is_option_set?( FS_E_VALUE_THRESHOLD_OPTION ) )
begin
end
end
+ species = "HUMAN"
+ if ( cla.is_option_set?( SPECIES_OPTION ) )
+ begin
+ species = cla.get_option_value( SPECIES_OPTION )
+ rescue ArgumentError => e
+ Util.fatal_error( PRG_NAME, "error: " + e.to_s, STDOUT )
+ end
+ end
+
ignore_dufs = false
if ( cla.is_option_set?( IGNORE_DUF_OPTION ) )
ignore_dufs = true
puts()
puts( "hmmpfam outputfile : " + inpath )
puts( "outputfile : " + outpath )
+ puts( "species : " + species )
if ( i_e_value_threshold >= 0.0 )
puts( "i-E-value threshold : " + i_e_value_threshold.to_s )
else
parse_descriptions,
fs_e_value_threshold,
hmm_for_protein_output,
- uniprot )
+ uniprot,
+ species )
rescue IOError => e
Util.fatal_error( PRG_NAME, "error: " + e.to_s, STDOUT )
end
get_descriptions,
fs_e_value_threshold,
hmm_for_protein_output,
- uniprot )
+ uniprot,
+ species )
fs_e_value_threshold,
hmm_for_protein_output,
i_e_value_threshold,
- true )
+ false,
+ species )
end
hmmscan_results_per_protein.clear
end
end
end
end
+
if !hmm_for_protein_output.empty? && !hmmscan_results_per_protein.empty?
process_hmmscan_results_per_protein( hmmscan_results_per_protein,
fs_e_value_threshold,
hmm_for_protein_output,
i_e_value_threshold,
- true )
+ false,
+ species )
end
outfile.flush()
fs_e_value_threshold,
hmm_for_protein_output,
i_e_value_threshold,
- uniprotkb )
+ uniprotkb,
+ species )
+
+
dc = 0
# filter according to i-Evalue threshold
hmmscan_results_per_protein_filtered = []
hmmscan_results_per_protein.each do | r |
+
+ puts r.model
+ puts r.fs_e_value
+
if r.model == hmm_for_protein_output
if r.fs_e_value > fs_e_value_threshold
return
s = ""
s << own.query + "\t"
- s << "HUMAN" + "\t"
+ s << species + "\t"
s << own.fs_e_value.to_s + "\t"
s << own.qlen.to_s + "\t"
s << dc.to_s + "\t"
s << r.model + " "
end
s << "\t"
- e = UniprotKB::get_entry_by_id( process_id( own.query ) )
+ puts s
+ #e = UniprotKB::get_entry_by_id( process_id( own.query ) )
- if e != nil
- s << uniprot_annotation( e )
- s << "\uniprot_annotationt"
- end
+ #if e != nil
+ # s << uniprot_annotation( e )
+ # # s << "\uniprot_annotationt"
+ #end
overview = make_overview( hmmscan_results_per_protein_filtered, hmm_for_protein_output )