Class: GeneValidator::MakerQIValidationOutput
Overview
Class that stores the validation output information
Instance Attribute Summary
#approach, #conclusion, #description, #errors, #expected, #explanation, #header, #message, #plot_files, #result, #run_time, #short_header, #validation_result
Instance Method Summary
collapse
#color
Constructor Details
#initialize(short_header, header, description, splice_sites, exons, expected = :yes) ⇒ MakerQIValidationOutput
Returns a new instance of MakerQIValidationOutput.
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# File 'lib/genevalidator/validation_maker_qi.rb', line 11
def initialize(, , description, splice_sites, exons,
expected = :yes)
@short_header =
@header =
@description = description
@splice_sites = splice_sites
@exons = exons
@expected = expected
@result = validation
@approach = 'We obtain the fraction of splice sites and exons' \
' confirmed by EST/RNASeq alignment from the FASTA' \
' defline for MAKER predicted gene models. RNASeq is' \
' often best evidence to ascertain the quality of gene' \
' models'
@explanation = explain
@conclusion = conclude
end
|
Instance Method Details
#conclude ⇒ Object
41
42
43
44
45
46
47
48
49
50
51
|
# File 'lib/genevalidator/validation_maker_qi.rb', line 41
def conclude
if @result == :yes
'More than 80% of this gene is confirmed by RNASeq evidence.' \
'Thus, the MAKER Quality Index suggests that the query sequence is of' \
' a good quality.'
else
'Less than 80% of this gene is confirmed by RNASeq evidence.' \
'Thus, the MAKER Quality Index suggests that there may be some issues'\
' with the query seqeunce.'
end
end
|
#explain ⇒ Object
29
30
31
32
33
34
35
36
37
38
39
|
# File 'lib/genevalidator/validation_maker_qi.rb', line 29
def explain
if @splice_sites == -100
"#{@exons}% of exons match an EST/mRNA-seq alignment." \
' No splice sites were identified and as such cannot be confirmed by' \
' an EST/mRNA-seq alignment.'
else
"#{@exons}% of exons match an EST/mRNA-seq alignment and" \
" #{@splice_sites}% of splice sites are confirmed by EST/mRNA-seq" \
' alignment.'
end
end
|
#print ⇒ Object
53
54
55
56
|
# File 'lib/genevalidator/validation_maker_qi.rb', line 53
def print
"Exons: #{@exons}%;" \
" Splice Sites: #{@splice_sites}%"
end
|
#validation ⇒ Object
58
59
60
|
# File 'lib/genevalidator/validation_maker_qi.rb', line 58
def validation
@splice_sites > 80 && @exons > 80 ? :yes : :no
end
|