@pikaa-ai/pikaa 0.3.22 → 0.3.24

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.
Files changed (191) hide show
  1. package/assets/brand/orbit-logo-option4-whale.jpg +0 -0
  2. package/assets/brand/orbit-logo.jpg +0 -0
  3. package/assets/brand/orbit-logo.png +0 -0
  4. package/assets/brand/orbit-logo.svg +3 -0
  5. package/dist/cli.js +448 -181
  6. package/dist/index.js +22 -2
  7. package/package.json +1 -2
  8. package/skills/adaptyv/SKILL.md +0 -240
  9. package/skills/aeon/SKILL.md +0 -402
  10. package/skills/analytical-method-validation/SKILL.md +0 -299
  11. package/skills/anndata/SKILL.md +0 -431
  12. package/skills/arbor/SKILL.md +0 -152
  13. package/skills/arboreto/SKILL.md +0 -267
  14. package/skills/astropy/SKILL.md +0 -353
  15. package/skills/autoskill/SKILL.md +0 -233
  16. package/skills/benchling-integration/SKILL.md +0 -229
  17. package/skills/bgpt-paper-search/SKILL.md +0 -75
  18. package/skills/bids/SKILL.md +0 -237
  19. package/skills/biopython/SKILL.md +0 -472
  20. package/skills/bioservices/SKILL.md +0 -399
  21. package/skills/bulk-rnaseq/SKILL.md +0 -198
  22. package/skills/cellxgene-census/SKILL.md +0 -283
  23. package/skills/cirq/SKILL.md +0 -370
  24. package/skills/citation-management/SKILL.md +0 -329
  25. package/skills/clinical-decision-support/SKILL.md +0 -238
  26. package/skills/clinical-decision-support/references/README.md +0 -62
  27. package/skills/clinical-reports/SKILL.md +0 -248
  28. package/skills/clinical-reports/references/README.md +0 -34
  29. package/skills/cobrapy/SKILL.md +0 -496
  30. package/skills/consciousness-council/SKILL.md +0 -151
  31. package/skills/dask/SKILL.md +0 -482
  32. package/skills/database-lookup/SKILL.md +0 -386
  33. package/skills/datamol/SKILL.md +0 -200
  34. package/skills/deepchem/SKILL.md +0 -244
  35. package/skills/deepspot-m/SKILL.md +0 -175
  36. package/skills/deeptools/SKILL.md +0 -412
  37. package/skills/depmap/SKILL.md +0 -301
  38. package/skills/dhdna-profiler/SKILL.md +0 -184
  39. package/skills/diffdock/SKILL.md +0 -488
  40. package/skills/dnanexus-integration/SKILL.md +0 -325
  41. package/skills/docx/SKILL.md +0 -99
  42. package/skills/esm/SKILL.md +0 -334
  43. package/skills/etetoolkit/SKILL.md +0 -327
  44. package/skills/exa-search/SKILL.md +0 -102
  45. package/skills/executing-plans/SKILL.md +0 -14
  46. package/skills/experimental-design/SKILL.md +0 -234
  47. package/skills/exploratory-data-analysis/SKILL.md +0 -280
  48. package/skills/flowio/SKILL.md +0 -310
  49. package/skills/fluidsim/SKILL.md +0 -279
  50. package/skills/frontend-design/SKILL.md +0 -100
  51. package/skills/generate-image/SKILL.md +0 -304
  52. package/skills/geniml/SKILL.md +0 -310
  53. package/skills/genomic-coordinates/SKILL.md +0 -189
  54. package/skills/genomic-intelligence/SKILL.md +0 -243
  55. package/skills/geomaster/README.md +0 -105
  56. package/skills/geomaster/SKILL.md +0 -366
  57. package/skills/geopandas/SKILL.md +0 -250
  58. package/skills/get-available-resources/SKILL.md +0 -260
  59. package/skills/gget/SKILL.md +0 -153
  60. package/skills/ginkgo-cloud-lab/SKILL.md +0 -106
  61. package/skills/glycoengineering/SKILL.md +0 -339
  62. package/skills/gtars/SKILL.md +0 -282
  63. package/skills/guardian-rails/SKILL.md +0 -54
  64. package/skills/histolab/SKILL.md +0 -243
  65. package/skills/hugging-science/SKILL.md +0 -132
  66. package/skills/hypogenic/SKILL.md +0 -290
  67. package/skills/hypothesis-generation/SKILL.md +0 -264
  68. package/skills/imaging-data-commons/SKILL.md +0 -496
  69. package/skills/infographics/SKILL.md +0 -315
  70. package/skills/iso-standards-readiness/SKILL.md +0 -352
  71. package/skills/lab-hardware-cad/SKILL.md +0 -372
  72. package/skills/labarchive-integration/SKILL.md +0 -216
  73. package/skills/lamindb/SKILL.md +0 -408
  74. package/skills/latchbio-integration/SKILL.md +0 -227
  75. package/skills/latex-posters/SKILL.md +0 -369
  76. package/skills/latex-posters/references/README.md +0 -439
  77. package/skills/liteparse/SKILL.md +0 -295
  78. package/skills/literature-review/SKILL.md +0 -263
  79. package/skills/markdown-mermaid-writing/SKILL.md +0 -322
  80. package/skills/market-research-reports/SKILL.md +0 -337
  81. package/skills/markitdown/SKILL.md +0 -264
  82. package/skills/matchms/SKILL.md +0 -276
  83. package/skills/matlab/SKILL.md +0 -274
  84. package/skills/matplotlib/SKILL.md +0 -378
  85. package/skills/medchem/SKILL.md +0 -321
  86. package/skills/modal/SKILL.md +0 -468
  87. package/skills/molecular-dynamics/SKILL.md +0 -458
  88. package/skills/molfeat/SKILL.md +0 -348
  89. package/skills/ncats-arax/SKILL.md +0 -178
  90. package/skills/networkx/SKILL.md +0 -440
  91. package/skills/neurokit2/SKILL.md +0 -323
  92. package/skills/neuropixels-analysis/SKILL.md +0 -412
  93. package/skills/nextflow/SKILL.md +0 -195
  94. package/skills/omero-integration/SKILL.md +0 -222
  95. package/skills/onekgpd/SKILL.md +0 -371
  96. package/skills/ontology-term-resolution/SKILL.md +0 -147
  97. package/skills/open-notebook/SKILL.md +0 -297
  98. package/skills/openpiv/SKILL.md +0 -469
  99. package/skills/opentrons-integration/SKILL.md +0 -322
  100. package/skills/optimize-for-gpu/SKILL.md +0 -176
  101. package/skills/owasp-top10/SKILL.md +0 -48
  102. package/skills/pacsomatic/LICENSE +0 -21
  103. package/skills/pacsomatic/SKILL.md +0 -150
  104. package/skills/paper-lookup/SKILL.md +0 -263
  105. package/skills/paperclip/SKILL.md +0 -413
  106. package/skills/paperzilla/SKILL.md +0 -159
  107. package/skills/parallel-web/SKILL.md +0 -128
  108. package/skills/pathml/SKILL.md +0 -222
  109. package/skills/pathogen-variant-surveillance/SKILL.md +0 -208
  110. package/skills/pathway-enrichment/SKILL.md +0 -194
  111. package/skills/pdf/SKILL.md +0 -322
  112. package/skills/peer-review/SKILL.md +0 -288
  113. package/skills/penetration-testing/SKILL.md +0 -31
  114. package/skills/pennylane/SKILL.md +0 -240
  115. package/skills/phylogenetics/SKILL.md +0 -409
  116. package/skills/pi-agent/SKILL.md +0 -83
  117. package/skills/pkpd-modeling/SKILL.md +0 -381
  118. package/skills/polars/SKILL.md +0 -393
  119. package/skills/polars-bio/SKILL.md +0 -379
  120. package/skills/ponytail/SKILL.md +0 -31
  121. package/skills/ponytail-audit/SKILL.md +0 -18
  122. package/skills/pptx/SKILL.md +0 -246
  123. package/skills/pptx-posters/SKILL.md +0 -258
  124. package/skills/primekg/SKILL.md +0 -99
  125. package/skills/protocolsio-integration/SKILL.md +0 -236
  126. package/skills/pufferlib/SKILL.md +0 -328
  127. package/skills/pydeseq2/SKILL.md +0 -369
  128. package/skills/pydicom/SKILL.md +0 -381
  129. package/skills/pyhealth/SKILL.md +0 -124
  130. package/skills/pylabrobot/SKILL.md +0 -216
  131. package/skills/pymatgen/SKILL.md +0 -404
  132. package/skills/pymc/SKILL.md +0 -310
  133. package/skills/pymoo/SKILL.md +0 -276
  134. package/skills/pyopenms/SKILL.md +0 -179
  135. package/skills/pysam/SKILL.md +0 -330
  136. package/skills/pytdc/SKILL.md +0 -297
  137. package/skills/pytorch-lightning/SKILL.md +0 -191
  138. package/skills/pyzotero/SKILL.md +0 -137
  139. package/skills/qiskit/SKILL.md +0 -259
  140. package/skills/qutip/SKILL.md +0 -317
  141. package/skills/rdkit/SKILL.md +0 -94
  142. package/skills/relsa-severity-assessment/SKILL.md +0 -354
  143. package/skills/research-grants/SKILL.md +0 -296
  144. package/skills/research-grants/references/README.md +0 -287
  145. package/skills/research-lookup/README.md +0 -106
  146. package/skills/research-lookup/SKILL.md +0 -338
  147. package/skills/rowan/SKILL.md +0 -398
  148. package/skills/scanpy/SKILL.md +0 -303
  149. package/skills/scholar-evaluation/SKILL.md +0 -296
  150. package/skills/scientific-brainstorming/SKILL.md +0 -282
  151. package/skills/scientific-critical-thinking/SKILL.md +0 -180
  152. package/skills/scientific-schematics/SKILL.md +0 -370
  153. package/skills/scientific-slides/SKILL.md +0 -379
  154. package/skills/scientific-visualization/SKILL.md +0 -285
  155. package/skills/scientific-writing/SKILL.md +0 -356
  156. package/skills/scikit-bio/SKILL.md +0 -470
  157. package/skills/scikit-learn/SKILL.md +0 -324
  158. package/skills/scikit-survival/SKILL.md +0 -313
  159. package/skills/scvelo/SKILL.md +0 -328
  160. package/skills/scvi-tools/SKILL.md +0 -201
  161. package/skills/seaborn/SKILL.md +0 -254
  162. package/skills/security-auditor/SKILL.md +0 -37
  163. package/skills/shap/SKILL.md +0 -282
  164. package/skills/simpy/SKILL.md +0 -283
  165. package/skills/stable-baselines3/SKILL.md +0 -325
  166. package/skills/statistical-analysis/SKILL.md +0 -446
  167. package/skills/statistical-power/SKILL.md +0 -200
  168. package/skills/statsmodels/SKILL.md +0 -238
  169. package/skills/sympy/SKILL.md +0 -354
  170. package/skills/systematic-debugging/SKILL.md +0 -35
  171. package/skills/tamarind/SKILL.md +0 -285
  172. package/skills/tdd/SKILL.md +0 -26
  173. package/skills/tiledbvcf/SKILL.md +0 -456
  174. package/skills/timesfm-forecasting/SKILL.md +0 -408
  175. package/skills/timesfm-forecasting/examples/global-temperature/README.md +0 -178
  176. package/skills/torch-geometric/SKILL.md +0 -458
  177. package/skills/torchdrug/SKILL.md +0 -241
  178. package/skills/transformers/SKILL.md +0 -195
  179. package/skills/treatment-plans/SKILL.md +0 -174
  180. package/skills/treatment-plans/references/README.md +0 -19
  181. package/skills/umap-learn/SKILL.md +0 -488
  182. package/skills/uncertainty-and-units/SKILL.md +0 -384
  183. package/skills/usfiscaldata/SKILL.md +0 -171
  184. package/skills/vaex/SKILL.md +0 -204
  185. package/skills/venue-templates/SKILL.md +0 -269
  186. package/skills/verification-before-completion/SKILL.md +0 -22
  187. package/skills/waypoint-bio/SKILL.md +0 -273
  188. package/skills/what-if-oracle/SKILL.md +0 -184
  189. package/skills/writing-plans/SKILL.md +0 -15
  190. package/skills/xlsx/SKILL.md +0 -110
  191. package/skills/zarr-python/SKILL.md +0 -241
