Comparing version 2.2.2 to 2.3.0
@@ -18,9 +18,19 @@ "use strict"; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importStar = (this && this.__importStar) || (function () { | ||
var ownKeys = function(o) { | ||
ownKeys = Object.getOwnPropertyNames || function (o) { | ||
var ar = []; | ||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; | ||
return ar; | ||
}; | ||
return ownKeys(o); | ||
}; | ||
return function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
})(); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
@@ -27,0 +37,0 @@ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.sequenceToMF = sequenceToMF; | ||
const mf_utilities_1 = require("mf-utilities"); | ||
const aminoAcids_1 = require("./aminoAcids"); | ||
function sequenceToMF(mf) { | ||
if (mf === '') | ||
return ''; | ||
mf = (0, mf_utilities_1.ensureUppercaseSequence)(mf); | ||
// this function will check if it is a sequence of aa in 1 letter or 3 letters and convert them if it is the case | ||
@@ -7,0 +11,0 @@ // it could be a multiline mf ! |
{ | ||
"name": "peptide", | ||
"version": "2.2.2", | ||
"version": "2.3.0", | ||
"description": "Peptide", | ||
@@ -26,3 +26,3 @@ "keywords": [ | ||
], | ||
"gitHead": "406b3ea18fd9275039b57d25eba0e44d418a0deb" | ||
"gitHead": "78eda3ed5d6830f7570d3867af21af2d5345a39e" | ||
} |
@@ -0,4 +1,8 @@ | ||
import { ensureUppercaseSequence } from 'mf-utilities'; | ||
import { aminoAcids } from './aminoAcids'; | ||
export function sequenceToMF(mf) { | ||
if (mf === '') return ''; | ||
mf = ensureUppercaseSequence(mf); | ||
// this function will check if it is a sequence of aa in 1 letter or 3 letters and convert them if it is the case | ||
@@ -5,0 +9,0 @@ // it could be a multiline mf ! |
Sorry, the diff of this file is not supported yet
90147
1673