From a064ab869258f3590d85534a34226a982f846c34 Mon Sep 17 00:00:00 2001 From: Anton Oresten <96627903+anton083@users.noreply.github.com> Date: Sat, 4 Nov 2023 23:37:08 +0100 Subject: [PATCH] Update dssp.jl --- src/dssp.jl | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/dssp.jl b/src/dssp.jl index 702c6d9..3a2818c 100644 --- a/src/dssp.jl +++ b/src/dssp.jl @@ -30,7 +30,6 @@ function _get_hbond_map( coord::AbstractArray{T, 3}; cutoff::Float64 = DEFAULT_CUTOFF, margin::Float64 = DEFAULT_MARGIN, - return_e::Bool = false, ) where T <: Real residue_count, atoms_per_residue, _ = size(coord) @assert atoms_per_residue == 4 @@ -54,10 +53,6 @@ function _get_hbond_map( e = _pad(0.0, arr, (1,0), (0,1)) - if return_e - return e - end - local_mask = trues(residue_count, residue_count) for i in 1:residue_count local_mask[i, i] = false @@ -143,4 +138,4 @@ function dssp(coords_chains::Vector{<:AbstractArray{T, 3}}) where T num_vectors_by_chain = [num_vector[get(cum_indices, n-1, 0)+1:cum_indices[n]] for n in 1:length(lengths)] return num_vectors_by_chain -end \ No newline at end of file +end