Skip to content

Commit

Permalink
Add rna-puzzle-ready [in testing]
Browse files Browse the repository at this point in the history
  • Loading branch information
mmagnus committed Aug 15, 2017
1 parent 9021b09 commit 17ba2cb
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion pdb-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
(defvar pdb-menu-hook nil "Menu hook for pdb-mode")
(defconst pdb-mode-menu-def
'("PDB"
("rna-pdb-tools ..."
["RNApuzzle ready" rna-puzzle-ready t]
)
("Select ..."
["Select chain" pdb-select-chain t]
["Select current chain" (pdb-select-chain "") t]
Expand Down Expand Up @@ -1538,7 +1541,7 @@ ATOM 11 O3* A A 1 0.272 -1.450 -2.624 1.00 20.00\n"))
(pdb-view-sentinel procname nil))))
(pdb-sub-defineregion b e)
(pdb-sub-markregion)
(setq pdb-rasmol-filestamp (concat (getenv "PWD") "/#tmp" (number-to-string (elt (current-time) 1)) (number-to-string (emacs-pid)) "#"))
(setq pdb-rasmol-filestamp (concat (getenv "PWD") "/tmp/#tmp" (number-to-string (elt (current-time) 1)) (number-to-string (emacs-pid)) "#"))
(let ((procname)
(bufname "*RASMOL*"))
(write-region pdb-start-user-region pdb-end-user-region pdb-rasmol-filestamp)
Expand Down Expand Up @@ -1566,6 +1569,15 @@ ATOM 11 O3* A A 1 0.272 -1.450 -2.624 1.00 20.00\n"))
(kill-buffer buffer))
(message (concat "RASMOL session " string)))

(message "rna-clean loaded...")

(defun rna-puzzle-ready()
"rna-clean"
(message "rna-clean")
(interactive)
(rna-clean)
)

(defun pdb-ebi-sentinel (process string)
"PDB mode: Process the results from the EBI connection."
(let ((buffer (get-buffer-create (process-name process))))
Expand Down

0 comments on commit 17ba2cb

Please sign in to comment.