gfa 0.8.0 → 0.9.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 13cc01c1ed08457fc0a4cf409e87ab0e0c52e6de6f9a9019bb15de87d462bac7
4
- data.tar.gz: 9013cf534626775e09c9aa2006ff47d5f03fc5c5580cde1d0f325124de911a79
3
+ metadata.gz: '084129ba7579aabba911f329cd32d5e4d1dbed66c4a2aa303a5763ced7bddd15'
4
+ data.tar.gz: ee74a43738762876c4dd342f5bed89e4a8a0a275b2f9923dcd8b4a4cc8543241
5
5
  SHA512:
6
- metadata.gz: fe4dfc8fa6e24fcc734a91d5101c9d9ab3315ddf5cc26ef943ae01695e573c367d31ae53a7a1325a809f0eedcaaae97d0453fd590f079c0f6a63eecdf89cc10f
7
- data.tar.gz: 3957432e59163f82cce3eddc240a03b70ffe1693c3dad9d7f373655108c454f04b5dbe618f4f65adcaf7c98ed8327323c3d2b1fee97083685612a02678780ac8
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 included.
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
- return [] if degree <= 0
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) # .to_a
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) # .to_a
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
@@ -1,5 +1,5 @@
1
1
  class GFA
2
- VERSION = '0.8.0'
2
+ VERSION = '0.9.1'
3
3
  VERSION_ARRAY = VERSION.split(/\./).map { |x| x.to_i } # :nodoc:
4
4
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
5
5
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
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.8.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 00:00:00.000000000 Z
11
+ date: 2023-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rgl