@genobank/biofs 2.3.12 → 2.4.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.
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* BioIP Collection mappings for Story Protocol
|
|
3
|
+
* SYNCED WITH: api_bioip.py BIOIP_COLLECTIONS_MAINNET (source of truth)
|
|
4
|
+
* Last sync: 2025-12-05
|
|
3
5
|
*/
|
|
4
6
|
export declare const BIOIP_COLLECTIONS: Record<string, string>;
|
|
5
7
|
/**
|
|
@@ -12,6 +14,8 @@ export declare function getCollectionForCategory(category: string): string;
|
|
|
12
14
|
export declare function getDefaultImageForCategory(category: string): string;
|
|
13
15
|
/**
|
|
14
16
|
* Get collection metadata
|
|
17
|
+
* SYNCED WITH: api_bioip.py BIOIP_COLLECTIONS_MAINNET (source of truth)
|
|
18
|
+
* Last sync: 2025-12-05
|
|
15
19
|
*/
|
|
16
20
|
export declare function getCollectionMetadata(address: string): {
|
|
17
21
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../../src/lib/bioip/collections.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../../src/lib/bioip/collections.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA6BpD,CAAC;AAoCF;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAiBjE;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAiBnE;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG;IACtD,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB,CA4CA;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAG1D"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* BioIP Collection mappings for Story Protocol
|
|
4
|
+
* SYNCED WITH: api_bioip.py BIOIP_COLLECTIONS_MAINNET (source of truth)
|
|
5
|
+
* Last sync: 2025-12-05
|
|
4
6
|
*/
|
|
5
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
8
|
exports.BIOIP_COLLECTIONS = void 0;
|
|
@@ -10,27 +12,34 @@ exports.getCollectionMetadata = getCollectionMetadata;
|
|
|
10
12
|
exports.isValidCollection = isValidCollection;
|
|
11
13
|
// Collection addresses mapped by category
|
|
12
14
|
exports.BIOIP_COLLECTIONS = {
|
|
13
|
-
|
|
14
|
-
'
|
|
15
|
-
'
|
|
16
|
-
'
|
|
17
|
-
'
|
|
18
|
-
'
|
|
19
|
-
'
|
|
20
|
-
'
|
|
21
|
-
'
|
|
22
|
-
'
|
|
23
|
-
'
|
|
24
|
-
'
|
|
25
|
-
'
|
|
26
|
-
|
|
27
|
-
'
|
|
28
|
-
'
|
|
29
|
-
'
|
|
30
|
-
'
|
|
31
|
-
'
|
|
32
|
-
'
|
|
33
|
-
|
|
15
|
+
// Primary categories from api_bioip.py
|
|
16
|
+
'genomic': '0x5021F7438ea502b0c346cB59F8E92B749Ecd74B5', // Genomic data (FASTQ, BAM, etc)
|
|
17
|
+
'variant': '0x19A615224D03487AaDdC43e4520F9D83923d9512', // Variant data
|
|
18
|
+
'vcf': '0x19A615224D03487AaDdC43e4520F9D83923d9512', // VCF files (alias for variant)
|
|
19
|
+
'alignment': '0xB8d03f2E1C02e4cC5b5fe1613c575c01BDD12269', // BAM/SAM alignment files
|
|
20
|
+
'bam': '0xB8d03f2E1C02e4cC5b5fe1613c575c01BDD12269', // BAM (alias for alignment)
|
|
21
|
+
'sam': '0xB8d03f2E1C02e4cC5b5fe1613c575c01BDD12269', // SAM (alias for alignment)
|
|
22
|
+
'sequence': '0x88Ed5b47ea8f609Ee14ac60968C3f76f9138a171', // Sequence data (FASTQ, FASTA)
|
|
23
|
+
'fastq': '0x88Ed5b47ea8f609Ee14ac60968C3f76f9138a171', // FASTQ (alias for sequence)
|
|
24
|
+
'fasta': '0x88Ed5b47ea8f609Ee14ac60968C3f76f9138a171', // FASTA (alias for sequence)
|
|
25
|
+
'annotation': '0x88Ed5b47ea8f609Ee14ac60968C3f76f9138a171', // Annotation files (BED, GFF)
|
|
26
|
+
'bed': '0x88Ed5b47ea8f609Ee14ac60968C3f76f9138a171', // BED (alias for annotation)
|
|
27
|
+
'gff': '0x88Ed5b47ea8f609Ee14ac60968C3f76f9138a171', // GFF (alias for annotation)
|
|
28
|
+
// MicroArray/GWAS/SNP/DTC collection - for consumer genomics data
|
|
29
|
+
'microarray': '0x29853ed299B8FBBe16568840F3Bb2A8E40dc7401', // MicroArray/GWAS/SNPs
|
|
30
|
+
'snp': '0x29853ed299B8FBBe16568840F3Bb2A8E40dc7401', // SNP data
|
|
31
|
+
'gwas': '0x29853ed299B8FBBe16568840F3Bb2A8E40dc7401', // GWAS data
|
|
32
|
+
'dtc': '0x29853ed299B8FBBe16568840F3Bb2A8E40dc7401', // Direct-to-Consumer (23andMe, Ancestry)
|
|
33
|
+
'23andme': '0x29853ed299B8FBBe16568840F3Bb2A8E40dc7401', // 23andMe (alias for dtc)
|
|
34
|
+
'ancestry': '0x29853ed299B8FBBe16568840F3Bb2A8E40dc7401', // Ancestry (alias for dtc)
|
|
35
|
+
// Medical imaging
|
|
36
|
+
'medical_imaging': '0x5021F7438ea502b0c346cB59F8E92B749Ecd74B5', // DICOM medical imaging
|
|
37
|
+
'medical': '0x5021F7438ea502b0c346cB59F8E92B749Ecd74B5', // Medical data general
|
|
38
|
+
'dicom': '0x5021F7438ea502b0c346cB59F8E92B749Ecd74B5', // DICOM (alias for medical)
|
|
39
|
+
// Special collections (not in api_bioip.py but used by other services)
|
|
40
|
+
'alphagenome': '0x88Ed5b47ea8f609Ee14ac60968C3f76f9138a171', // AlphaGenome AI predictions
|
|
41
|
+
'newborn': '0xdaB93b0D7f01C9D7ffe33afcDc3518E8d6DE7Be1', // Newborn screening / Trio
|
|
42
|
+
'llm': '0x495B1E8C54b572d78B16982BFb97908823C9358A' // LLM/AI analysis
|
|
34
43
|
};
|
|
35
44
|
// IPFS images for each category - synchronized with bioip.js and api_bioip.py
|
|
36
45
|
// CRITICAL: Story Protocol REQUIRES IPFS URLs - external domain images are flagged as BAD_IMAGE
|
|
@@ -102,38 +111,45 @@ function getDefaultImageForCategory(category) {
|
|
|
102
111
|
}
|
|
103
112
|
/**
|
|
104
113
|
* Get collection metadata
|
|
114
|
+
* SYNCED WITH: api_bioip.py BIOIP_COLLECTIONS_MAINNET (source of truth)
|
|
115
|
+
* Last sync: 2025-12-05
|
|
105
116
|
*/
|
|
106
117
|
function getCollectionMetadata(address) {
|
|
107
118
|
const collectionInfo = {
|
|
108
119
|
'0x5021F7438ea502b0c346cB59F8E92B749Ecd74B5': {
|
|
109
|
-
name: '
|
|
110
|
-
symbol: '
|
|
120
|
+
name: 'Genomic Data IP Assets',
|
|
121
|
+
symbol: 'GENOMIC',
|
|
111
122
|
category: 'genomic'
|
|
112
123
|
},
|
|
113
124
|
'0x19A615224D03487AaDdC43e4520F9D83923d9512': {
|
|
114
|
-
name: 'VCF IP Assets',
|
|
125
|
+
name: 'VCF/Variant IP Assets',
|
|
115
126
|
symbol: 'VCF',
|
|
116
127
|
category: 'vcf'
|
|
117
128
|
},
|
|
118
129
|
'0xB8d03f2E1C02e4cC5b5fe1613c575c01BDD12269': {
|
|
119
|
-
name: '
|
|
120
|
-
symbol: '
|
|
130
|
+
name: 'Alignment IP Assets',
|
|
131
|
+
symbol: 'ALIGN',
|
|
121
132
|
category: 'alignment'
|
|
122
133
|
},
|
|
123
134
|
'0x88Ed5b47ea8f609Ee14ac60968C3f76f9138a171': {
|
|
124
|
-
name: 'AlphaGenome
|
|
125
|
-
symbol: '
|
|
135
|
+
name: 'Sequence/AlphaGenome IP Assets',
|
|
136
|
+
symbol: 'SEQ',
|
|
126
137
|
category: 'sequence'
|
|
127
138
|
},
|
|
128
139
|
'0x29853ed299B8FBBe16568840F3Bb2A8E40dc7401': {
|
|
129
|
-
name: 'SNP
|
|
130
|
-
symbol: '
|
|
140
|
+
name: 'MicroArray/GWAS/SNP IP Assets',
|
|
141
|
+
symbol: 'GWAS',
|
|
131
142
|
category: 'microarray'
|
|
132
143
|
},
|
|
133
144
|
'0x495B1E8C54b572d78B16982BFb97908823C9358A': {
|
|
134
|
-
name: '
|
|
135
|
-
symbol: '
|
|
136
|
-
category: '
|
|
145
|
+
name: 'AI/LLM Analysis IP Assets',
|
|
146
|
+
symbol: 'LLM',
|
|
147
|
+
category: 'llm'
|
|
148
|
+
},
|
|
149
|
+
'0xdaB93b0D7f01C9D7ffe33afcDc3518E8d6DE7Be1': {
|
|
150
|
+
name: 'Newborn/Trio IP Assets',
|
|
151
|
+
symbol: 'NEWBORN',
|
|
152
|
+
category: 'newborn'
|
|
137
153
|
}
|
|
138
154
|
};
|
|
139
155
|
return collectionInfo[address] || {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collections.js","sourceRoot":"","sources":["../../../src/lib/bioip/collections.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"collections.js","sourceRoot":"","sources":["../../../src/lib/bioip/collections.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAuEH,4DAiBC;AAKD,gEAiBC;AAOD,sDAgDC;AAKD,8CAGC;AA3KD,0CAA0C;AAC7B,QAAA,iBAAiB,GAA2B;IACvD,uCAAuC;IACvC,SAAS,EAAE,4CAA4C,EAAY,iCAAiC;IACpG,SAAS,EAAE,4CAA4C,EAAY,eAAe;IAClF,KAAK,EAAE,4CAA4C,EAAgB,gC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;SACpB;KACF,CAAC;IAEF,OAAO,cAAc,CAAC,OAAO,CAAC,IAAI;QAChC,IAAI,EAAE,mBAAmB;QACzB,MAAM,EAAE,QAAQ;QAChB,QAAQ,EAAE,SAAS;KACpB,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,SAAgB,iBAAiB,CAAC,OAAe;IAC/C,MAAM,gBAAgB,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,yBAAiB,CAAC,CAAC,CAAC;IACnE,OAAO,gBAAgB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACvC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genobank/biofs",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "BioFS - GenoBank.io BioNFT-Gated Filesystem CLI with Sequentia Protocol (BioCIDRegistry, ConsentManager, BioPIL) - 97% cost savings vs Story Protocol",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|