gfa 0.8.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/gfa-add-gaf +2 -1
- data/lib/gfa/graph.rb +1 -3
- data/lib/gfa/matrix.rb +2 -2
- data/lib/gfa/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '084129ba7579aabba911f329cd32d5e4d1dbed66c4a2aa303a5763ced7bddd15'
|
4
|
+
data.tar.gz: ee74a43738762876c4dd342f5bed89e4a8a0a275b2f9923dcd8b4a4cc8543241
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 878db0eeee212745e68ec7c08107e9730a4f46f33b78f91037c8b728df851d595e98996c57fdc8c4673d16905c6bc194abca04d083e914f6be345345c138e4c6
|
7
|
+
data.tar.gz: 5f3c2266559b6cb959711c1d59c629c345236a36cf038241affe9e3b7761f4ac58d8d9a0989326b5f98de9c02e7b6259cf8b08e4c31de68b26baaf1c59d431e8
|
data/bin/gfa-add-gaf
CHANGED
@@ -20,7 +20,8 @@ unless degree
|
|
20
20
|
<degree> Maximum degree of separation between the segment set in the GAF
|
21
21
|
and any other segments included in the output GFA.
|
22
22
|
- -1: include the complete original GAF without subsetting.
|
23
|
-
- 0: only segments in the GAF are
|
23
|
+
- 0: only segments in the GAF and strictly internal edges are
|
24
|
+
included.
|
24
25
|
- 1: only the target segments in the GAF, records linking to
|
25
26
|
them, and segments linked by those records are included.
|
26
27
|
- Any integer > 1: include additional expansion rounds for
|
data/lib/gfa/graph.rb
CHANGED
@@ -120,9 +120,7 @@ class GFA
|
|
120
120
|
raise "Unrecognised class: #{segments.class}"
|
121
121
|
end
|
122
122
|
|
123
|
-
|
124
|
-
|
125
|
-
edge_matrix # Just to trigger matrix calculation
|
123
|
+
edge_matrix unless degree == 0 # Just to trigger matrix calculation
|
126
124
|
degree.times do |round|
|
127
125
|
$stderr.puts "- Expansion round #{round + 1}"
|
128
126
|
self.class.advance_bar(segments.size)
|
data/lib/gfa/matrix.rb
CHANGED
@@ -62,10 +62,10 @@ class GFA::Matrix
|
|
62
62
|
def index(row = nil, col = nil)
|
63
63
|
if row.nil? && col.nil?
|
64
64
|
# All values
|
65
|
-
(0 .. values.size - 1)
|
65
|
+
(0 .. values.size - 1).to_a
|
66
66
|
elsif row.nil?
|
67
67
|
# Entire column
|
68
|
-
(col_offset(col) .. col_offset(col) + rows - 1)
|
68
|
+
(col_offset(col) .. col_offset(col) + rows - 1).to_a
|
69
69
|
elsif col.nil?
|
70
70
|
# Entire row
|
71
71
|
ric = row_in_column(row)
|
data/lib/gfa/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gfa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luis M. Rodriguez-R
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rgl
|