@@ -86,35 +86,35 @@ function _runcmd(cmd::Cmd)
8686 return exitcode, out, err
8787end
8888
89- struct R2Rplot
89+ struct Plot
9090 svg:: String
9191end
9292
93- function Base. showable (mime:: Type{T} , p:: R2Rplot ) where {T <: MIME }
93+ function Base. showable (mime:: Type{T} , p:: Plot ) where {T <: MIME }
9494 if mime === MIME " image/svg+xml"
9595 return true
9696 end
9797 return false
9898end
9999
100- function Base. show (io:: IO , mime:: MIME"image/svg+xml" , p:: R2Rplot )
100+ function Base. show (io:: IO , mime:: MIME"image/svg+xml" , p:: Plot )
101101 # TODO : why doesn't the following signature work? claims there is
102102 # no method to call for MIME"image/svg+xml", but
103103 # MIME"image/svg+xml" <: MIME ???
104- # function Base.show(io::IO, mime::T, p::R2Rplot ) where {T <: MIME}
104+ # function Base.show(io::IO, mime::T, p::Plot ) where {T <: MIME}
105105 println (io, p. svg)
106106end
107107
108108function plot (msa:: MSA ; kwargs... )
109- ps, res, out, err = r2r (msa; kwargs... )
110- return R2Rplot (res)
109+ ps, res, out, err = run_r2r (msa; kwargs... )
110+ return Plot (res)
111111end
112112
113- function r2r (msa:: MSA ;
114- GSC_weighted_consensus:: Bool = true ,
115- identity_levels = [0.97 , 0.9 , 0.75 ],
116- present_levels = [0.97 , 0.9 , 0.75 , 0.5 ],
117- max_noncanon:: Real = 0.1 )
113+ function run_r2r (msa:: MSA ;
114+ GSC_weighted_consensus:: Bool = true ,
115+ identity_levels = [0.97 , 0.9 , 0.75 ],
116+ present_levels = [0.97 , 0.9 , 0.75 , 0.5 ],
117+ max_noncanon:: Real = 0.1 )
118118 # TODO
119119 # - output file type: svg or pdf
120120 # - assertions on identity_levels, present_levels, max_noncanon
0 commit comments