sequence_logo 1.3.2 → 1.3.3

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
  SHA256:
3
- metadata.gz: cd67e4fb5f947c3bf93f3fc6499a177ceec05a775b57f09194f607a75cbae0b8
4
- data.tar.gz: 9b600f503b17dd8910a249d8460fd154126f49ee5f32069c70a386c90eb8af55
3
+ metadata.gz: eaa5c95e4d2e0823719f5a9db61b95e42283fe656b65577cb5fe192df562699c
4
+ data.tar.gz: df60aa00113e82ab99fcd149e53e2c9818004f2a10bf04a543ef4e43746d26e5
5
5
  SHA512:
6
- metadata.gz: 87e70a737006a1c8f08b9abd40421e66409df5b32283415ebf7fc686de45338b8c0d657cde4dfec8a20893b0d937bfd7059bc7b7a2d0878905281f5762ebc4c3
7
- data.tar.gz: 8a22bc70774058d8c14a34cf84baf8c8c2677ffc1de16432c3a7f4d8f8f5f5497e7591f06f4c2791d864a2a5ba5bd3983fe3dea5c851f69ff329eb2d9dfbbeba
6
+ metadata.gz: e4f977a3f7c0a276f3e6468a707153d62f0173f1fc5997606e894936991fb2e02275459799a4657806175ca5f202284975a4822df0807c252362580e49266a78
7
+ data.tar.gz: '068f555ffaabe14d92b472c0ad3e7638f4358d9a1fabfd6b0cd73e0283b0b5eb5cc2f5df38d95597d9bb1c0de3f3a933783a1a2063c1881a12cd54100d09e6a1'
@@ -1,15 +1,15 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sequence_logo (1.3.0)
4
+ sequence_logo (1.3.3)
5
5
  bioinform (~> 0.3.1)
6
- rmagick (~> 2.13)
6
+ rmagick (>= 3.2.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
11
  bioinform (0.3.1)
12
- rmagick (2.16.0)
12
+ rmagick (4.1.2)
13
13
 
14
14
  PLATFORMS
15
15
  ruby
@@ -18,4 +18,4 @@ DEPENDENCIES
18
18
  sequence_logo!
19
19
 
20
20
  BUNDLED WITH
21
- 1.16.1
21
+ 1.17.2
data/README.md CHANGED
@@ -35,10 +35,11 @@ SequenceLogo consists of two tools:
35
35
  * --orientation <direct|revcomp|both> - create logo for a direct, reverse-complement or both orientations of motif
36
36
  * --scheme FOLDER - name of folder containing nucleotide images
37
37
  * --threshold-lines - draw lines on specific levels
38
+ * --output-file - Specify filename for resulting image
38
39
 
39
40
  * Tool **glue_logos** generates a single image of aligned motifs.
40
41
 
41
- ```glue_logos <output file> <file with alignment infos>```
42
+ glue_logos <output file> <file with alignment infos>
42
43
 
43
44
  or
44
45
 
@@ -74,7 +74,12 @@ module SequenceLogo
74
74
  else
75
75
  index = letter_index(letter)
76
76
  end
77
- letter_images[index].dup.resize(x_size, y_size)
77
+ letter_clone = letter_images[index].dup
78
+ channels_clone = letter_clone.separate(Magick::AllChannels)
79
+ channels_clone.each{|channel|
80
+ channel.resize!(x_size, y_size)
81
+ }
82
+ channels_clone.combine
78
83
  end
79
84
 
80
85
  def letter_index(letter)
@@ -1,3 +1,3 @@
1
1
  module SequenceLogo
2
- VERSION = "1.3.2"
2
+ VERSION = "1.3.3"
3
3
  end
@@ -3,7 +3,7 @@ require File.expand_path('../lib/sequence_logo/version', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |gem|
5
5
  gem.authors = ["Ilya Vorontsov"]
6
- gem.email = ["prijutme4ty@gmail.com"]
6
+ gem.email = ["vorontsov.i.e@gmail.com"]
7
7
  gem.description = %q{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.
8
8
  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/)
9
9
  }
@@ -17,6 +17,6 @@ Gem::Specification.new do |gem|
17
17
  gem.require_paths = ["lib"]
18
18
  gem.version = SequenceLogo::VERSION
19
19
 
20
- gem.add_dependency('rmagick', '~> 2.13')
20
+ gem.add_dependency('rmagick', '>= 3.2.0')
21
21
  gem.add_dependency('bioinform', '~> 0.3.1')
22
22
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequence_logo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilya Vorontsov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-07 00:00:00.000000000 Z
11
+ date: 2020-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rmagick
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '2.13'
19
+ version: 3.2.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '2.13'
26
+ version: 3.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bioinform
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -42,7 +42,7 @@ description: |
42
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.
43
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/)
44
44
  email:
45
- - prijutme4ty@gmail.com
45
+ - vorontsov.i.e@gmail.com
46
46
  executables:
47
47
  - glue_logos
48
48
  - sequence_logo
@@ -121,8 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  - !ruby/object:Gem::Version
122
122
  version: '0'
123
123
  requirements: []
124
- rubyforge_project:
125
- rubygems_version: 2.7.7
124
+ rubygems_version: 3.0.3
126
125
  signing_key:
127
126
  specification_version: 4
128
127
  summary: Tool for drawing sequence logos of motifs