bio-polyploid-tools 0.5.1 → 0.5.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/bin/polymarker.rb +2 -1
- data/bio-polyploid-tools.gemspec +3 -3
- data/lib/bio/PolyploidTools/PrimerRegion.rb +1 -1
- data/lib/bio/PolyploidTools/SNP.rb +5 -5
- data/lib/bio/db/primer3.rb +6 -6
- 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: 23c185fa7183010bca4c619fa252ecd2d58e2d13
|
4
|
+
data.tar.gz: a093ad10be19c610df004bc2b0ad8834dcd7ca00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b6838728afb273a71afc44bfe790c947662c0d432229e3d40f7dca34e67928a849a95c9f52c90562b509e3ef1aa9d51147c7c60de49573baf826695cc425365
|
7
|
+
data.tar.gz: 4941e7ca5027e0fed010dcd6523f82fafc1a8db75a9826f4c14f6fef20a54e79f614d91560cf398174e23ebbe1f2c71b80916ba118ae28ed50fe4a451f3c8410
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.2
|
data/bin/polymarker.rb
CHANGED
@@ -79,8 +79,9 @@ OptionParser.new do |opts|
|
|
79
79
|
|
80
80
|
opts.on("-p", "--primer_3_preferences FILE", "file with preferences to be sent to primer3") do |o|
|
81
81
|
options[:primer_3_preferences] = Bio::DB::Primer3.read_primer_preferences(o, options[:primer_3_preferences] )
|
82
|
-
|
83
82
|
end
|
83
|
+
|
84
|
+
|
84
85
|
|
85
86
|
end.parse!
|
86
87
|
|
data/bio-polyploid-tools.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: bio-polyploid-tools 0.5.
|
5
|
+
# stub: bio-polyploid-tools 0.5.2 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "bio-polyploid-tools"
|
9
|
-
s.version = "0.5.
|
9
|
+
s.version = "0.5.2"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Ricardo H. Ramirez-Gonzalez"]
|
14
|
-
s.date = "2014-10-
|
14
|
+
s.date = "2014-10-28"
|
15
15
|
s.description = "Repository of tools developed in TGAC and Crop Genetics in JIC to work with polyploid wheat"
|
16
16
|
s.email = "ricardo.ramirez-gonzalez@tgac.ac.uk"
|
17
17
|
s.executables = ["bfr.rb", "count_variations.rb", "filter_blat_by_target_coverage.rb", "find_best_blat_hit.rb", "find_best_exonerate.rb", "hexaploid_primers.rb", "homokaryot_primers.rb", "map_markers_to_contigs.rb", "markers_in_region.rb", "polymarker.rb", "snp_position_to_polymarker.rb", "snps_between_bams.rb"]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Bio::PolyploidTools
|
2
2
|
class PrimerRegion
|
3
|
-
attr_accessor :snp_pos, :sequence, :chromosome_specific, :almost_chromosome_specific, :crhomosome_specific_intron , :almost_crhomosome_specific_intron, :
|
3
|
+
attr_accessor :snp_pos, :sequence, :chromosome_specific, :almost_chromosome_specific, :crhomosome_specific_intron , :almost_crhomosome_specific_intron, :homoeologous
|
4
4
|
|
5
5
|
def initialize
|
6
6
|
|
@@ -203,11 +203,11 @@ module Bio::PolyploidTools
|
|
203
203
|
when mask[i] == '&'
|
204
204
|
#This is the SNP we take the parental
|
205
205
|
pr.snp_pos = position_in_region
|
206
|
-
pr.
|
206
|
+
pr.homoeologous = false
|
207
207
|
when mask[i] == ':'
|
208
208
|
#This is the SNP we take the parental
|
209
209
|
pr.snp_pos = position_in_region
|
210
|
-
pr.
|
210
|
+
pr.homoeologous = true
|
211
211
|
when mask[i] == '-'
|
212
212
|
#When the mask doesnt detect a SNP, so we take the parental
|
213
213
|
parental[i] = chromosome_seq[i] unless Bio::NucleicAcid::is_unambiguous(parental[i])
|
@@ -304,10 +304,10 @@ module Bio::PolyploidTools
|
|
304
304
|
|
305
305
|
rev_pos = seq_snp.size - position
|
306
306
|
|
307
|
-
if pr.
|
308
|
-
snp_type = "
|
307
|
+
if pr.homoeologous
|
308
|
+
snp_type = "homoeologous"
|
309
309
|
else
|
310
|
-
snp_type = "non-
|
310
|
+
snp_type = "non-homoeologous"
|
311
311
|
end
|
312
312
|
|
313
313
|
pr.chromosome_specific.each do |pos|
|
data/lib/bio/db/primer3.rb
CHANGED
@@ -471,10 +471,10 @@ module Bio::DB::Primer3
|
|
471
471
|
@exon = false
|
472
472
|
end
|
473
473
|
|
474
|
-
if @polymorphism.to_sym == :
|
475
|
-
@
|
474
|
+
if @polymorphism.to_sym == :homoeologous
|
475
|
+
@homoeologous = true
|
476
476
|
else
|
477
|
-
@
|
477
|
+
@homoeologous = false
|
478
478
|
end
|
479
479
|
@parsed = true
|
480
480
|
@orientation = @orientation.to_sym
|
@@ -492,10 +492,10 @@ module Bio::DB::Primer3
|
|
492
492
|
@chromosome
|
493
493
|
end
|
494
494
|
|
495
|
-
def
|
496
|
-
return @
|
495
|
+
def homoeologous?
|
496
|
+
return @homoeologous if @parsed
|
497
497
|
parse_header
|
498
|
-
@
|
498
|
+
@homoeologous
|
499
499
|
end
|
500
500
|
|
501
501
|
def type
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bio-polyploid-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ricardo H. Ramirez-Gonzalez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bio
|