Skip to content

Commit d1519be

Browse files
committed
shift documentation
1 parent 88cc15a commit d1519be

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/record.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,12 @@ end
446446

447447
Base.isless(g1::AbstractGene, g2::AbstractGene) = ((locus(g1) == locus(g2)) && (feature(g1) == "gene" && feature(g2) != "gene")) || (locus(g1) < locus(g2))
448448

449+
450+
"""
451+
shift!(gene, p)
452+
453+
Shift the position of `gene` by `p`.
454+
"""
449455
function shift!(gene, p)
450456
setfield!(gene, :locus, shift(locus(gene), p))
451457
return gene

0 commit comments

Comments
 (0)