Skip to content

Commit

Permalink
Merge pull request #401 from haddocking/400
Browse files Browse the repository at this point in the history
Remove solvent molecules from the output of `mdscoring`
  • Loading branch information
amjjbonvin committed Apr 13, 2022
2 parents fbcdd74 + 3484d3a commit c80475f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/scoring/mdscoring-test.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ tolerance = 20
contactairs = true
ssdihed = "alphabeta"
dnarest_on = true
#keepwater = true

# ====================================================================
10 changes: 9 additions & 1 deletion src/haddock/modules/scoring/mdscoring/cns/mdscoring.cns
Original file line number Diff line number Diff line change
Expand Up @@ -423,10 +423,18 @@ inline @MODULE:print_coorheader.cns

coor sele= (not name H* and not resn ANI and not resn XAN and not resn DAN) orient end

write coordinates format=pdbo output=$output_pdb_filename end
write coordinates sele=(not (resn WA* or resn HOH or resn TIP* or resn DMS)) format=pdbo output=$output_pdb_filename end

set message=normal echo=on end

display OUTPUT: $output_pdb_filename

if ($refine.keepwater eq true) then
evaluate ($filename= $output_pdb_filename - ".pdb" + "_solvent.pdb")
write coordinates sele=(all) format=pdbo output=$filename end
end if

display OUTPUT: $output_pdb_filename

stop

0 comments on commit c80475f

Please sign in to comment.