forked from TeselaGen/ve-sequence-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemporarily_disabled_index.d.ts
310 lines (281 loc) · 8.2 KB
/
temporarily_disabled_index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
// export type tidyUpSequenceData = (options: WithTableParamsOptions) => void;
interface sequenceDataObj {
/**
* the DNA sequence string
*/
sequence: string;
/**
* the AA sequence string
*/
protein: string;
/**
* the DNA size
*/
size: integer;
/**
* the DNA size
*/
proteinSize: integer;
features: [featureObj]
}
interface featureObj extends annotationObj {
color: string;
}
interface annotationObj {
/**
* 0-based inclusive indexed DNA position
*/
start: integer;
/**
* 0-based inclusive indexed DNA position
*/
end: integer;
}
/**
* Withs table params
* @param options
* @example
* tidyUpSequenceData(sequenceData)
*/
export function tidyUpSequenceData(
sequenceData: sequenceDataObj;
options: tidyUpSequenceDataOptions;
): string;
interface tidyUpSequenceDataOptions {
/**
* whether to return the annotations as arrays (default) or objects
*/
annotationsAsObjects: boolean;
logMessages: string;
/**
* filter the sequence string
*/
removeUnwantedChars: string;
/**
* convert from AA indexed {start,end} to a DNA bp indexed {start,end}
*/
convertAnnotationsFromAAIndices: boolean;
additionalValidChars: string;
charOverrides: string;
proteinFilterOptions: object;
}
// enzymeList
// featureColors
// DNAComplementMap
// FeatureTypes
// getDigestFragmentsForCutsites
// getDigestFragmentsForRestrictionEnzymes
// addGapsToSeqReads
// getInsertBetweenVals
// adjustBpsToReplaceOrInsert
// getLeftAndRightOfSequenceInRangeGivenPosition
// annotationTypes
// bioData
// getOrfsFromSequence
// calculatePercentGC
// getOverlapBetweenTwoSequences
// calculateTm
// getPossiblePartsFromSequenceAndEnzymes
// condensePairwiseAlignmentDifferences
// getReverseAminoAcidStringFromSequenceString
// convertDnaCaretPositionOrRangeToAA
// getReverseComplementAminoAcidStringFromSequenceString
// convertDnaCaretPositionToAACaretPosition
// getReverseComplementAnnotation
// convertDnaRangeToAARange
// cutSequenceByRestrictionEnzyme
// getReverseComplementSequenceAndAnnotations
// deleteSequenceDataAtRange
// getReverseComplementSequenceString
// getSequenceDataBetweenRange
// doesEnzymeChopOutsideOfRecognitionSite
// getVirtualDigest
// guessIfSequenceIsDnaAndNotProtein
// filterAminoAcidSequenceString
// filterSequenceString
// insertGapsIntoRefSeq
// findNearestRangeOfSequenceOverlapToPosition
// insertSequenceDataAtPosition
// findOrfsInPlasmid
// insertSequenceDataAtPositionOrRange
// findSequenceMatches
// mapAnnotationsToRows
// generateSequenceData
// prepareCircularViewData
// getAllInsertionsInSeqReads
// prepareRowData
// getAminoAcidDataForEachBaseOfDna
// prepareRowData_output1
// getAminoAcidFromSequenceTriplet
// proteinAlphabet
// getAminoAcidStringFromSequenceString
// rotateBpsToPosition
// getCodonRangeForAASliver
// rotateSequenceDataToPosition
// getComplementAminoAcidStringFromSequenceString
// getComplementSequenceAndAnnotations
// threeLetterSequenceStringToAminoAcidMap
// getComplementSequenceString
// tidyUpAnnotation
// getCutsiteType
// tidyUpSequenceData
// getCutsitesFromSequence
// getDegenerateDnaStringFromAAString
// /*~ If this module has methods, declare them as functions like so.
// */
// interface WithUpsertOptions {
// /**
// * @property {string} mutationName - optional rename of the default upsert function withXXXX to whatever you want
// *
// */
// mutationName: string;
// /**
// * @property {[queryNameStrings]} refetchQueries -
// *
// */
// refetchQueries: [queryNameStrings];
// /**
// * @property {boolean} showError - default=true -- whether or not to show a default error message on failure
// *
// */
// showError: boolean;
// /**
// * @property {obj | function} extraMutateArgs - obj or function that
// * returns obj to get passed to the actual mutation call
// *
// */
// extraMutateArgs: obj | function;
// /**
// * @property {[string]} invalidate - array of model types to invalidate after the mutate
// *
// */
// invalidate: [string];
// /**
// * @property {boolean} asFunction - if true, this gives you back a function you can call directly instead of a HOC
// *
// */
// asFunction: boolean;
// /**
// * @property {string} idAs - if not using a fragment, you get an id
// * field back as default. But, if the record doesn't have an id field,
// * and instead has a 'code', you can set idAs: 'code'
// *
// */
// idAs: string;
// /**
// * * @property {boolean} forceCreate - sometimes the thing you're creating
// * won't have an id field (it might have a code or something else as its primary key).
// * This lets you override the default behavior of updating if no id is found
// *
// */
// forceCreate: boolean;
// /**
// * * @property {boolean} forceUpdate - sometimes the thing you're updating might have
// * an id field. This lets you override that. This lets you override the default behavior of creating if an id is found
// *
// */
// forceUpdate: boolean;
// /**
// * * @property {boolean} excludeResults - don't fetch back result entities after update or create
// */
// excludeResults: boolean;
// }
// /**
// * Note all these options can be passed at Design Time or at Runtime (like reduxForm())
// */
// interface WithTableParamsOptions {
// /**
// * @property {*string} formName - required unique identifier for the table
// */
// formName: string;
// /**
// * @property The data table schema or a function returning it. The function wll be called with props as the argument.
// */
// schema: Object | Function;
// /**
// * @property whether the table should connect to/update the URL
// */
// urlConnected: boolean;
// /**
// * @property whether or not to pass the selected entities
// */
// withSelectedEntities: boolean;
// /**
// * @property whether the model is keyed by code instead of id in the db
// */
// isCodeModel: boolean;
// /**
// * @property tableParam defaults such as pageSize, filter, etc
// */
// defaults: object;
// /**
// * @property won't console an error if an order is not found on schema
// */
// noOrderError: boolean;
// }
// /**
// * Withs table params
// * @param options
// * @example
// * withTableParams({formName: "mySequenceTable"})
// */
// export type withTableParams = (options: WithTableParamsOptions) => void;
// interface ToastrFunc {
// /**
// * Fire a little toastr notification
// *
// * @example
// * // they all work similarly
// *
// * window.toastr.warning("Error")
// * you can also chain them using a unique key
// * window.toastr.info("Sequence Saving", {key: "seqSave"})
// * window.toastr.success("Sequence Saved!", {key: "seqSave"})
// */
// (message: string, options: ToastrFuncOptions): void;
// }
// interface ToastrFuncOptions {
// /**
// * defaults to false, set this only if you're also using a key option and you want to
// * have the timeout be refreshed
// */
// updateTimeout: boolean;
// /**
// * use a unique key to update the toastr
// */
// key: string;
// }
// declare global {
// interface Window {
// toastr: {
// success: ToastrFunc;
// error: ToastrFunc;
// warning: ToastrFunc;
// info: ToastrFunc;
// default: ToastrFunc;
// };
// }
// }
// // export function myOtherMethod(a: number): number;
// // /*~ You can declare types that are available via importing the module */
// // export interface SomeType {
// // name: string;
// // length: number;
// // extras?: string[];
// // }
// // /*~ You can declare properties of the module using const, let, or var */
// // export const myField: number;
// // /*~ If there are types, properties, or methods inside dotted names
// // *~ of the module, declare them inside a 'namespace'.
// // */
// // export namespace subProp {
// // /*~ For example, given this definition, someone could write:
// // *~ import { subProp } from 'yourModule';
// // *~ subProp.foo();
// // *~ or
// // *~ import * as yourMod from 'yourModule';
// import { withTableParams } from "./index";
// // *~ yourMod.subProp.foo();
// // */
// // export function foo(): void;
// // }