Method: Quorum::JobSerializer.as_txt
- Defined in:
- app/models/quorum/job_serializer.rb
.as_txt(job) ⇒ Object
Convert jobs to tab delimited output.
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'app/models/quorum/job_serializer.rb', line 18 def self.as_txt(job) txt = "" values = [ "query", "hit_display_id", "pct_identity", "align_len", "mismatch", "gaps", "query_from", "query_to", "hit_from", "hit_to", "evalue", "bit_score" ] job.each do |j| txt << j.attributes.values_at(*values).join("\t") << "\n" end txt end |