Skip to content

Commit

Permalink
Add intellisense on hosted genomes
Browse files Browse the repository at this point in the history
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
  • Loading branch information
eternal-flame-AD committed Aug 12, 2024
1 parent d09852b commit a7b0699
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion js/igv.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,17 @@ interface RefNoGenome {

type GenomeOpt = GenomeNoRef | RefNoGenome;


type HostedGenomes = "hs1" | "chm13v1.1" | "hg38" | "hg38_1kg" | "hg19" |
"hg18" | "mm39" | "mm10" | "mm9" | "rn7" |
"rn6" | "gorGor6" | "gorGor4" | "panTro6" | "panTro5" |
"panTro4" | "macFas5" | "GCA_011100615.1" | "panPan2" | "canFam3" |
"canFam4" | "canFam5" | "bosTau9" | "bosTau8" | "susScr11" |
"galGal6" | "GCF_016699485.2" | "danRer11" | "danRer10" | "ce11" |
"dm6" | "dm3" | "dmel_r5.9" | "sacCer3" | "ASM294v2" |
"ASM985889v3" | "tair10" | "GCA_003086295.2" | "GCF_001433935.1" | "NC_016856.1" |
"GCA_000182895.1"

/**
* To define or customize a reference genome the reference property can be used.
*/
Expand Down Expand Up @@ -386,7 +397,7 @@ interface GenomeFrag {
*
* @type {string}
*/
genome: string;
genome: HostedGenomes | (string & {});
reference?: never;
}
interface ReferenceFrag {
Expand Down

0 comments on commit a7b0699

Please sign in to comment.