@jbrowse/plugin-comparative-adapters 2.6.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/LICENSE +201 -0
- package/dist/ChainAdapter/ChainAdapter.d.ts +19 -0
- package/dist/ChainAdapter/ChainAdapter.js +22 -0
- package/dist/ChainAdapter/ChainAdapter.js.map +1 -0
- package/dist/ChainAdapter/configSchema.d.ts +39 -0
- package/dist/ChainAdapter/configSchema.js +45 -0
- package/dist/ChainAdapter/configSchema.js.map +1 -0
- package/dist/ChainAdapter/index.d.ts +3 -0
- package/dist/ChainAdapter/index.js +42 -0
- package/dist/ChainAdapter/index.js.map +1 -0
- package/dist/ChainAdapter/util.d.ts +16 -0
- package/dist/ChainAdapter/util.js +134 -0
- package/dist/ChainAdapter/util.js.map +1 -0
- package/dist/DeltaAdapter/DeltaAdapter.d.ts +20 -0
- package/dist/DeltaAdapter/DeltaAdapter.js +22 -0
- package/dist/DeltaAdapter/DeltaAdapter.js.map +1 -0
- package/dist/DeltaAdapter/configSchema.d.ts +39 -0
- package/dist/DeltaAdapter/configSchema.js +45 -0
- package/dist/DeltaAdapter/configSchema.js.map +1 -0
- package/dist/DeltaAdapter/index.d.ts +3 -0
- package/dist/DeltaAdapter/index.js +42 -0
- package/dist/DeltaAdapter/index.js.map +1 -0
- package/dist/DeltaAdapter/util.d.ts +17 -0
- package/dist/DeltaAdapter/util.js +152 -0
- package/dist/DeltaAdapter/util.js.map +1 -0
- package/dist/MCScanAnchorsAdapter/MCScanAnchorsAdapter.d.ts +33 -0
- package/dist/MCScanAnchorsAdapter/MCScanAnchorsAdapter.js +96 -0
- package/dist/MCScanAnchorsAdapter/MCScanAnchorsAdapter.js.map +1 -0
- package/dist/MCScanAnchorsAdapter/configSchema.d.ts +40 -0
- package/dist/MCScanAnchorsAdapter/configSchema.js +48 -0
- package/dist/MCScanAnchorsAdapter/configSchema.js.map +1 -0
- package/dist/MCScanAnchorsAdapter/index.d.ts +3 -0
- package/dist/MCScanAnchorsAdapter/index.js +42 -0
- package/dist/MCScanAnchorsAdapter/index.js.map +1 -0
- package/dist/MCScanSimpleAnchorsAdapter/MCScanSimpleAnchorsAdapter.d.ts +41 -0
- package/dist/MCScanSimpleAnchorsAdapter/MCScanSimpleAnchorsAdapter.js +121 -0
- package/dist/MCScanSimpleAnchorsAdapter/MCScanSimpleAnchorsAdapter.js.map +1 -0
- package/dist/MCScanSimpleAnchorsAdapter/configSchema.d.ts +40 -0
- package/dist/MCScanSimpleAnchorsAdapter/configSchema.js +48 -0
- package/dist/MCScanSimpleAnchorsAdapter/configSchema.js.map +1 -0
- package/dist/MCScanSimpleAnchorsAdapter/index.d.ts +3 -0
- package/dist/MCScanSimpleAnchorsAdapter/index.js +42 -0
- package/dist/MCScanSimpleAnchorsAdapter/index.js.map +1 -0
- package/dist/MashMapAdapter/MashMapAdapter.d.ts +5 -0
- package/dist/MashMapAdapter/MashMapAdapter.js +42 -0
- package/dist/MashMapAdapter/MashMapAdapter.js.map +1 -0
- package/dist/MashMapAdapter/configSchema.d.ts +37 -0
- package/dist/MashMapAdapter/configSchema.js +45 -0
- package/dist/MashMapAdapter/configSchema.js.map +1 -0
- package/dist/MashMapAdapter/index.d.ts +3 -0
- package/dist/MashMapAdapter/index.js +42 -0
- package/dist/MashMapAdapter/index.js.map +1 -0
- package/dist/PAFAdapter/PAFAdapter.d.ts +20 -0
- package/dist/PAFAdapter/PAFAdapter.js +152 -0
- package/dist/PAFAdapter/PAFAdapter.js.map +1 -0
- package/dist/PAFAdapter/SyntenyFeature.d.ts +4 -0
- package/dist/PAFAdapter/SyntenyFeature.js +17 -0
- package/dist/PAFAdapter/SyntenyFeature.js.map +1 -0
- package/dist/PAFAdapter/configSchema.d.ts +37 -0
- package/dist/PAFAdapter/configSchema.js +45 -0
- package/dist/PAFAdapter/configSchema.js.map +1 -0
- package/dist/PAFAdapter/index.d.ts +3 -0
- package/dist/PAFAdapter/index.js +42 -0
- package/dist/PAFAdapter/index.js.map +1 -0
- package/dist/PAFAdapter/util.d.ts +20 -0
- package/dist/PAFAdapter/util.js +134 -0
- package/dist/PAFAdapter/util.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +51 -0
- package/dist/index.js.map +1 -0
- package/dist/util.d.ts +16 -0
- package/dist/util.js +57 -0
- package/dist/util.js.map +1 -0
- package/esm/ChainAdapter/ChainAdapter.d.ts +19 -0
- package/esm/ChainAdapter/ChainAdapter.js +16 -0
- package/esm/ChainAdapter/ChainAdapter.js.map +1 -0
- package/esm/ChainAdapter/configSchema.d.ts +39 -0
- package/esm/ChainAdapter/configSchema.js +43 -0
- package/esm/ChainAdapter/configSchema.js.map +1 -0
- package/esm/ChainAdapter/index.d.ts +3 -0
- package/esm/ChainAdapter/index.js +14 -0
- package/esm/ChainAdapter/index.js.map +1 -0
- package/esm/ChainAdapter/util.d.ts +16 -0
- package/esm/ChainAdapter/util.js +130 -0
- package/esm/ChainAdapter/util.js.map +1 -0
- package/esm/DeltaAdapter/DeltaAdapter.d.ts +20 -0
- package/esm/DeltaAdapter/DeltaAdapter.js +16 -0
- package/esm/DeltaAdapter/DeltaAdapter.js.map +1 -0
- package/esm/DeltaAdapter/configSchema.d.ts +39 -0
- package/esm/DeltaAdapter/configSchema.js +43 -0
- package/esm/DeltaAdapter/configSchema.js.map +1 -0
- package/esm/DeltaAdapter/index.d.ts +3 -0
- package/esm/DeltaAdapter/index.js +14 -0
- package/esm/DeltaAdapter/index.js.map +1 -0
- package/esm/DeltaAdapter/util.d.ts +17 -0
- package/esm/DeltaAdapter/util.js +148 -0
- package/esm/DeltaAdapter/util.js.map +1 -0
- package/esm/MCScanAnchorsAdapter/MCScanAnchorsAdapter.d.ts +33 -0
- package/esm/MCScanAnchorsAdapter/MCScanAnchorsAdapter.js +94 -0
- package/esm/MCScanAnchorsAdapter/MCScanAnchorsAdapter.js.map +1 -0
- package/esm/MCScanAnchorsAdapter/configSchema.d.ts +40 -0
- package/esm/MCScanAnchorsAdapter/configSchema.js +46 -0
- package/esm/MCScanAnchorsAdapter/configSchema.js.map +1 -0
- package/esm/MCScanAnchorsAdapter/index.d.ts +3 -0
- package/esm/MCScanAnchorsAdapter/index.js +14 -0
- package/esm/MCScanAnchorsAdapter/index.js.map +1 -0
- package/esm/MCScanSimpleAnchorsAdapter/MCScanSimpleAnchorsAdapter.d.ts +41 -0
- package/esm/MCScanSimpleAnchorsAdapter/MCScanSimpleAnchorsAdapter.js +116 -0
- package/esm/MCScanSimpleAnchorsAdapter/MCScanSimpleAnchorsAdapter.js.map +1 -0
- package/esm/MCScanSimpleAnchorsAdapter/configSchema.d.ts +40 -0
- package/esm/MCScanSimpleAnchorsAdapter/configSchema.js +46 -0
- package/esm/MCScanSimpleAnchorsAdapter/configSchema.js.map +1 -0
- package/esm/MCScanSimpleAnchorsAdapter/index.d.ts +3 -0
- package/esm/MCScanSimpleAnchorsAdapter/index.js +14 -0
- package/esm/MCScanSimpleAnchorsAdapter/index.js.map +1 -0
- package/esm/MashMapAdapter/MashMapAdapter.d.ts +5 -0
- package/esm/MashMapAdapter/MashMapAdapter.js +36 -0
- package/esm/MashMapAdapter/MashMapAdapter.js.map +1 -0
- package/esm/MashMapAdapter/configSchema.d.ts +37 -0
- package/esm/MashMapAdapter/configSchema.js +43 -0
- package/esm/MashMapAdapter/configSchema.js.map +1 -0
- package/esm/MashMapAdapter/index.d.ts +3 -0
- package/esm/MashMapAdapter/index.js +14 -0
- package/esm/MashMapAdapter/index.js.map +1 -0
- package/esm/PAFAdapter/PAFAdapter.d.ts +20 -0
- package/esm/PAFAdapter/PAFAdapter.js +147 -0
- package/esm/PAFAdapter/PAFAdapter.js.map +1 -0
- package/esm/PAFAdapter/SyntenyFeature.d.ts +4 -0
- package/esm/PAFAdapter/SyntenyFeature.js +14 -0
- package/esm/PAFAdapter/SyntenyFeature.js.map +1 -0
- package/esm/PAFAdapter/configSchema.d.ts +37 -0
- package/esm/PAFAdapter/configSchema.js +43 -0
- package/esm/PAFAdapter/configSchema.js.map +1 -0
- package/esm/PAFAdapter/index.d.ts +3 -0
- package/esm/PAFAdapter/index.js +14 -0
- package/esm/PAFAdapter/index.js.map +1 -0
- package/esm/PAFAdapter/util.d.ts +20 -0
- package/esm/PAFAdapter/util.js +127 -0
- package/esm/PAFAdapter/util.js.map +1 -0
- package/esm/index.d.ts +6 -0
- package/esm/index.js +45 -0
- package/esm/index.js.map +1 -0
- package/esm/util.d.ts +16 -0
- package/esm/util.js +49 -0
- package/esm/util.js.map +1 -0
- package/package.json +63 -0
- package/src/ChainAdapter/ChainAdapter.ts +18 -0
- package/src/ChainAdapter/configSchema.ts +50 -0
- package/src/ChainAdapter/index.ts +18 -0
- package/src/ChainAdapter/util.ts +170 -0
- package/src/DeltaAdapter/DeltaAdapter.ts +18 -0
- package/src/DeltaAdapter/configSchema.ts +50 -0
- package/src/DeltaAdapter/index.ts +18 -0
- package/src/DeltaAdapter/util.ts +149 -0
- package/src/MCScanAnchorsAdapter/MCScanAnchorsAdapter.test.ts +45 -0
- package/src/MCScanAnchorsAdapter/MCScanAnchorsAdapter.ts +134 -0
- package/src/MCScanAnchorsAdapter/configSchema.ts +52 -0
- package/src/MCScanAnchorsAdapter/index.ts +20 -0
- package/src/MCScanAnchorsAdapter/test_data/grape.bed.gz +0 -0
- package/src/MCScanAnchorsAdapter/test_data/grape.peach.anchors.gz +0 -0
- package/src/MCScanAnchorsAdapter/test_data/peach.bed.gz +0 -0
- package/src/MCScanSimpleAnchorsAdapter/MCScanSimpleAnchorsAdapter.ts +157 -0
- package/src/MCScanSimpleAnchorsAdapter/configSchema.ts +52 -0
- package/src/MCScanSimpleAnchorsAdapter/index.ts +19 -0
- package/src/MashMapAdapter/MashMapAdapter.ts +40 -0
- package/src/MashMapAdapter/configSchema.ts +51 -0
- package/src/MashMapAdapter/index.ts +18 -0
- package/src/PAFAdapter/PAFAdapter.test.ts +37 -0
- package/src/PAFAdapter/PAFAdapter.ts +181 -0
- package/src/PAFAdapter/SyntenyFeature.ts +15 -0
- package/src/PAFAdapter/configSchema.ts +50 -0
- package/src/PAFAdapter/index.ts +18 -0
- package/src/PAFAdapter/test_data/grape.peach.anchors +14966 -0
- package/src/PAFAdapter/test_data/peach_grape.paf +30 -0
- package/src/PAFAdapter/util.test.ts +7 -0
- package/src/PAFAdapter/util.ts +176 -0
- package/src/index.ts +62 -0
- package/src/util.ts +66 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ConfigurationSchema } from '@jbrowse/core/configuration'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* #config PAFAdapter
|
|
5
|
+
*/
|
|
6
|
+
function x() {} // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
7
|
+
|
|
8
|
+
const PAFAdapter = ConfigurationSchema(
|
|
9
|
+
'PAFAdapter',
|
|
10
|
+
{
|
|
11
|
+
/**
|
|
12
|
+
* #slot
|
|
13
|
+
*/
|
|
14
|
+
assemblyNames: {
|
|
15
|
+
type: 'stringArray',
|
|
16
|
+
defaultValue: [],
|
|
17
|
+
description:
|
|
18
|
+
'Array of assembly names to use for this file. The target assembly name is the first value in the array, query assembly name is the second',
|
|
19
|
+
},
|
|
20
|
+
/**
|
|
21
|
+
* #slot
|
|
22
|
+
*/
|
|
23
|
+
targetAssembly: {
|
|
24
|
+
type: 'string',
|
|
25
|
+
defaultValue: '',
|
|
26
|
+
description: 'Alternative to assemblyNames: the target assembly name',
|
|
27
|
+
},
|
|
28
|
+
/**
|
|
29
|
+
* #slot
|
|
30
|
+
*/
|
|
31
|
+
queryAssembly: {
|
|
32
|
+
type: 'string',
|
|
33
|
+
defaultValue: '',
|
|
34
|
+
description: 'Alternative to assemblyNames: the query assembly name',
|
|
35
|
+
},
|
|
36
|
+
/**
|
|
37
|
+
* #slot
|
|
38
|
+
*/
|
|
39
|
+
pafLocation: {
|
|
40
|
+
type: 'fileLocation',
|
|
41
|
+
defaultValue: {
|
|
42
|
+
uri: '/path/to/file.paf',
|
|
43
|
+
locationType: 'UriLocation',
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
{ explicitlyTyped: true },
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
export default PAFAdapter
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import PluginManager from '@jbrowse/core/PluginManager'
|
|
2
|
+
import AdapterType from '@jbrowse/core/pluggableElementTypes/AdapterType'
|
|
3
|
+
import configSchema from './configSchema'
|
|
4
|
+
|
|
5
|
+
export default (pluginManager: PluginManager) => {
|
|
6
|
+
pluginManager.addAdapterType(
|
|
7
|
+
() =>
|
|
8
|
+
new AdapterType({
|
|
9
|
+
name: 'PAFAdapter',
|
|
10
|
+
displayName: 'PAF adapter',
|
|
11
|
+
configSchema,
|
|
12
|
+
adapterMetadata: {
|
|
13
|
+
hiddenFromGUI: true,
|
|
14
|
+
},
|
|
15
|
+
getAdapterClass: () => import('./PAFAdapter').then(r => r.default),
|
|
16
|
+
}),
|
|
17
|
+
)
|
|
18
|
+
}
|