Procházet zdrojové kódy

expose chroms array to G3dInfoData for later data based decoration

Daofeng Li před 4 roky
rodič
revize
021171c07d
1 změnil soubory, kde provedl 4 přidání a 2 odebrání
  1. 4 2
      src/extensions/g3d/model.ts

+ 4 - 2
src/extensions/g3d/model.ts

@@ -153,7 +153,8 @@ async function getTraj(ctx: RuntimeContext, data: G3dDataBlock) {
         haplotypes: Object.keys(data.data),
         haplotype: normalized.haplotype,
         resolution: data.resolution,
-        start: normalized.start
+        start: normalized.start,
+        chroms: normalized.chromosome,
     });
 
     return models;
@@ -224,7 +225,8 @@ export interface G3dInfoData {
     haplotypes: string[],
     haplotype: string[],
     start: Int32Array,
-    resolution: number
+    resolution: number,
+    chroms: string[]
 };
 
 export const G3dLabelProvider: LociLabelProvider = {