Skip to content

Commit

Permalink
Merge pull request #93 from BranniganLab/92-leaflet-sorting-fails-whe…
Browse files Browse the repository at this point in the history
…n-lipids-split-across-pb

92 leaflet sorter 3 fails when lipids split across pb
  • Loading branch information
gbrannigan authored Nov 14, 2024
2 parents 04c271e + ed87df6 commit 8a9d456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TCL/polarDensity_for_DTA.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ proc leaflet_sorter_3 {atsel_in frame_i} {
set lipid_y [lindex $lipid_com 1]
set lipid_z [lindex $lipid_com 2]

set local_surfaces [atomselect top "name PO4 GL1 GL2 AM1 AM2 and (x-$lipid_x)*(x-$lipid_x)+(y-$lipid_y)*(y-$lipid_y)<200" frame $frame_i]
set local_surfaces [atomselect top "name PO4 GL1 GL2 AM1 AM2 and pbwithin 200 of $atsel_in" frame $frame_i]
set local_midplane [lindex [measure center $local_surfaces weight mass] 2]
$local_surfaces delete

Expand Down

0 comments on commit 8a9d456

Please sign in to comment.