Code Style

Style requirements for code

Be aware that functions in julia implicitly return the the result of the last statement in the function.

module AwesomeFeatures

using IntervalsTrees, JSON

include("feature1.jl")
include("feature2.jl")

end
function Base.start(iter::YourType)
  ...
end

Base.done(iter::YourType, state) = ...
"This function foo's something"
foo(x) = 2 * x
name(node) # get node name
name!(node, "somename") # set node name
matches == sketchlen ? 1.0 : matches / (2 * sketchlen - matches)

#The above code is more statement-like, with two return statements
#and so is more readable as a if-else block:

if matches == sketchlin
    return 1.0
else
    return matches / (2 * sketchlen - matches)
end

#However,

x == y ? '|' : ' '

#Returns one of two expression values; it is more expression-like
#and so using a ternary operator is perfectly readable, and is
#aceptable in BioJulia code.