bio-polyploid-tools 0.6.0 → 0.6.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
  SHA1:
3
- metadata.gz: 76d57ca94d667e3aff5324977e57d8b7a5f0d91e
4
- data.tar.gz: ccd2fad348fbc8a68927b944adc8e13b7d776edf
3
+ metadata.gz: 2665c985b9f58b0026c7007b6a5264e213985bfb
4
+ data.tar.gz: 9c92adc72342ddf7d7d51e28fc7ec8fd5c9cec96
5
5
  SHA512:
6
- metadata.gz: 99edd393245dc13ebf8b10abab165c86a9e808f5cabfe95fccd6607360383d79c277a84e37c831782412817ac35b82dddde717448510dbd5f89b4e5a268640d9
7
- data.tar.gz: c387e7b9a9b8d5c6bbb8e286a2fa71e4ecd92093578e58d04d260f5d8f7ba66f47d03856486c030f91488f39078129b27f600329596faec2183e0c521eaf6785
6
+ metadata.gz: 2efeb6d3474633f3fbaab9c06adb379a399e55caaa11971073ac58f71335d26ddca411b49b2da07e2738430bdfcf12e5b7812a30c7343a777295c8443586812d
7
+ data.tar.gz: 94753063d0ad792a47d5b2f4b5e09fe6f88c3e8a66516127afb069bb51dec05b12f50f0e0223e2f84d49e97a5e84c5eb66d2c57736b6657a094378e0b0daaea4
data/README.md CHANGED
@@ -1,45 +1,59 @@
1
- bio-polyploid-tools
2
- ===================
1
+ #bio-polyploid-tools
3
2
 
4
- Introduction
5
- -------------
3
+ ##Introduction
6
4
  This tools are designed to deal with polyploid wheat. The first tool is to design KASP primers,
7
5
  making them as specific as possible.
8
6
 
9
7
 
10
- Installation
11
- ------------
12
- 'gem install bio-polyploid-tools'
8
+ ##Installation
9
+ ```sh
10
+ gem install bio-polyploid-tools
11
+ ```
12
+ You need to have in your ```$PATH``` the following programs:
13
13
 
14
- You need to have in your $PATH the following programs:
15
- * [MAFFT]{http://mafft.cbrc.jp/alignment/software/}
16
- * [primer3]{http://primer3.sourceforge.net/releases.php}
17
- * [exonerate]{http://www.ebi.ac.uk/~guy/exonerate/}
14
+ * [MAFFT](http://mafft.cbrc.jp/alignment/software/)
15
+ * [primer3](http://primer3.sourceforge.net/releases.php)
16
+ * [exonerate](http://www.ebi.ac.uk/~guy/exonerate/)
18
17
 
19
18
  The code has been developed on ruby 2.1.0, but it should work on 1.9.3 and above.
20
19
 
21
20
 
22
- Polymarker
23
- ----------
21
+ #PolyMarker
24
22
 
25
23
  To run poolymerker with the CSS wheat contigs, you need to unzip the
26
- reference file [Triticum_aestivum.IWGSP1.22.dna_rm.genome.fa.gz{ftp://ftp.ensemblgenomes.org/pub/release-22/plants/fasta/triticum_aestivum/dna/}.
24
+ (reference file)[ftp://ftp.ensemblgenomes.org/pub/release-25/plants/fasta/triticum_aestivum/dna/Triticum_aestivum.IWGSC2.25.dna.genome.fa.gz
25
+ ].
27
26
 
28
- polymarker.rb --contigs Triticum_aestivum.IWGSP1.22.dna_rm.genome.fa --marker_list snp_list.csv --output output_folder
27
+
28
+
29
+ ```sh
30
+ polymarker.rb --contigs Triticum_aestivum.IWGSC2.25.dna.genome.fa --marker_list snp_list.csv --output output_folder
31
+ ```
29
32
 
30
33
  The snp_list file must follow the convention
31
34
  <ID>,<Chromosome>,<SEQUENCE>
32
35
  with the SNP inside the sequence in the format [A/T]. As a reference, look at test/data/short_primer_design_test.csv
33
36
 
34
- Notes
35
- -----
37
+ If you want to use the web interface, visit the [PolyMarker webservice at TGAC](http://polymarker.tgac.ac.uk)
38
+
39
+ ##Release Notes
40
+
41
+ ###0.6.1
42
+
43
+
44
+ * polymarker.rb now validates that all the files exist.
45
+ * BUGFIX: A reference was required even when it was not used to generate contigs.
46
+
47
+ #Notes
48
+
36
49
 
37
50
  * If the SNP is in a gap in the alignment to the chromosomes, it is ignored.
38
51
 
39
52
  BUG: Blocks with NNNs are picked and treated as semi-specific.
40
53
  BUG: If the name of the reference have space, the ID is not chopped. ">gene_1 (G12A)" shouls be treated as ">gene_1".
41
- TODO: If reading from a reference file, only get one reference to align when the region is queried several times
42
54
  TODO: Add a parameter file to configure the alignments.
43
55
  TODO: Produce primers for products of different sizes
44
56
 
45
57
 
58
+
59
+
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.0
1
+ 0.6.1
@@ -28,6 +28,19 @@ arm_selection_functions[:arm_selection_morex] = lambda do | contig_name |
28
28
  return ret
29
29
  end
30
30
 
31
+ def validate_files(o)
32
+
33
+ [
34
+ o[:path_to_contigs],
35
+ o[:marker_list],
36
+ o[:snp_list],
37
+ o[:mutant_list],
38
+ o[:reference]
39
+ ].flatten.compact.each do |f|
40
+ raise IOError "Unable to read #{f}" unless File.exists? f
41
+ end
42
+ end
43
+
31
44
  options = {}
32
45
  options[:path_to_contigs] = "/tgac/references/external/projects/iwgsc/css/IWGSC_CSS_all_scaff_v1.fa"
33
46
  options[:chunks] = 1
@@ -104,6 +117,8 @@ OptionParser.new do |opts|
104
117
 
105
118
  end.parse!
106
119
 
120
+ validate_files(options)
121
+
107
122
  if options[:primer_3_preferences][:primer_product_size_range]
108
123
  range = options[:primer_3_preferences][:primer_product_size_range]
109
124
  range_arr = range.split("-")
@@ -267,7 +282,7 @@ write_status "Reading best alignment on each chromosome"
267
282
  container= Bio::PolyploidTools::ExonContainer.new
268
283
  container.flanking_size=options[:flanking_size]
269
284
  container.gene_models(temp_fasta_query)
270
- container.chromosomes(fasta_reference)
285
+ container.chromosomes(target)
271
286
  container.add_parental({:name=>snp_in})
272
287
  container.add_parental({:name=>original_name})
273
288
  snps.each do |snp|
@@ -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.6.0 ruby lib
5
+ # stub: bio-polyploid-tools 0.6.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "bio-polyploid-tools"
9
- s.version = "0.6.0"
9
+ s.version = "0.6.1"
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 = "2015-02-15"
14
+ s.date = "2015-03-05"
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"]
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.6.0
4
+ version: 0.6.1
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: 2015-02-15 00:00:00.000000000 Z
11
+ date: 2015-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bio