bio-velvet 0.4.0 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/bio-velvet/graph.rb +9 -9
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b5c57762cbeea6210a80415e335e38894efc69aa
4
- data.tar.gz: 9a8aba9cfb9a98b76679b025e0833ca366554e18
3
+ metadata.gz: 2d61f788902dd64e947b0a072fe7ea4928d0090e
4
+ data.tar.gz: c74bf34034fed56504e7db21df832117747db1d6
5
5
  SHA512:
6
- metadata.gz: 7deb192d00d7c4a8461c2e6953a1529ed9b66d2f5191840b71fcbe78d953f1f35c0f807ee62e572af0b6d196e961700d5fb45d1dfa181af054803e3d280478f8
7
- data.tar.gz: 7938fc6ecdacb84be8b1720fe00cdeff46f2d8edb4a866bbe9fe0d0b449ab275275f0dc5c2453276dac1e54e30bc3eb312a3db099536c11b67e7d698cf6c1df6
6
+ metadata.gz: 771d1e978e005c88e90e1c0f6740491f292d6296f7c32bb353ceab4c32b8d268beac7d81d74aa85d09d373ce1be09e53060ba7f41ff8d5203c0f2042cd13f855
7
+ data.tar.gz: 7630ace0116ba247f7982779874e5a1c0d94db026afcb07792094a64195e09bdbeaee14f4e27c292434c69a47e27481e95665dab41a043415e7fb415b7ebc797
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.4.2
@@ -197,7 +197,7 @@ module Bio
197
197
  passable_nodes.push nodes[arc.begin_node_id]
198
198
  end
199
199
  end
200
- return passable_nodes
200
+ return passable_nodes.uniq
201
201
  end
202
202
 
203
203
  # Return the adjacent nodes in the graph that connect to the end of a node
@@ -211,7 +211,7 @@ module Bio
211
211
  passable_nodes.push nodes[arc.end_node_id]
212
212
  end
213
213
  end
214
- return passable_nodes
214
+ return passable_nodes.uniq
215
215
  end
216
216
 
217
217
 
@@ -440,14 +440,14 @@ module Bio
440
440
  revcom(sequence)
441
441
  end
442
442
 
443
- # Number of nucleotides in this node if this contig length is being added to
444
- # another node's length (nodes overlap)
445
- def length_alone
446
- @ends_of_kmers_of_node.length
447
- end
448
-
449
443
  def to_s
450
- "Node #{@node_id}: #{@ends_of_kmers_of_node} / #{@ends_of_kmers_of_twin_node}"
444
+ fwd = @ends_of_kmers_of_node
445
+ rev = @ends_of_kmers_of_twin_node
446
+ if @ends_of_kmers_of_node.length > 10
447
+ fwd = @ends_of_kmers_of_node[0...10]+'..'
448
+ rev = @ends_of_kmers_of_twin_node[0...10]+'..'
449
+ end
450
+ "Node #{@node_id}: #{fwd} / #{rev}"
451
451
  end
452
452
 
453
453
  def inspect
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bio-velvet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben J Woodcroft
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-14 00:00:00.000000000 Z
11
+ date: 2014-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bio-logger