class FastaPairedReader
FASTA paired reader keeps track of two FASTA files containing matching NT and AA sequences.
Public Class Methods
new(ntfn, aafn, opts={:regex => '(\S+)'})
click to toggle source
# File lib/bigbio/db/fasta/fastapairedreader.rb, line 7 def initialize ntfn, aafn, opts={:regex => '(\S+)'} @nt = FastaReader.new(ntfn, opts) @aa = FastaReader.new(aafn, opts) end
Public Instance Methods
get(id)
click to toggle source
return a NT+AA pair
# File lib/bigbio/db/fasta/fastapairedreader.rb, line 13 def get id nt = @nt.get(id) aa = @aa.get(id) FastaPairedRecord.new(nt, aa) end