@datagrok/sequence-translator 1.5.2 → 1.5.3
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.
package/package.json
CHANGED
|
@@ -155,10 +155,13 @@ export class Rules {
|
|
|
155
155
|
|
|
156
156
|
|
|
157
157
|
for (let i = 0; i < length; i++) {
|
|
158
|
+
const fSplit = firstMonomerCol.get(i).split(',');
|
|
159
|
+
const sSplit = secondMonomerCol.get(i).split(',');
|
|
160
|
+
|
|
158
161
|
const rule = {
|
|
159
162
|
code: codeCol.get(i),
|
|
160
|
-
firstMonomers:
|
|
161
|
-
secondMonomers:
|
|
163
|
+
firstMonomers: fSplit[0] !== '' ? fSplit : [],
|
|
164
|
+
secondMonomers: sSplit[0] !== '' ? sSplit : [],
|
|
162
165
|
firstLinkingGroup: firstLink.get(i),
|
|
163
166
|
secondLinkingGroup: secondLink.get(i)
|
|
164
167
|
};
|
|
@@ -182,11 +185,13 @@ export class Rules {
|
|
|
182
185
|
|
|
183
186
|
for (let i = 0; i < length; i++) {
|
|
184
187
|
const smartsReaction = `${firstReactant.get(i)}.${secondReactant.get(i)}>>${product.get(i)}`;
|
|
188
|
+
const fSplit = firstMonomerCol.get(i).split(',');
|
|
189
|
+
const sSplit = secondMonomerCol.get(i).split(',');
|
|
185
190
|
|
|
186
191
|
const rule = {
|
|
187
192
|
code: codeCol.get(i),
|
|
188
|
-
firstMonomers:
|
|
189
|
-
secondMonomers:
|
|
193
|
+
firstMonomers: fSplit[0] !== '' ? fSplit : [],
|
|
194
|
+
secondMonomers: sSplit[0] !== '' ? sSplit : [],
|
|
190
195
|
reaction: smartsReaction,
|
|
191
196
|
name: name.get(i)
|
|
192
197
|
};
|
|
@@ -106,7 +106,7 @@ export class RulesManager {
|
|
|
106
106
|
const code = this.rules.linkRules[i].code;
|
|
107
107
|
const [firstMonomers, secondMonomers] = getMonomerPairs(this.rules.linkRules[i]);
|
|
108
108
|
for (let j = 0; j < firstMonomers.length; j++) {
|
|
109
|
-
const seq = `${firstMonomers[j]}(${code})-A-A-A-A-${secondMonomers[j]}(${code})
|
|
109
|
+
const seq = `${firstMonomers[j]}(${code})-A-A-A-A-${secondMonomers[j]}(${code})`;
|
|
110
110
|
seqs.push(seq);
|
|
111
111
|
}
|
|
112
112
|
}
|