sequence_logo 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d582ed32cdac926378464e8255db4b5238836dd0
4
- data.tar.gz: 3828e40c98389a3aac1a0c04cb13d766fcf70188
3
+ metadata.gz: 49b8d62c88fef94b51afe103ca310f00916efdec
4
+ data.tar.gz: bd8990d9f2ae74d63a2565152ef5f9a32044c4b2
5
5
  SHA512:
6
- metadata.gz: 0fd322db5684c2647077c4a45bddbde7dcfc92ab91daff7bec997eeb9c2817c9cfe831098e8dde96671803429c87aab8840da9b190cd35a2fd3455cfa17310ef
7
- data.tar.gz: c29f9579734d2c0b71f841384a957f946c9ef5b483b1dc99180d01b422a1fcf016ace8cb7abe1eef3d018633f2821c188d6a2d5fc82604dfdcb687c95b0ec964
6
+ metadata.gz: d5e46900733670c4e0c50f45f5b839eb71aba62eb9e1998425574d684c3b84c2db38983d51388c1422896e963a92187b1f986230fc6eb5d50ec4bf64eb435eec
7
+ data.tar.gz: 51dd020446c145136fad74b845cd6711423439bfa41a3d4cd895b2fb2fbd910f307d175fd83aaeb5d828377bf897c173141ab01a7032e762b25e66f418591f12
@@ -89,7 +89,7 @@ module Bioinform
89
89
  sum_dependent_on_first_letter(pos)
90
90
  } + [ sum_dependent_on_second_letter(matrix.last) ]
91
91
 
92
- PCM.new(mono_matrix)
92
+ PCM.new(mono_matrix, validator: Bioinform::MotifModel::PCM::DIFFERENT_COUNTS_VALIDATOR)
93
93
  end
94
94
  end
95
95
 
@@ -9,7 +9,7 @@ def load_alignment_infos(alignment_lines)
9
9
  shift = shift.to_i
10
10
  orientation = orientation.downcase.to_sym
11
11
 
12
- ppm = Bioinform::MotifModel::PCM.from_file(filename)
12
+ ppm = Bioinform::MotifModel::PCM.from_file(filename, validator: Bioinform::MotifModel::PCM::DIFFERENT_COUNTS_VALIDATOR)
13
13
  ppm.name ||= motif_name
14
14
 
15
15
  raise 'Unknown orientation' unless [:direct, :revcomp].include?(orientation)
@@ -113,7 +113,7 @@ begin
113
113
  if options[:from_dinucleotide]
114
114
  ppm = Bioinform::MotifModel::DiPCM.from_file(filename).to_mono
115
115
  else
116
- ppm = Bioinform::MotifModel::PCM.from_file(filename)
116
+ ppm = Bioinform::MotifModel::PCM.from_file(filename, validator: Bioinform::MotifModel::PCM::DIFFERENT_COUNTS_VALIDATOR)
117
117
  end
118
118
 
119
119
  logo = SequenceLogo::PPMLogo.new( ppm,
@@ -1,3 +1,3 @@
1
1
  module SequenceLogo
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  end
@@ -18,4 +18,5 @@ Gem::Specification.new do |gem|
18
18
  gem.version = SequenceLogo::VERSION
19
19
 
20
20
  gem.add_dependency('rmagick', '~> 2.13')
21
+ gem.add_dependency('bioinform', '~> 0.3.1')
21
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequence_logo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilya Vorontsov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-20 00:00:00.000000000 Z
11
+ date: 2016-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rmagick
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.13'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bioinform
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.3.1
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.3.1
27
41
  description: |
28
42
  SequenceLogo is a tool for drawing sequence logos of motifs. It gets Positional Count Matrices(PCMs) or IUPAC sequences as input and generates png-logos for a motif. Also one can create logo for reverse complement or even generate logos for a whole collection of motifs.
29
43
  Sequence logos are a graphical representation of an amino acid or nucleic acid multiple sequence alignment developed by Tom Schneider and Mike Stephens. Each logo consists of stacks of symbols, one stack for each position in the sequence. The overall height of the stack indicates the sequence conservation at that position, while the height of symbols within the stack indicates the relative frequency of each amino or nucleic acid at that position. In general, a sequence logo provides a richer and more precise description of, for example, a binding site, than would a consensus sequence (see http://weblogo.berkeley.edu/)