1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
#
# = bio/db/fastq/fastq_to_biosequence.rb - Bio::Fastq to Bio::Sequence adapter module
#
# Copyright:: Copyright (C) 2009
# Naohisa Goto <ng@bioruby.org>
# License:: The Ruby License
#
require 'bio/sequence'
require 'bio/sequence/adapter'
# Internal use only. Normal users should not use this module.
#
# Bio::Fastq to Bio::Sequence adapter module.
# It is internally used in Bio::Fastq#to_biosequence.
#
module Bio::Sequence::Adapter::Fastq
extend Bio::Sequence::Adapter
private
def_biosequence_adapter :seq
def_biosequence_adapter :entry_id
# primary accession
def_biosequence_adapter :primary_accession do |orig|
orig.entry_id
end
def_biosequence_adapter :definition
def_biosequence_adapter :quality_scores
def_biosequence_adapter :quality_score_type
def_biosequence_adapter :error_probabilities
end #module Bio::Sequence::Adapter::Fastq
|