@@ -1,189 +0,0 @@
1
- ---
2
- name: genomic-coordinates
3
- description: Convert genomic intervals between coordinate conventions, normalise and compare variant representations, and detect assembly or contig-naming mismatches before they corrupt an analysis. Use whenever coordinates cross a format, tool, or assembly boundary - converting between BED, GFF/GTF, VCF, SAM/BAM, WIG, PSL, genePred, Picard interval_list, or region strings; reconciling 0-based half-open with 1-based inclusive; left-aligning or trimming indels; checking whether two variant records describe the same change; mapping genomic to transcript, CDS, or protein positions; auditing a BED/GTF/VCF for convention violations; or diagnosing GRCh37 vs hg19 vs GRCh38 vs T2T, chr-prefix, and liftover problems. Triggers include "off by one", "0-based", "1-based", "half-open", "coordinate system", "left-align", "normalize variant", "bcftools norm", "chr prefix", "wrong genome build", "liftover", "REF mismatch", and "HGVS".
4
- license: MIT
5
- compatibility: Requires Python 3.11+. Scripts use only the standard library - no third-party packages and no network access. Variant normalisation needs a reference FASTA, and uses its .fai index when one is present.
6
- allowed-tools: Read Write Edit Bash
7
- metadata:
8
- version: "1.0"
9
- skill-author: K-Dense Inc.
10
- ---
11
-
12
- # Genomic Coordinates
13
-
14
- ## When to use
15
-
16
- Any time a coordinate crosses a boundary: between two file formats, between two
17
- tools, between two assemblies, or between the genome and a transcript.
18
-
19
- ## The rule
20
-
21
- **A coordinate is three facts, not one: the number, the convention it is written
22
- in, and the assembly it was measured against.** Carry all three or the number is
23
- not interpretable.
24
-
25
- Coordinate errors are the quietest class of bug in genomics. An off-by-one BED
26
- file parses, sorts, and intersects without complaint. A GRCh37 VCF joined against
27
- a GRCh38 annotation returns rows. A right-shifted indel simply fails to match its
28
- entry in ClinVar, and the result is a variant reported as novel. Nothing raises
29
- an error; the answer is just wrong, and it is wrong in a direction that looks
30
- plausible.
31
-
32
- So: convert with the table, not from memory, and verify against the reference
33
- whenever a reference is available.
34
-
35
- ## The two conversions
36
-
37
- ```
38
- 1-based inclusive -> 0-based half-open : start - 1, end
39
- 0-based half-open -> 1-based inclusive : start + 1, end
40
- ```
41
-
42
- The end coordinate never moves. If a conversion changed both numbers, it is wrong.
43
-
44
- ## Which format is which
45
-
46
- | 0-based, half-open | 1-based, inclusive |
47
- | --- | --- |
48
- | BED, bedGraph, bigWig, narrowPeak | GFF3, GTF, VCF |
49
- | BAM/CRAM (binary POS) | SAM (text POS) |
50
- | PSL, genePred, refFlat | WIG, Picard interval_list |
51
- | MAF (UCSC multiple alignment) | MAF (TCGA mutation annotation) |
52
- | PyRanges, pybedtools | GRanges/IRanges, samtools & UCSC & Ensembl region strings |
53
-
54
- Both "MAF" formats exist, they mean different things, and they disagree. UCSC
55
- serves 0-based files through a 1-based browser box. `references/format-conventions.md`
56
- has the full table with per-format detail.
57
-
58
- ```bash
59
- cd skills/genomic-coordinates/scripts
60
-
61
- python3 convert_coords.py --list # the table
62
- python3 convert_coords.py --from bed --to gff chr1 999 1000
63
- python3 convert_coords.py --from ucsc --to bed "chr7:5,530,601-5,530,625"
64
- python3 convert_coords.py --from granges --to pyranges --input regions.tsv
65
- ```
66
-
67
- ```
68
- contig input output length status detail
69
- chr7 chr7:5530601-5530625 5530600-5530625 25 ok
70
- ```
71
-
72
- Zero-length BED features (`chromStart == chromEnd`, a legal insertion point) are
73
- reported as `unrepresentable` rather than converted to `end = start - 1`. Exit
74
- code is 1 when any interval is degenerate or invalid.
75
-
76
- ## Variants are not intervals
77
-
78
- A VCF `POS` for an indel is the **anchor base** — the base *before* the event,
79
- itself unchanged. And the same change can be written many ways:
80
- `chr1:7:CAC:C`, `chr1:3:CAC:C` and `chr1:2:GCA:G` are one deletion. Joining,
81
- deduplicating, or looking up variants before normalising loses real matches
82
- silently, and it loses them preferentially in repeats, where indels concentrate.
83
-
84
- Normalise — trim to parsimony, then left-align against the reference — before any
85
- comparison:
86
-
87
- ```bash
88
- python3 normalize_variant.py --fasta ref.fa chr1 7 CAC C
89
- python3 normalize_variant.py --fasta ref.fa --split --input cohort.vcf
90
- python3 normalize_variant.py --fasta ref.fa --compare chr1:7:CAC:C chr1:2:GCA:G
91
- ```
92
-
93
- ```
94
- input normalized type pos_shift ref_check changed
95
- chr1:7:CAC:C chr1:2:GCA:G deletion 5 ok yes
96
- ```
97
-
98
- Every record's `REF` is checked against the FASTA first. A `MISMATCH` means the
99
- variants and the reference are different assemblies — stop and run
100
- `check_contigs.py` rather than adjusting coordinates. Multi-allelic records must
101
- be split with `--split` **before** normalising, never after.
102
-
103
- HGVS shifts indels the opposite way, 3'-most along the transcript. For a
104
- minus-strand gene that is the opposite genomic direction from VCF's
105
- left-alignment. Details and the full procedure: `references/variant-representation.md`.
106
-
107
- ## Check the assembly before trusting a join
108
-
109
- ```bash
110
- python3 check_contigs.py --identify unknown.fa.fai
111
- python3 check_contigs.py variants.vcf annotation.gtf --genome GRCh38.fa.fai
112
- ```
113
-
114
- ```
115
- file kind contigs naming assembly detail
116
- ref.fa.fai sizes 25 plain GRCh37 24/24 primary chromosome lengths match;
117
- chrM is 16569 bp, i.e. GRCh37/38 (rCRS MT)
118
- ```
119
-
120
- The script reads `.fai`, `.chrom.sizes`, VCF headers, SAM headers, FASTA, BED,
121
- and GTF/GFF, identifies the assembly from primary-chromosome lengths, and reports
122
- every reason a join between two files would go wrong: naming mismatch, length
123
- conflict, coordinates past a contig end, contigs present in one file only. Exit
124
- code 1 on any incompatibility.
125
-
126
- **GRCh37 and hg19 differ only in the mitochondrion** — 16,569 bp (rCRS) versus
127
- 16,571 bp. Nuclear coordinates are identical, so a mixed pipeline runs fine and
128
- only the mtDNA results are wrong. `check_contigs.py` reports which one it found.
129
- Builds, naming schemes, ALT contigs, and liftover pitfalls:
130
- `references/reference-builds.md`.
131
-
132
- ## Audit a file against its own format
133
-
134
- ```bash
135
- python3 audit_intervals.py peaks.bed
136
- python3 audit_intervals.py gencode.gtf --genome hg38.chrom.sizes
137
- python3 audit_intervals.py cohort.vcf --genome GRCh38.fa.fai
138
- ```
139
-
140
- Looks for the evidence that a coordinate mistake leaves behind:
141
-
142
- | Finding | What it proves |
143
- | --- | --- |
144
- | `start_below_one` in GFF/GTF | 0-based data in a 1-based file; everything is one base left |
145
- | `many_zero_length` in BED | 1-based single-base features written into a 0-based file |
146
- | `past_contig_end` | wrong assembly, or an off-by-one at the contig edge |
147
- | `mixed_contig_naming` | any join will silently match one subset |
148
- | `first_block_offset` | BED12 `blockStarts` written as absolute coordinates |
149
- | `not_parsimonious` | untrimmed alleles; normalise before joining |
150
- | `bad_alt_allele` | Ensembl/VEP `-` notation in a VCF, which has no anchor base |
151
-
152
- Exit code 1 on any fatal finding, so it works as a CI gate on a data directory.
153
-
154
- ## Transcript, CDS, and protein positions
155
-
156
- `c.742` and `chr17:7,674,220` are both "position", and neither converts to the
157
- other by arithmetic. Transcript coordinates count spliced bases in transcription
158
- order — decreasing genomic coordinate on the minus strand — and `c.1` is the `A`
159
- of the initiator `ATG`, not the start of the transcript.
160
-
161
- The rules that get mis-remembered: there is no `c.0`; 5' UTR positions are
162
- negative and 3' UTR positions take a `*`; GFF phase is the bases to *remove* to
163
- reach the next codon, not `start % 3`; and a `c.` description is meaningless
164
- without a versioned transcript accession, because the same variant numbers
165
- differently in each transcript. `references/transcript-coordinates.md` has the
166
- conversion procedure and the boundary cases.
167
-
168
- Do the conversion with a tool that holds the transcript model — VEP,
169
- `bcftools csq`, Mutalyzer, the `hgvs` package — not by hand.
170
-
171
- ## Reporting results
172
-
173
- State the assembly next to the coordinates, every time.
174
- `chr7:5,530,601-5,530,625` is not a location; `chr7:5,530,601-5,530,625 (GRCh38)`
175
- is. Say which convention a coordinate column is in, in the column header or the
176
- file's documentation. When a conversion produced a result, say which direction it
177
- went.
178
-
179
- ## References
180
-
181
- - `references/format-conventions.md` — every format's convention, with per-format
182
- detail, BED12 block rules, region-string syntax, and tool behaviour.
183
- - `references/variant-representation.md` — VCF allele conventions, the
184
- normalisation algorithm, equivalence checking, multi-allelic splitting, and how
185
- HGVS disagrees with VCF.
186
- - `references/reference-builds.md` — build signatures, GRCh37 vs hg19, ALT
187
- contigs, naming schemes, and liftover failure modes.
188
- - `references/transcript-coordinates.md` — genomic ↔ transcript ↔ CDS ↔ protein,
189
- HGVS numbering, phase, and transcript choice.
@@ -1,243 +0,0 @@
1
- ---
2
- name: genomic-intelligence
3
- description: "Predict regulatory features, gene structure, and expression directly from DNA sequence using Genomic Intelligence's hosted transformer DNA language models — no local GPU or model weights. Six tasks over a REST API and a hosted MCP server (keyless public demo): promoter regions, splice donor/acceptor sites, enhancer activity, chromatin state, sequence-to-expression (log TPM), and de-novo gene annotation, plus a composite find-genes-then-predict-expression workflow. Use when the user has a gene symbol, a genomic region, or a DNA/FASTA sequence and wants any of these predictions, mentions Genomic Intelligence, genomicintelligence.ai, api.genomicintelligence.ai, or mcp.genomicintelligence.ai."
4
- license: MIT
5
- compatibility: Python 3.10+ with the `requests` library for the REST path (no dedicated SDK). Network access required. The REST `/v1` API needs a `GI_API_KEY` (a `gi_` bearer); the hosted MCP server at mcp.genomicintelligence.ai/mcp works keyless against a capped public demo quota, key optional.
6
- metadata:
7
- version: "1.0"
8
- skill-author: Genomic Intelligence
9
- trigger-keywords: DNA sequence prediction, regulatory genomics, promoter prediction, splice site prediction, enhancer activity, chromatin state, gene expression prediction, sequence to expression, log TPM, gene annotation, transcript prediction, DNA language model, genomic intelligence, hosted inference, Ensembl sequence, FASTA prediction, cis-regulatory, TSS window, DeepSEA, DeepSTARR, BigBird splice, MCP genomics
10
- openclaw:
11
- primaryEnv: GI_API_KEY
12
- envVars:
13
- - name: GI_API_KEY
14
- required: false
15
- description: Optional gi_ bearer key for the REST /v1 API and a higher MCP quota. The hosted MCP demo runs keyless; request a key at contact@genomicintelligence.ai.
16
- ---
17
-
18
- # Genomic Intelligence — DNA Sequence Models
19
-
20
- Genomic Intelligence (GI) serves transformer DNA language models over six
21
- sequence-analysis tasks on managed GPUs. Give it a **gene symbol**, a **genomic
22
- region**, or a **DNA/FASTA sequence**; it returns structured predictions —
23
- promoter regions, splice sites, enhancer activity, chromatin state, expression
24
- (log TPM), and de-novo gene annotation. Nothing runs locally: no model weights,
25
- no GPU, no heavy Python stack. It is a thin client over a hosted, versioned
26
- inference API.
27
-
28
- **Official docs:** [docs.genomicintelligence.ai](https://docs.genomicintelligence.ai) ·
29
- REST contract at [api.genomicintelligence.ai/v1/openapi.json](https://api.genomicintelligence.ai/v1/openapi.json) ·
30
- hosted MCP server at `https://mcp.genomicintelligence.ai/mcp`
31
-
32
- ## When to use this skill
33
-
34
- Use GI when the user has DNA and wants a model prediction:
35
-
36
- - **Find promoters** in a genomic region (`promoter`)
37
- - **Predict splice** donor/acceptor sites (`splice`)
38
- - **Score enhancer activity** — developmental & housekeeping (`enhancer`)
39
- - **Annotate chromatin state** across hundreds of tracks (`chromatin`)
40
- - **Predict expression** as log(TPM+1) from a sequence + cell-type context (`expression`)
41
- - **Annotate genes/transcripts** de novo, no reference needed (`annotation`)
42
- - **Find the genes in a region and predict each one's expression** (composite)
43
-
44
- Not for local alignment, variant calling, or file I/O — use a local tool
45
- (BioPython, bcftools) for those. GI is for **model inference from sequence**.
46
-
47
- > For research and development use, **not clinical or diagnostic decisions**.
48
-
49
- ## Two ways to call GI
50
-
51
- ### Hosted MCP server (best for AI agents — keyless)
52
-
53
- GI hosts an MCP server at `https://mcp.genomicintelligence.ai/mcp` (Streamable
54
- HTTP). When your agent host supports MCP, prefer it: it works **keyless** against
55
- a capped public demo quota (zero setup), and an optional `gi_` bearer key raises
56
- the quota. It exposes acquisition tools that return a **sequence handle**
57
- (`sequence_ref`) and `predict_*` tools that take that handle — so large sequences
58
- never bloat the context. See [MCP workflow](#mcp-workflow-handle-based) below and
59
- `references/mcp.md`.
60
-
61
- ### REST API (universal)
62
-
63
- Plain HTTP with `requests` against `https://api.genomicintelligence.ai/v1`. The
64
- REST path **requires** a `GI_API_KEY` (a `gi_` bearer). Use it on any host, in
65
- scripts, or when you need the raw envelope. See [Core REST workflow](#core-rest-workflow).
66
-
67
- ## Access and authentication
68
-
69
- 1. The **hosted MCP demo is keyless** — try it with nothing set.
70
- 2. The **REST `/v1` API needs a key**, sent as `Authorization: Bearer <key>`.
71
- Request one at [contact@genomicintelligence.ai](mailto:contact@genomicintelligence.ai).
72
- 3. **Never hardcode the key.** Read it from the `GI_API_KEY` environment variable
73
- (or a `.env` via `python-dotenv`). Never commit keys.
74
-
75
- ```bash
76
- export GI_API_KEY="gi_yourkeyhere" # optional for MCP; required for REST
77
- export GI_BASE_URL="https://api.genomicintelligence.ai" # override for staging
78
- ```
79
-
80
- Keys are scoped to a partner tier with concurrency and per-minute caps. A `429`
81
- means you hit a cap — back off and retry, or ask GI to raise your tier.
82
-
83
- ## The six tasks
84
-
85
- All REST tasks share one shape: `POST /v1/tasks/{task}/predict` with body
86
- `{sequence, sequence_name, model?, options?}`, returning a `{data, meta}`
87
- envelope. What differs per task:
88
-
89
- | Task | Mode | Length bound | Notes |
90
- |---|---|---|---|
91
- | `promoter` | sync | 1–500,000 bp | sliding-window promoter regions |
92
- | `splice` | sync | 1–500,000 bp | donor/acceptor sites (long-context BigBird) |
93
- | `enhancer` | sync | 1–500,000 bp | dev + housekeeping scores (DeepSTARR, *Drosophila*) |
94
- | `chromatin` | sync | 1–500,000 bp | hundreds of tracks (DeepSEA) |
95
- | `expression` | sync | **exactly 9,198 bp** | log(TPM+1); needs a cell-type `description` |
96
- | `annotation` | **async** | 1–500,000 bp | de-novo transcripts; submit + poll |
97
-
98
- **Omit `model` and the API uses the task's default** — that is the recommended
99
- call. Default model IDs are intentionally **not** documented here: defaults
100
- change and retired IDs fail hard, so never hardcode one. To pin a model, or to
101
- pick a non-human one (Drosophila, yeast, and Arabidopsis models exist for several
102
- tasks), discover IDs at call time with `GET /v1/tasks/{task}/models` (REST) or
103
- `list_models` (MCP) — and **never invent one**. Full per-task output shapes are
104
- in `references/tasks.md`.
105
-
106
- Two hard rules the model enforces:
107
-
108
- - **`expression` needs exactly 9,198 bp**, a window **centred on the TSS**
109
- (4,599 upstream + TSS + 4,598 downstream). Any other length is rejected. Use the acquisition helpers below to
110
- build it — do not truncate by hand.
111
- - **`expression` needs a `description`** — a cell-type / assay string (e.g.
112
- `"K562 cells"`), passed as `options.description`.
113
-
114
- ## Sequence acquisition
115
-
116
- You rarely start from a raw 9,198 bp string. Acquire sequence first:
117
-
118
- - **From a gene symbol** → MCP `fetch_ensembl_sequence(gene=...)`; **from
119
- coordinates** → `fetch_region(region=...)`. Both fetch public Ensembl reference
120
- sequence (no key). REST users can query Ensembl REST directly. (`find_genes` is
121
- the annotation task, not an acquisition tool.)
122
- - **For `expression`** → use the TSS-centred fetch so the window is exactly
123
- 9,198 bp. MCP: `fetch_gene_for_expression` (handles the centring). Do not
124
- build the window by hand.
125
- - **From a local FASTA** → MCP `store_inline_sequence`, or read the file yourself
126
- for REST. (`load_local_fasta` exists only in local deployments, not on the
127
- hosted server.)
128
- - **A demo sequence** → MCP `load_demo_sequence(name=...)` returns a ready handle
129
- (great for a keyless smoke test); `name` is required.
130
-
131
- See `references/sequence-acquisition.md` for the exact Ensembl calls and the
132
- expression-window math.
133
-
134
- ## Core REST workflow
135
-
136
- Sync tasks (promoter, splice, enhancer, chromatin, expression) are one call:
137
-
138
- ```python
139
- import os, requests
140
-
141
- BASE = os.environ.get("GI_BASE_URL", "https://api.genomicintelligence.ai")
142
- HEADERS = {"Authorization": f"Bearer {os.environ['GI_API_KEY']}"}
143
-
144
- def predict(task, sequence, sequence_name, model=None, options=None):
145
- body = {"sequence": sequence, "sequence_name": sequence_name}
146
- if model: body["model"] = model
147
- if options: body["options"] = options
148
- r = requests.post(f"{BASE}/v1/tasks/{task}/predict", headers=HEADERS, json=body)
149
- r.raise_for_status() # 400 invalid; 401 no/bad key; 413 too long; 429 rate limit
150
- return r.json() # {"data": {...}, "meta": {...}}
151
-
152
- # Promoter:
153
- out = predict("promoter", seq, "TP53_region")
154
- print(out["data"]["summary"])
155
-
156
- # Expression — exactly 9,198 bp + a cell-type description:
157
- out = predict("expression", tss_window_9198bp, "HBB",
158
- options={"description": "K562 cells"})
159
- print(out["data"]["prediction"]["expression_log_tpm"])
160
- ```
161
-
162
- ### Async: annotation
163
-
164
- `annotation` is submit-then-poll. Send `Prefer: respond-async`, get a `job_id`,
165
- poll until terminal:
166
-
167
- ```python
168
- import time
169
-
170
- r = requests.post(f"{BASE}/v1/tasks/annotation/predict",
171
- headers={**HEADERS, "Prefer": "respond-async"},
172
- json={"sequence": seq, "sequence_name": "TP53"})
173
- r.raise_for_status() # 202 Accepted
174
- job_id = r.json()["data"]["job_id"]
175
-
176
- while True:
177
- j = requests.get(f"{BASE}/v1/tasks/jobs/{job_id}", headers=HEADERS)
178
- if j.status_code == 200: # terminal: body is the final {data, meta}
179
- break
180
- j.raise_for_status() # 202 = still running (2xx, won't raise)
181
- time.sleep(5) # ~20 s typical for ~20 kb
182
- transcripts = j.json()["data"]["transcripts"]
183
- ```
184
-
185
- ## MCP workflow (handle-based)
186
-
187
- On an MCP host, acquire a handle, then predict against it — sequences stay out of
188
- the context:
189
-
190
- ```
191
- # 1. Acquire a sequence handle (each returns a sequence_ref):
192
- load_demo_sequence(name="promoter_tp53") # keyless smoke test; `name` is REQUIRED
193
- fetch_ensembl_sequence(gene="TP53") # gene symbol or Ensembl ID -> handle
194
- fetch_region(region="chr11:5,225,000-5,235,000") # coordinates -> handle
195
- fetch_gene_for_expression(gene="HBB") # TSS-centred 9,198 bp handle for expression
196
-
197
- # 2. Predict against the handle:
198
- predict_promoter(sequence_ref=<ref>)
199
- predict_expression(sequence_ref=<ref>, description="K562 cells")
200
- predict_splice(sequence_ref=<ref>) # + predict_enhancer / predict_chromatin
201
-
202
- # 3. Annotation on MCP is `find_genes` (there is no predict_annotation).
203
- # It takes a handle, not a region, and runs async internally:
204
- find_genes(sequence_ref=<ref>) # wait=True (default) returns the result
205
- find_genes(sequence_ref=<ref>, wait=False) # -> job_id; poll get_job(job_id)
206
-
207
- # Discover models with list_models(task); reference context lives in the
208
- # gi://models, gi://docs/tasks, and gi://account MCP resources.
209
- ```
210
-
211
- ## Composite: find genes, then predict expression
212
-
213
- To answer "what genes are in this region and how are they expressed?", use the
214
- composite:
215
-
216
- - **MCP:** `find_genes_and_predict_expression(sequence_ref=..., description=...)`
217
- — takes a **handle, not a region** (acquire one with `fetch_region` first);
218
- `description` is required. Finds genes in the sequence and returns an
219
- expression prediction for each.
220
- - **REST:** call gene discovery, then loop `expression` per gene (build each
221
- TSS-centred 9,198 bp window via the acquisition helpers).
222
-
223
- ## Errors
224
-
225
- | Code | Meaning | Action |
226
- |---|---|---|
227
- | 400 | Invalid request / bad sequence | Check the body; expression must be exactly 9,198 bp and carry `description` |
228
- | 401 | Missing/invalid key (REST) | Set `GI_API_KEY`; or use the keyless MCP demo |
229
- | 413 | Sequence too long | Stay within the task's length bound (≤500,000 bp) |
230
- | 429 | Rate / concurrency cap | Back off and retry; ask GI to raise your tier |
231
- | 422 | Validation failed (`validation_failed`) | The most common failure: expression not exactly 9,198 bp, or a sequence below the model's minimum length |
232
- | 5xx | Server error | Retry; if persistent, contact support |
233
-
234
- ## Reference files
235
-
236
- - `references/tasks.md` — per-task output shapes, model registries, the async
237
- annotation contract.
238
- - `references/api-and-auth.md` — REST endpoints, the `{data, meta}` envelope,
239
- auth, base-URL override, tiers.
240
- - `references/mcp.md` — the hosted MCP tool list, the handle-based flow, and the
241
- `gi://` resources.
242
- - `references/sequence-acquisition.md` — Ensembl fetch calls and the
243
- expression-window (9,198 bp, TSS-centred) math.
@@ -1,105 +0,0 @@
1
- # GeoMaster Geospatial Science Skill
2
-
3
- ## Overview
4
-
5
- GeoMaster is a comprehensive geospatial science skill covering:
6
- - **70+ sections** on geospatial science topics
7
- - **500+ code examples** across 7 programming languages
8
- - **300+ geospatial libraries** and tools
9
- - Remote sensing, GIS, spatial statistics, ML/AI for Earth observation
10
-
11
- ## Contents
12
-
13
- ### Main Documentation
14
- - **SKILL.md** - Main skill documentation with installation, quick start, core concepts, common operations, and workflows
15
-
16
- ### Reference Documentation
17
- 1. **core-libraries.md** - GDAL, Rasterio, Fiona, Shapely, PyProj, GeoPandas
18
- 2. **remote-sensing.md** - Satellite missions, optical/SAR/hyperspectral analysis, image processing
19
- 3. **gis-software.md** - QGIS/PyQGIS, ArcGIS/ArcPy, GRASS GIS, SAGA GIS integration
20
- 4. **scientific-domains.md** - Marine, atmospheric, hydrology, agriculture, forestry applications
21
- 5. **advanced-gis.md** - 3D GIS, spatiotemporal analysis, topology, network analysis
22
- 6. **programming-languages.md** - R, Julia, JavaScript, C++, Java, Go geospatial tools
23
- 7. **machine-learning.md** - Deep learning for RS, spatial ML, GNNs, XAI for geospatial
24
- 8. **big-data.md** - Distributed processing, cloud platforms, GPU acceleration
25
- 9. **industry-applications.md** - Urban planning, disaster management, utilities, transportation
26
- 10. **specialized-topics.md** - Geostatistics, optimization, ethics, best practices
27
- 11. **data-sources.md** - Satellite data catalogs, open data repositories, API access
28
- 12. **code-examples.md** - 500+ code examples across 7 programming languages
29
-
30
- ## Key Topics Covered
31
-
32
- ### Remote Sensing
33
- - Sentinel-1/2/3, Landsat, MODIS, Planet, Maxar
34
- - SAR, hyperspectral, LiDAR, thermal imaging
35
- - Spectral indices, classification, change detection
36
-
37
- ### GIS Operations
38
- - Vector data (points, lines, polygons)
39
- - Raster data processing
40
- - Coordinate reference systems
41
- - Spatial analysis and statistics
42
-
43
- ### Machine Learning
44
- - Random Forest, SVM, CNN, U-Net
45
- - Spatial statistics, geostatistics
46
- - Graph neural networks
47
- - Explainable AI
48
-
49
- ### Programming Languages
50
- - **Python** - GDAL, Rasterio, GeoPandas, TorchGeo, RSGISLib
51
- - **R** - sf, terra, raster, stars
52
- - **Julia** - ArchGDAL, GeoStats.jl
53
- - **JavaScript** - Turf.js, Leaflet
54
- - **C++** - GDAL C++ API
55
- - **Java** - GeoTools
56
- - **Go** - Simple Features Go
57
-
58
- ## Installation
59
-
60
- See [SKILL.md](SKILL.md) for detailed installation instructions.
61
-
62
- ### Core Python Stack
63
- ```bash
64
- conda install -c conda-forge gdal rasterio fiona shapely pyproj geopandas
65
- ```
66
-
67
- ### Remote Sensing
68
- ```bash
69
- uv pip install rsgislib torchgeo earthengine-api
70
- ```
71
-
72
- ## Quick Examples
73
-
74
- ### Calculate NDVI from Sentinel-2
75
- ```python
76
- import rasterio
77
- import numpy as np
78
-
79
- with rasterio.open('sentinel2.tif') as src:
80
- red = src.read(4)
81
- nir = src.read(8)
82
- ndvi = (nir - red) / (nir + red + 1e-8)
83
- ```
84
-
85
- ### Spatial Analysis with GeoPandas
86
- ```python
87
- import geopandas as gpd
88
-
89
- zones = gpd.read_file('zones.geojson')
90
- points = gpd.read_file('points.geojson')
91
- joined = gpd.sjoin(points, zones, predicate='within')
92
- ```
93
-
94
- ## License
95
-
96
- MIT License
97
-
98
- ## Author
99
-
100
- K-Dense Inc.
101
-
102
- ## Contributing
103
-
104
- This skill is part of the K-Dense-AI/scientific-agent-skills repository.
105
- For contributions, see the main repository guidelines.