@datagrok/bio 2.15.12 → 2.15.13
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
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"name": "Aleksandr Tanas",
|
|
6
6
|
"email": "atanas@datagrok.ai"
|
|
7
7
|
},
|
|
8
|
-
"version": "2.15.
|
|
8
|
+
"version": "2.15.13",
|
|
9
9
|
"description": "Bioinformatics support (import/export of sequences, conversion, visualization, analysis). [See more](https://github.com/datagrok-ai/public/blob/master/packages/Bio/README.md) for details.",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -974,7 +974,8 @@ function getCorrectedMolBlock(molBlock: string) {
|
|
|
974
974
|
const rgpLineIdx = lines.findIndex((line) => line.startsWith('M') && line.includes('RGP'));
|
|
975
975
|
|
|
976
976
|
if (rgpLineIdx === -1) {
|
|
977
|
-
|
|
977
|
+
// number of r groups has 3 empty slots before it, atom numbers have 4 empty slots before them
|
|
978
|
+
let rgpLine = `M RGP${rgroupLineNums.length.toString().padStart(3,' ')}${Object.entries(rgroupLineNumbers).map(([atomLine, rGroupNum]) => `${atomLine.toString().padStart(4, ' ')}${rGroupNum.toString().padStart(4, ' ')}`).join('')}`;
|
|
978
979
|
const mEndIdx = lines.findIndex((line) => line.startsWith('M') && line.includes('END'));
|
|
979
980
|
lines.splice(mEndIdx, 0, rgpLine);
|
|
980
981
|
}
|