@yeyuan98/opencode-bioresearcher-plugin 1.5.3 → 1.5.4-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,6 +28,8 @@ moltype (M):
28
28
  atom (N): # N atoms in this molecule type
29
29
  ```
30
30
 
31
+ **Note:** Atoms are 0-indexed. `atom (275):` means 276 atoms with indices 0-275.
32
+
31
33
  ## Key Information to Extract
32
34
 
33
35
  | Information | How to Find |
@@ -48,6 +50,8 @@ For protein chains, check if the molecule is cyclic (e.g., cyclic peptides) by e
48
50
  2. Search the Bond section for a bond between atom 0 and the C-terminal atom (typically atom N-2, which is the C atom before the terminal O)
49
51
  3. If such a bond exists, the molecule is cyclic
50
52
 
53
+ If no bond is found between atom 0 and the C-terminal atom, the molecule is linear (non-cyclic).
54
+
51
55
  **Bond format in gmx dump:**
52
56
  ```
53
57
  Bond:
@@ -70,7 +74,12 @@ gmx dump -s <tpr_file> 2>&1 | grep -A 1 "atom (" | head -4
70
74
 
71
75
  # Search for bonds involving atom 0 and the C-terminal atom (N-2)
72
76
  # Replace <N-2> with actual value (e.g., 273 for 275-atom molecule)
77
+
78
+ # Standard pattern
73
79
  gmx dump -s <tpr_file> 2>&1 | grep -E "BONDS.*0.*<N-2>"
80
+
81
+ # More robust pattern (explicit whitespace, works better on Windows)
82
+ gmx dump -s <tpr_file> 2>&1 | grep -E "BONDS\ +0 +<N-2>"
74
83
  ```
75
84
 
76
85
  **Example command for 275-atom molecule:**
@@ -78,6 +87,32 @@ gmx dump -s <tpr_file> 2>&1 | grep -E "BONDS.*0.*<N-2>"
78
87
  gmx dump -s <tpr_file> 2>&1 | grep -E "BONDS.*0.*273"
79
88
  ```
80
89
 
90
+ #### Verifying the C-Terminal Atom
91
+
92
+ The C-terminal C atom is typically at index N-2, but this can vary by force field. Verify with:
93
+ ```bash
94
+ # Check atom type at index N-2 (e.g., 273 for 275-atom molecule)
95
+ gmx dump -s <tpr_file> 2>&1 | grep -A2 "atom (273):"
96
+ ```
97
+ Look for `type="C"` to confirm it's the backbone carbon.
98
+
99
+ #### Isolating Bonds for a Specific Moltype
100
+
101
+ When multiple moltypes exist, grep captures all bonds. To isolate one moltype's bonds:
102
+
103
+ **Method 1: sed range (Recommended)**
104
+ ```bash
105
+ # Extract bonds for moltype M (e.g., moltype 1)
106
+ gmx dump -s <tpr_file> 2>&1 | sed -n '/moltype (1)/,/moltype (2)/p' | grep -E "BONDS.*0.*273"
107
+ ```
108
+
109
+ **Method 2: grep with context**
110
+ ```bash
111
+ # Get bonds within 200 lines after moltype declaration
112
+ gmx dump -s <tpr_file> 2>&1 | grep -A200 "moltype (1)" | grep -E "BONDS.*0.*273"
113
+ ```
114
+ Replace moltype numbers and context lines as appropriate for your system.
115
+
81
116
  ## Checking Molecule Independence
82
117
 
83
118
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeyuan98/opencode-bioresearcher-plugin",
3
- "version": "1.5.3",
3
+ "version": "1.5.4-alpha.0",
4
4
  "description": "OpenCode plugin that adds a bioresearcher agent",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",