-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added "extract_line_separation.sh" (not documented yet) and updated t…
…he DNA example
- Loading branch information
Showing
3 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
|
||
BRANCH_OF_LOG="" | ||
if [ "$#" -eq 2 ]; then | ||
BRANCH_OF_LOG="$1" | ||
shift 1 | ||
fi | ||
ATOM_SELECTION="$@" | ||
|
||
if [ -z "${EXTRACTCOORDS}" ]; then | ||
EXTRACTCOORDS="pdb2coords.py -blank" | ||
fi | ||
|
||
while read pdb_file_name; do | ||
echo "${0##*/} processing $pdb_file_name" >&2 | ||
print_coords_command="${EXTRACTCOORDS} ${ATOM_SELECTION} < $pdb_file_name" | ||
#eval "$print_coords_command" | coords2dihedrals.py $BRANCH_OF_LOG | ||
eval "$print_coords_command" | coords2projected_dihedrals.py $BRANCH_OF_LOG | awk '{print $3}' | tr "\n" " " | ||
# You can pipe the results to sed -e 's/\s\+/\n/g' to put on separate lines | ||
echo "" | ||
done | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters