bin/hexaploid_primers.rb in bio-polyploid-tools-0.7.3 vs bin/hexaploid_primers.rb in bio-polyploid-tools-0.8.0
- old
+ new
@@ -61,12 +61,12 @@
elsif ARGV.size == 2 #List and fasta file
snp = Bio::PolyploidTools::SNP.parse(line)
region = fasta_reference_db.index.region_for_entry(snp.gene).get_full_region
snp.template_sequence = fasta_reference_db.fetch_sequence(region)
else
- rise Bio::DB::Exonerate::ExonerateException.new "Wrong number of arguments. "
+ raise Bio::DB::Exonerate::ExonerateException.new "Wrong number of arguments. "
end
- rise Bio::DB::Exonerate::ExonerateException.new "No SNP for line '#{line}'" if snp == nil
+ raise Bio::DB::Exonerate::ExonerateException.new "No SNP for line '#{line}'" if snp == nil
snp.snp_in = snp_in
snp.original_name = original_name
snps << snp
chromosome = snp.chromosome unless chromosome
raise Bio::DB::Exonerate::ExonerateException.new "All the snps should come from the same chromosome" if chromosome != snp.chromosome