From 8a29fae0d288c9247fc105817c7adce44db966d0 Mon Sep 17 00:00:00 2001 From: anton083 Date: Fri, 17 Nov 2023 21:35:08 +0100 Subject: [PATCH] MiSSing -> Unassigned --- src/ribbon/segment.jl | 8 ++++---- test/ribbon/segment.jl | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ribbon/segment.jl b/src/ribbon/segment.jl index 131f4f1..f3ec7d7 100644 --- a/src/ribbon/segment.jl +++ b/src/ribbon/segment.jl @@ -4,7 +4,7 @@ export Segment, extend_segment, segments Segment{SS, T} A segment of a chain with uniform secondary structure. -The segment can have mixed secondary structure if the `SS` type parameter is `MiSSing`. +The segment can have mixed secondary structure if the `SS` type parameter is `Unassigned`. """ struct Segment{SS, T} chain::Chain{T} @@ -13,13 +13,13 @@ struct Segment{SS, T} function Segment{SS}(chain::Chain{T}, range::UnitRange{Int}) where {SS, T} ssvector = view(chain.ssvector, range) - @assert SS == MiSSing || all(==(SS), ssvector) "All residues in the '$SS' segment must have the '$SS' secondary structure" + @assert SS == Unassigned || all(==(SS), ssvector) "All residues in the '$SS' segment must have the '$SS' secondary structure" backbone = chain.backbone[range] return new{SS, T}(chain, range, backbone) end function Segment(chain::Chain{T}, range::UnitRange{Int}) where T - SS = allequal(ssvector) ? ssvector[1] : MiSSing + SS = allequal(ssvector) ? ssvector[1] : Unassigned return Segment{SS}(chain, range) end end @@ -48,7 +48,7 @@ This function is useful if one wishes to access the coordinates of the atoms of parent_vec_range = range .+ offset adjusted_range = max(1, parent_vec_range.start):min(length(segment.chain), parent_vec_range.stop) #checkbounds(segment.chain.backbone, parent_vec_range) - return Segment{MiSSing}(segment.chain, adjusted_range) + return Segment{Unassigned}(segment.chain, adjusted_range) end """ diff --git a/test/ribbon/segment.jl b/test/ribbon/segment.jl index bf267fa..2006ed0 100644 --- a/test/ribbon/segment.jl +++ b/test/ribbon/segment.jl @@ -14,7 +14,7 @@ chain = Chain("A", Backbone(randn(3, 4, 5))) chain.ssvector .= [Loop, Helix, Strand, Strand, Helix] segment = Segment{Strand}(chain, 3:4) - @test extend_segment(segment, 0:3) == Segment{MiSSing}(chain, 2:5) + @test extend_segment(segment, 0:3) == Segment{Unassigned}(chain, 2:5) end @testset "segments" begin