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.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/bio-velvet/graph.rb +9 -9
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d61f788902dd64e947b0a072fe7ea4928d0090e
|
4
|
+
data.tar.gz: c74bf34034fed56504e7db21df832117747db1d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 771d1e978e005c88e90e1c0f6740491f292d6296f7c32bb353ceab4c32b8d268beac7d81d74aa85d09d373ce1be09e53060ba7f41ff8d5203c0f2042cd13f855
|
7
|
+
data.tar.gz: 7630ace0116ba247f7982779874e5a1c0d94db026afcb07792094a64195e09bdbeaee14f4e27c292434c69a47e27481e95665dab41a043415e7fb415b7ebc797
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.2
|
data/lib/bio-velvet/graph.rb
CHANGED
@@ -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
|
-
|
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.
|
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-
|
11
|
+
date: 2014-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bio-logger
|