# Angular Boat Bio #### Install with Bower ```sh $ bower install git@git.vbio.top:ng/ng-boat-bio.git --save ``` #### Load the script files in your application ```html ``` #### Add the 'boat' and 'boat.bio' module as a dependency to your application module: ```js // Add boat.bio as a dependency to your app angular.module('App', ['boat.bio']); // Inject Bio into your controller angular.module('App').controller('MainCtrl', function($scope, Bio) { // ... }); ``` #### Bio methods - randomSeq(len): 返回固定长度的随机序列. - validator().divBy3(seq): 序列能否被 3 整除 return {status: true|false, msg: []} - validator().orfClassify(seq, orfMsg='orfMsgEn'): return {status: true, msg: [], standardStart: standardStart, mid_stop: mid_stop} orfMsg为dict-msg.js里面的function name 为以后多语言版本作准备 - validator().linkerClassify(seq, linkerMsg='linkerMsgEn'): return {status: true, msg: []} linkerMsg为dict-msg.js里面的function name - validator().vectorJudgment(feat, orfMsg='orfMsgEn'): 判断feat里面的orf, return {status: true, msg: []} - stopCodonJudgment(feat, orfMsg='orfMsgEn'): 判断feat里面的orf是否需要切除stopCodon return {msg: msg, errorList: errorList, feat: feat, copyFeat: copyFeat, stopCodonIndexList: stopCodonIndexList}, msg为orf的错误信息列表, errorList为需要切除stopCodon的orf列表['ORF #1', 'ORF #2'], feat为未切除stopCodon的feat, copyFeat为切除stopCodon的feat, stopCodonIndexList:要切除stopcodon的index的集合, stopCodonOrfList: 要切除stopcodon的orf集合 - reverseComplement(seq):返回反向互补序列,只适用于只有'ACTG'的序列