@teselagen/bio-parsers 0.1.1
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/ab1ToJson.d.ts +11 -0
- package/anyToJson.d.ts +8 -0
- package/fastaToJson.d.ts +8 -0
- package/genbankToJson.d.ts +2 -0
- package/geneiousXmlToJson.d.ts +2 -0
- package/gffToJson.d.ts +2 -0
- package/index.d.ts +15 -0
- package/index.js +84 -0
- package/index.mjs +22202 -0
- package/jbeiXmlToJson.d.ts +2 -0
- package/jsonToBed.d.ts +2 -0
- package/jsonToFasta.d.ts +1 -0
- package/jsonToGenbank.d.ts +1 -0
- package/jsonToJsonString.d.ts +5 -0
- package/package.json +16 -0
- package/sbolXmlToJson.d.ts +2 -0
- package/snapgeneToJson.d.ts +2 -0
- package/utils/NameUtils.d.ts +1 -0
- package/utils/cleanUpTeselagenJsonForExport.d.ts +1 -0
- package/utils/constants.d.ts +22 -0
- package/utils/convertOldSequenceDataToNewDataType.d.ts +1 -0
- package/utils/createInitialSequence.d.ts +9 -0
- package/utils/extractFileExtension.d.ts +1 -0
- package/utils/flattenSequenceArray.d.ts +1 -0
- package/utils/getArrayBufferFromFile.d.ts +1 -0
- package/utils/isBrowser.d.ts +2 -0
- package/utils/parseUracilFeatures.d.ts +1 -0
- package/utils/pragmasAndTypes.d.ts +8 -0
- package/utils/searchWholeObjByName.d.ts +11 -0
- package/utils/splitStringIntoLines.d.ts +1 -0
- package/utils/unmangleUrls.d.ts +5 -0
- package/utils/validateSequence.d.ts +12 -0
- package/utils/validateSequenceArray.d.ts +1 -0
package/ab1ToJson.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default ab1ToJson;
|
|
2
|
+
declare function ab1ToJson(fileObj: any, options?: {}): Promise<{
|
|
3
|
+
messages: never[];
|
|
4
|
+
success: boolean;
|
|
5
|
+
parsedSequence: {
|
|
6
|
+
features: never[];
|
|
7
|
+
name: any;
|
|
8
|
+
sequence: string;
|
|
9
|
+
};
|
|
10
|
+
}[]>;
|
|
11
|
+
export function convertBasePosTraceToPerBpTrace(chromData: any): any;
|
package/anyToJson.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export default anyToJson;
|
|
2
|
+
/**
|
|
3
|
+
* takes in file content string and its file name and determines what parser it needs to be sent to.
|
|
4
|
+
* The file is parsed to our old JSON schema and after it goes through an intermediate step where we convert that json to our new schema
|
|
5
|
+
* @param {string} fileContentString content of the file as a string
|
|
6
|
+
* @param {Function} onFileParsed //tnr: fill this out
|
|
7
|
+
*/
|
|
8
|
+
declare function anyToJson(fileContentStringOrFileObj: any, options: any): Promise<any>;
|
package/fastaToJson.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export default fastaToJson;
|
|
2
|
+
/**
|
|
3
|
+
* parses a fasta file that may or may not contain multiple resultArray
|
|
4
|
+
* @param {[string]} fileString [string respresentation of file contents]
|
|
5
|
+
* @param {[function]} onFileParsed [callback for a parsed sequence]
|
|
6
|
+
* @author Joshua P Nixon
|
|
7
|
+
*/
|
|
8
|
+
declare function fastaToJson(fileString: [string], options: any): any;
|
package/gffToJson.d.ts
ADDED
package/index.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { default as anyToJson } from "./anyToJson";
|
|
2
|
+
export { default as fastaToJson } from "./fastaToJson";
|
|
3
|
+
export { default as genbankToJson } from "./genbankToJson";
|
|
4
|
+
export { default as sbolXmlToJson } from "./sbolXmlToJson";
|
|
5
|
+
export { default as geneiousXmlToJson } from "./geneiousXmlToJson";
|
|
6
|
+
export { default as jbeiXmlToJson } from "./jbeiXmlToJson";
|
|
7
|
+
export { default as jsonToGenbank } from "./jsonToGenbank";
|
|
8
|
+
export { default as jsonToFasta } from "./jsonToFasta";
|
|
9
|
+
export { default as snapgeneToJson } from "./snapgeneToJson";
|
|
10
|
+
export { default as jsonToBed } from "./jsonToBed";
|
|
11
|
+
export { default as cleanUpTeselagenJsonForExport } from "./utils/cleanUpTeselagenJsonForExport";
|
|
12
|
+
export { default as parseUracilFeatures } from "./utils/parseUracilFeatures";
|
|
13
|
+
export { default as jsonToJsonString } from "./jsonToJsonString";
|
|
14
|
+
export { default as ab1ToJson, convertBasePosTraceToPerBpTrace } from "./ab1ToJson";
|
|
15
|
+
export { default as searchWholeObjByName, searchWholeObjByNameSimple, searchWholeObjByNameSimpleArray } from "./utils/searchWholeObjByName";
|