Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return hydroInterfaceScale;
case "isoelectric-point-scale":
return isoelectricPointScale;
case "hydrophobicity-octanol-scale":
return hydroOctanoleScale;
default:
return null;
}
}
if (
/([ILFVMPWHTEQCYASNDRGK]:-?\d+\.?\d*)(,[ILFVMPWHTEQCYASNDRGK]:-?\d+\.?\d*)*/.test(
this._scale
)
) {
try {
scale = String2Object(this._scale, {
keyFormatter: x => x.toUpperCase(),
valueFormatter: x => parseFloat(x)
});
} catch (error) {
console.error(`Couldn't parse the given scale ${this._scale}`, error);
}
}
return scale;
}