Skip to content

Commit

Permalink
%w() to %w[]
Browse files Browse the repository at this point in the history
  • Loading branch information
yannickwurm committed Jul 24, 2018
1 parent 0b517da commit d8453f5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions lib/sequenceserver/blast/constants.rb
Expand Up @@ -4,18 +4,18 @@ module SequenceServer
module BLAST
ERROR_LINE = /Error:\s(.*)/

ALGORITHMS = %w(blastn blastp blastx tblastn tblastx)
ALGORITHMS = %w[blastn blastp blastx tblastn tblastx]

OUTFMT_SPECIFIERS = %w(qseqid qgi qacc sseqid sallseqid sgi sallgi sacc
OUTFMT_SPECIFIERS = %w[qseqid qgi qacc sseqid sallseqid sgi sallgi sacc
sallacc qstart qend sstart send qseq sseq evalue
bitscore score length length pident nident
mismatch positive gapopen gaps ppos frames
qframe hframe btop staxids sscinames scomnames
sblastnames sskingdoms stitle salltitles sstrand
qcovs qcovhsp).join(' ')
qcovs qcovhsp].join(' ')

STDREP = %w(qseqid sseqid sscinames pident length mismatch gapopen qstart qend
sstart send evalue bitscore qcovs qcovhsp).join(' ')
STDREP = %w[qseqid sseqid sscinames pident length mismatch gapopen qstart qend
sstart send evalue bitscore qcovs qcovhsp].join(' ')
OUTFMT = {
'pairwise' => [0, :txt],
'qa' => [1, :txt],
Expand Down
6 changes: 3 additions & 3 deletions lib/sequenceserver/blast/report.rb
Expand Up @@ -146,10 +146,10 @@ def parse_xml(xml)
MSG
end

PARSEABLE_AS_HASH = %w(Parameters)
PARSEABLE_AS_ARRAY = %w(BlastOutput_param Iteration_stat Statistics
PARSEABLE_AS_HASH = %w[Parameters]
PARSEABLE_AS_ARRAY = %w[BlastOutput_param Iteration_stat Statistics
Iteration_hits BlastOutput_iterations
Iteration Hit Hit_hsps Hsp)
Iteration Hit Hit_hsps Hsp]

def node_to_hash(element)
Hash[*element.nodes.map { |n| [n.name, node_to_value(n)] }.flatten]
Expand Down

0 comments on commit d8453f5

Please sign in to comment.