transrate 1.0.0.alpha.1 → 1.0.0.alpha.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/transrate/contig.rb +5 -12
- data/lib/transrate/read_metrics.rb +1 -1
- data/lib/transrate/snap.rb +0 -1
- data/lib/transrate/version.rb +1 -1
- data/test/test_bin.rb +1 -0
- data/transrate.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42c9c17a154a468377a5175f9937eb849c97e796
|
4
|
+
data.tar.gz: ddf0feca917a5d832ddf10143622ef121cd0cb73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 995833e4d14e1ceddebfd4c6f8f4c6a53fe1267a0ed53017844161803d575e7a3eaf17761315211b750fdf81c297179d17a975e737f1d2d17ca79e1a590f945e
|
7
|
+
data.tar.gz: 97f1ec6b36ec186e67c2c8b0550c6e90ac6ac4e59364a9c95c12b6c3ed516543a7143306ad641b8176c5da3148e0e762ddc03a42fc1c1236891832f5af73ba44
|
data/lib/transrate/contig.rb
CHANGED
@@ -27,9 +27,9 @@ module Transrate
|
|
27
27
|
@reference_coverage = 0
|
28
28
|
@has_crb = false
|
29
29
|
@in_bridges = 0
|
30
|
+
@p_good = 0
|
30
31
|
@p_seq_true = 0
|
31
32
|
@low_uniqueness_bases = 0
|
32
|
-
@p_good = -1
|
33
33
|
@uncovered_bases = length
|
34
34
|
@p_uncovered_bases = 1
|
35
35
|
@p_unique = 0
|
@@ -56,22 +56,15 @@ module Transrate
|
|
56
56
|
end
|
57
57
|
|
58
58
|
def read_metrics
|
59
|
-
|
59
|
+
{
|
60
60
|
:in_bridges => in_bridges,
|
61
|
-
:p_good =>
|
61
|
+
:p_good => p_good,
|
62
62
|
:p_bases_covered => p_bases_covered,
|
63
63
|
:p_seq_true => p_seq_true,
|
64
64
|
:score => score,
|
65
65
|
:p_unique => p_unique,
|
66
|
-
:p_not_segmented => p_not_segmented
|
67
|
-
|
68
|
-
:in_bridges => "NA",
|
69
|
-
:p_good => "NA",
|
70
|
-
:p_bases_covered => "NA",
|
71
|
-
:p_seq_true => "NA",
|
72
|
-
:score => "NA",
|
73
|
-
:p_unique => p_unique,
|
74
|
-
:p_not_segmented => p_not_segmented
|
66
|
+
:p_not_segmented => p_not_segmented,
|
67
|
+
:expression => coverage
|
75
68
|
}
|
76
69
|
end
|
77
70
|
|
@@ -57,7 +57,7 @@ module Transrate
|
|
57
57
|
# classify bam file into valid and invalid alignments
|
58
58
|
sorted_bam = "#{File.basename(bamfile, '.bam')}.merged.sorted.bam"
|
59
59
|
readsorted_bam = "#{File.basename(bamfile, '.bam')}.valid.sorted.bam"
|
60
|
-
unless File.exist?
|
60
|
+
unless File.exist? readsorted_bam
|
61
61
|
valid_bam, invalid_bam = split_bam bamfile
|
62
62
|
readsorted_bam = Samtools.readsort_bam(valid_bam, threads)
|
63
63
|
File.delete valid_bam
|
data/lib/transrate/snap.rb
CHANGED
@@ -102,7 +102,6 @@ module Transrate
|
|
102
102
|
def build_index file, threads
|
103
103
|
@index_name = File.basename(file, File.extname(file))
|
104
104
|
unless Dir.exists?(@index_name)
|
105
|
-
overflow = 500
|
106
105
|
cmd = "#{@snap} index #{file} #{@index_name}"
|
107
106
|
cmd << " -s 23"
|
108
107
|
cmd << " -t#{threads}"
|
data/lib/transrate/version.rb
CHANGED
data/test/test_bin.rb
CHANGED
@@ -16,6 +16,7 @@ class TestTransrateBin < Test::Unit::TestCase
|
|
16
16
|
"assembly.2_into_Os.protein.2.1.blast",
|
17
17
|
"sorghum_transcript.nhr", "sorghum_transcript.nin", "sorghum_transcript.nsq",
|
18
18
|
"Os.protein.2_into_sorghum_transcript.2.blast",
|
19
|
+
"Os.protein.2_into_assembly.2.2.blast",
|
19
20
|
"assembly.2.nhr", "assembly.2.nin", "assembly.2.nsq",
|
20
21
|
"Os.protein.2.phr", "Os.protein.2.pin", "Os.protein.2.psq",
|
21
22
|
"transrate_assemblies.csv", "params.xprs",
|
data/transrate.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |gem|
|
|
19
19
|
|
20
20
|
gem.add_dependency 'yell', '~> 2.0', '>= 2.0.4'
|
21
21
|
gem.add_dependency 'trollop', '~> 2.0'
|
22
|
-
gem.add_dependency 'bindeps', '~> 0.1', '>= 0.1.
|
22
|
+
gem.add_dependency 'bindeps', '~> 0.1', '>= 0.1.2'
|
23
23
|
gem.add_dependency 'bio', '~> 1.4', '>= 1.4.3'
|
24
24
|
gem.add_dependency 'crb-blast', '~> 0.4', '>= 0.4.2'
|
25
25
|
gem.add_dependency 'ruby-prof', '~> 0.15', '>= 0.15.1'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: transrate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.alpha.
|
4
|
+
version: 1.0.0.alpha.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Smith-Unna
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-10-
|
12
|
+
date: 2014-10-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: yell
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: '0.1'
|
55
55
|
- - ">="
|
56
56
|
- !ruby/object:Gem::Version
|
57
|
-
version: 0.1.
|
57
|
+
version: 0.1.2
|
58
58
|
type: :runtime
|
59
59
|
prerelease: false
|
60
60
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -64,7 +64,7 @@ dependencies:
|
|
64
64
|
version: '0.1'
|
65
65
|
- - ">="
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: 0.1.
|
67
|
+
version: 0.1.2
|
68
68
|
- !ruby/object:Gem::Dependency
|
69
69
|
name: bio
|
70
70
|
requirement: !ruby/object:Gem::Requirement
|