class FastaPairedWriter
Paired FASTA writer (tracks matching NT and AA sequences in two FASTA files)
Public Class Methods
new(ntfn, aafn)
click to toggle source
# File lib/bigbio/db/fasta/fastapairedwriter.rb, line 7 def initialize ntfn, aafn @nt = FastaWriter.new(ntfn) @aa = FastaWriter.new(aafn) end
Public Instance Methods
close()
click to toggle source
# File lib/bigbio/db/fasta/fastapairedwriter.rb, line 17 def close @nt.close @aa.close end
write(rec)
click to toggle source
# File lib/bigbio/db/fasta/fastapairedwriter.rb, line 12 def write rec @nt.write rec.nt @aa.write rec.aa end