sequence_logo 1.3.2 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/README.md +2 -1
- data/lib/sequence_logo/canvas_factory.rb +8 -3
- data/lib/sequence_logo/magick_support.rb +1 -1
- data/lib/sequence_logo/version.rb +1 -1
- data/sequence_logo.gemspec +2 -2
- metadata +8 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aacbb291ed0f82d334fc8cffa3a0f0cb6114a529e2cdcfb485d496d81034045a
|
|
4
|
+
data.tar.gz: 0b3f07113305a892f56980c0307a1191eb044bed1787925d47e5b4094041efc6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0c0983d52701e388a909f60ee296945cc0d0803c323531a06b31a23a59b03a443d4b15bdd3b13500b9ff700e78e78782ec530ee489104a5de1cc55b3156e6a38
|
|
7
|
+
data.tar.gz: b2fd4c8d19b1fa5e982c00cfdf0cb10178ab98f1528a2ecf44af7f4ee048aaf006eb8df8e35c0fd5ff02ab2b4519b66a664f8a3f213f24c83cc072e1b16e4c7f
|
data/Gemfile.lock
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
sequence_logo (1.3.
|
|
4
|
+
sequence_logo (1.3.3)
|
|
5
5
|
bioinform (~> 0.3.1)
|
|
6
|
-
rmagick (
|
|
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 (
|
|
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.
|
|
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
|
-
|
|
42
|
+
glue_logos <output file> <file with alignment infos>
|
|
42
43
|
|
|
43
44
|
or
|
|
44
45
|
|
|
@@ -16,7 +16,7 @@ module SequenceLogo
|
|
|
16
16
|
end
|
|
17
17
|
|
|
18
18
|
def text_image(text, img_height = y_unit)
|
|
19
|
-
text_img = Magick::Image.new(logo_shift, img_height){
|
|
19
|
+
text_img = Magick::Image.new(logo_shift, img_height){|img| img.background_color = 'transparent' }
|
|
20
20
|
annotation = Magick::Draw.new
|
|
21
21
|
annotation.pointsize(text_size)
|
|
22
22
|
annotation.text(10, img_height / 2, text)
|
|
@@ -26,7 +26,7 @@ module SequenceLogo
|
|
|
26
26
|
|
|
27
27
|
def shifted_logo(image, shift)
|
|
28
28
|
canvas = HorizontalGluingCanvas.new
|
|
29
|
-
canvas.add_image Magick::Image.new(shift * x_unit, image.rows){
|
|
29
|
+
canvas.add_image Magick::Image.new(shift * x_unit, image.rows){|img| img.background_color = 'transparent' }
|
|
30
30
|
canvas.add_image image
|
|
31
31
|
canvas.image
|
|
32
32
|
end
|
|
@@ -74,7 +74,12 @@ module SequenceLogo
|
|
|
74
74
|
else
|
|
75
75
|
index = letter_index(letter)
|
|
76
76
|
end
|
|
77
|
-
letter_images[index].dup
|
|
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)
|
|
@@ -9,7 +9,7 @@ module Magick
|
|
|
9
9
|
|
|
10
10
|
# add transparent layer so that full canvas size can't be less than given size
|
|
11
11
|
def set_minimal_size(x_size, y_size)
|
|
12
|
-
empty_image = Magick::Image.new(x_size, y_size){
|
|
12
|
+
empty_image = Magick::Image.new(x_size, y_size){|img| img.background_color = 'transparent' }
|
|
13
13
|
self.unshift(empty_image)
|
|
14
14
|
end
|
|
15
15
|
end
|
data/sequence_logo.gemspec
CHANGED
|
@@ -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 = ["
|
|
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', '
|
|
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,28 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sequence_logo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ilya Vorontsov
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: rmagick
|
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
|
16
15
|
requirements:
|
|
17
|
-
- - "
|
|
16
|
+
- - ">="
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
18
|
+
version: 3.2.0
|
|
20
19
|
type: :runtime
|
|
21
20
|
prerelease: false
|
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
22
|
requirements:
|
|
24
|
-
- - "
|
|
23
|
+
- - ">="
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
|
-
version:
|
|
25
|
+
version: 3.2.0
|
|
27
26
|
- !ruby/object:Gem::Dependency
|
|
28
27
|
name: bioinform
|
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -42,7 +41,7 @@ description: |
|
|
|
42
41
|
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
42
|
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
43
|
email:
|
|
45
|
-
-
|
|
44
|
+
- vorontsov.i.e@gmail.com
|
|
46
45
|
executables:
|
|
47
46
|
- glue_logos
|
|
48
47
|
- sequence_logo
|
|
@@ -106,7 +105,6 @@ files:
|
|
|
106
105
|
homepage: ''
|
|
107
106
|
licenses: []
|
|
108
107
|
metadata: {}
|
|
109
|
-
post_install_message:
|
|
110
108
|
rdoc_options: []
|
|
111
109
|
require_paths:
|
|
112
110
|
- lib
|
|
@@ -121,9 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
121
119
|
- !ruby/object:Gem::Version
|
|
122
120
|
version: '0'
|
|
123
121
|
requirements: []
|
|
124
|
-
|
|
125
|
-
rubygems_version: 2.7.7
|
|
126
|
-
signing_key:
|
|
122
|
+
rubygems_version: 3.6.9
|
|
127
123
|
specification_version: 4
|
|
128
124
|
summary: Tool for drawing sequence logos of motifs
|
|
129
125
|
test_files:
|