vcflib / bio-vcf

Smart VCF parser DSL
MIT License
82 stars 23 forks source link

Problem using gti in named sample #6

Closed pjotrp closed 10 years ago

pjotrp commented 10 years ago

castelvetrano:~/izip/git/opensource/ruby/bioruby-vcf$ cat test/data/input/multisample.vcf | ./bin/bio-vcf -vi --ifilter 'rec.original.gt!="0/1"' --efilter 'rec.original.gti[0]==0' --seval 'rec.original.ad[s.gti[1]]' vcf 0.0.3-pre4 (biogem Ruby 2.1.0) by Pjotr Prins 2014 Options: {:show_help=>false, :verbose=>true, :ignore_missing=>true, :ifilter=>"rec.original.gt!=\"0/1\"", :efilter=>"rec.original.gti[0]==0", :seval=>"rec.original.ad[s.gti[1]]", :skip_header=>true} ERROR: Field with name GTI does not exist!/export/local/users/wrk/izip/git/opensource/ruby/bioruby-vcf/lib/bio-vcf/vcfsample.rb:24:in eval': ERROR: Field with name GTI does not exist! (RuntimeError) from /export/local/users/wrk/izip/git/opensource/ruby/bioruby-vcf/lib/bio-vcf/vcfgenotypefield.rb:143:inmethod_missing' from (eval):1:in eval' from /export/local/users/wrk/izip/git/opensource/ruby/bioruby-vcf/lib/bio-vcf/vcfsample.rb:24:ineval' from /export/local/users/wrk/izip/git/opensource/ruby/bioruby-vcf/lib/bio-vcf/vcfsample.rb:24:in eval' from ./bin/bio-vcf:141:inblock in parse_line'

pjotrp commented 10 years ago

Fixed.