Skip to content

Commit

Permalink
feat: add helix coordinate and related examples/tests (#6545)
Browse files Browse the repository at this point in the history
* feat: add helix coordinate and related examples/tests

- Integrated `helix` coordinate into the core library, enabling G2 to support helix charts.
- Added a helix demo to the official documentation site for showcasing its usage.
- Created and finalized test files for the `helix` coordinate to ensure functionality and stability.

* feat(helix): add gene expression helix chart demo

---------

Co-authored-by: bqx <[email protected]>
  • Loading branch information
BQXBQX and bqx authored Dec 10, 2024
1 parent 84d0ef8 commit 48dcd69
Show file tree
Hide file tree
Showing 15 changed files with 9,138 additions and 0 deletions.
146 changes: 146 additions & 0 deletions __tests__/data/gene.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
export const gene = [
{ time: "0h", group: "WT", logFPKM: 1.8612903498075037 },
{ time: "0h", group: "KO", logFPKM: 2.1708107586647287 },
{ time: "1h", group: "WT", logFPKM: 2.1469515943654573 },
{ time: "1h", group: "KO", logFPKM: 2.275524581770252 },
{ time: "2h", group: "WT", logFPKM: 1.9208184740194398 },
{ time: "2h", group: "KO", logFPKM: 2.49628567843148 },
{ time: "3h", group: "WT", logFPKM: 2.0468051891722165 },
{ time: "3h", group: "KO", logFPKM: 2.283684536666674 },
{ time: "4h", group: "WT", logFPKM: 2.1624085013836756 },
{ time: "4h", group: "KO", logFPKM: 2.5106622926340876 },
{ time: "5h", group: "WT", logFPKM: 2.0304342159538917 },
{ time: "5h", group: "KO", logFPKM: 2.4396029778936086 },
{ time: "6h", group: "WT", logFPKM: 2.0513795266500043 },
{ time: "6h", group: "KO", logFPKM: 2.4025766080240762 },
{ time: "7h", group: "WT", logFPKM: 2.1516186833258346 },
{ time: "7h", group: "KO", logFPKM: 2.4266672433987706 },
{ time: "8h", group: "WT", logFPKM: 2.115525566096882 },
{ time: "8h", group: "KO", logFPKM: 2.577643584251201 },
{ time: "9h", group: "WT", logFPKM: 2.2645154592106373 },
{ time: "9h", group: "KO", logFPKM: 2.5037594858857126 },
{ time: "10h", group: "WT", logFPKM: 2.108389021880519 },
{ time: "10h", group: "KO", logFPKM: 2.6556305994979557 },
{ time: "11h", group: "WT", logFPKM: 2.2947425046540224 },
{ time: "11h", group: "KO", logFPKM: 2.4653972777956095 },
{ time: "12h", group: "WT", logFPKM: 2.1984526055896643 },
{ time: "12h", group: "KO", logFPKM: 2.727418068510719 },
{ time: "13h", group: "WT", logFPKM: 2.474875703788922 },
{ time: "13h", group: "KO", logFPKM: 2.53146011245201 },
{ time: "14h", group: "WT", logFPKM: 2.298895683450819 },
{ time: "14h", group: "KO", logFPKM: 2.6113004179671853 },
{ time: "15h", group: "WT", logFPKM: 2.1899250514093733 },
{ time: "15h", group: "KO", logFPKM: 2.6128544349696408 },
{ time: "16h", group: "WT", logFPKM: 2.1425582888634054 },
{ time: "16h", group: "KO", logFPKM: 2.47192168638075 },
{ time: "17h", group: "WT", logFPKM: 2.367930942387528 },
{ time: "17h", group: "KO", logFPKM: 2.5796874279424236 },
{ time: "18h", group: "WT", logFPKM: 2.1531790025039124 },
{ time: "18h", group: "KO", logFPKM: 2.7380317248422346 },
{ time: "19h", group: "WT", logFPKM: 2.380452997409897 },
{ time: "19h", group: "KO", logFPKM: 2.762560698407383 },
{ time: "20h", group: "WT", logFPKM: 2.2201050196444765 },
{ time: "20h", group: "KO", logFPKM: 2.702224409438164 },
{ time: "21h", group: "WT", logFPKM: 2.1106447900293426 },
{ time: "21h", group: "KO", logFPKM: 2.5143203408303583 },
{ time: "22h", group: "WT", logFPKM: 2.19585154902012 },
{ time: "22h", group: "KO", logFPKM: 2.4709372461515113 },
{ time: "23h", group: "WT", logFPKM: 2.0470128429879595 },
{ time: "23h", group: "KO", logFPKM: 2.3772061837885974 },
{ time: "24h", group: "WT", logFPKM: 2.229044228325439 },
{ time: "24h", group: "KO", logFPKM: 2.4885062525936803 },
{ time: "25h", group: "WT", logFPKM: 2.0051266729346255 },
{ time: "25h", group: "KO", logFPKM: 2.4418119510411405 },
{ time: "26h", group: "WT", logFPKM: 2.243542623941331 },
{ time: "26h", group: "KO", logFPKM: 2.5489313550448185 },
{ time: "27h", group: "WT", logFPKM: 2.0346949807705483 },
{ time: "27h", group: "KO", logFPKM: 2.4004688882300864 },
{ time: "28h", group: "WT", logFPKM: 1.9038953478010983 },
{ time: "28h", group: "KO", logFPKM: 2.382636704586951 },
{ time: "29h", group: "WT", logFPKM: 1.9453058232382154 },
{ time: "29h", group: "KO", logFPKM: 2.3328433448928987 },
{ time: "30h", group: "WT", logFPKM: 1.8951701514564492 },
{ time: "30h", group: "KO", logFPKM: 2.4368425989582367 },
{ time: "31h", group: "WT", logFPKM: 2.087681965162064 },
{ time: "31h", group: "KO", logFPKM: 2.2951389970685123 },
{ time: "32h", group: "WT", logFPKM: 2.079251104276431 },
{ time: "32h", group: "KO", logFPKM: 2.1914043519438144 },
{ time: "33h", group: "WT", logFPKM: 1.883326176503917 },
{ time: "33h", group: "KO", logFPKM: 2.1197835990826825 },
{ time: "34h", group: "WT", logFPKM: 2.037028937074815 },
{ time: "34h", group: "KO", logFPKM: 2.3425932684712385 },
{ time: "35h", group: "WT", logFPKM: 1.7009861367428416 },
{ time: "35h", group: "KO", logFPKM: 2.0409234322693433 },
{ time: "36h", group: "WT", logFPKM: 1.756557858257787 },
{ time: "36h", group: "KO", logFPKM: 2.133979339930392 },
{ time: "37h", group: "WT", logFPKM: 2.004887245360819 },
{ time: "37h", group: "KO", logFPKM: 1.9664169694824292 },
{ time: "38h", group: "WT", logFPKM: 1.8996906425528235 },
{ time: "38h", group: "KO", logFPKM: 2.228377980565682 },
{ time: "39h", group: "WT", logFPKM: 1.682585371032946 },
{ time: "39h", group: "KO", logFPKM: 2.0517813241262712 },
{ time: "40h", group: "WT", logFPKM: 1.926166017032023 },
{ time: "40h", group: "KO", logFPKM: 2.2533598830376005 },
{ time: "41h", group: "WT", logFPKM: 1.7618762085477104 },
{ time: "41h", group: "KO", logFPKM: 2.127349777651771 },
{ time: "42h", group: "WT", logFPKM: 1.898730572544695 },
{ time: "42h", group: "KO", logFPKM: 1.899824038090822 },
{ time: "43h", group: "WT", logFPKM: 1.8025434378887126 },
{ time: "43h", group: "KO", logFPKM: 1.88184242340967 },
{ time: "44h", group: "WT", logFPKM: 1.5789502697392814 },
{ time: "44h", group: "KO", logFPKM: 2.0077248519311395 },
{ time: "45h", group: "WT", logFPKM: 1.6704344989757067 },
{ time: "45h", group: "KO", logFPKM: 1.815337007783397 },
{ time: "46h", group: "WT", logFPKM: 1.8929553204991967 },
{ time: "46h", group: "KO", logFPKM: 1.8380249825760948 },
{ time: "47h", group: "WT", logFPKM: 1.8908610779464639 },
{ time: "47h", group: "KO", logFPKM: 2.0336121221265975 },
{ time: "48h", group: "WT", logFPKM: 1.643155737147945 },
{ time: "48h", group: "KO", logFPKM: 2.095452244139175 },
{ time: "49h", group: "WT", logFPKM: 1.7653054174824563 },
{ time: "49h", group: "KO", logFPKM: 1.8903057474539198 },
{ time: "50h", group: "WT", logFPKM: 1.543159896526948 },
{ time: "50h", group: "KO", logFPKM: 1.8874288656038174 },
{ time: "51h", group: "WT", logFPKM: 1.901577686309341 },
{ time: "51h", group: "KO", logFPKM: 1.9210578276590153 },
{ time: "52h", group: "WT", logFPKM: 1.782666980342627 },
{ time: "52h", group: "KO", logFPKM: 2.2336051118435263 },
{ time: "53h", group: "WT", logFPKM: 1.833131114979155 },
{ time: "53h", group: "KO", logFPKM: 1.9615953472833438 },
{ time: "54h", group: "WT", logFPKM: 1.7703734243362428 },
{ time: "54h", group: "KO", logFPKM: 1.8703898432885755 },
{ time: "55h", group: "WT", logFPKM: 1.7877526323333583 },
{ time: "55h", group: "KO", logFPKM: 2.018279803499207 },
{ time: "56h", group: "WT", logFPKM: 1.715289886237491 },
{ time: "56h", group: "KO", logFPKM: 2.072045144408541 },
{ time: "57h", group: "WT", logFPKM: 1.9858795122380188 },
{ time: "57h", group: "KO", logFPKM: 2.18452278296288 },
{ time: "58h", group: "WT", logFPKM: 1.7323280884305086 },
{ time: "58h", group: "KO", logFPKM: 1.9875879041916291 },
{ time: "59h", group: "WT", logFPKM: 1.8033139792184003 },
{ time: "59h", group: "KO", logFPKM: 2.075145952627675 },
{ time: "60h", group: "WT", logFPKM: 1.9064416750749678 },
{ time: "60h", group: "KO", logFPKM: 2.3450972699780452 },
{ time: "61h", group: "WT", logFPKM: 1.950891436523899 },
{ time: "61h", group: "KO", logFPKM: 2.2178182061783134 },
{ time: "62h", group: "WT", logFPKM: 2.078315203928303 },
{ time: "62h", group: "KO", logFPKM: 2.436517523363727 },
{ time: "63h", group: "WT", logFPKM: 2.0982913749647003 },
{ time: "63h", group: "KO", logFPKM: 2.502597072130244 },
{ time: "64h", group: "WT", logFPKM: 1.9059449960271944 },
{ time: "64h", group: "KO", logFPKM: 2.1601819494429817 },
{ time: "65h", group: "WT", logFPKM: 2.2220121283281706 },
{ time: "65h", group: "KO", logFPKM: 2.220426167503411 },
{ time: "66h", group: "WT", logFPKM: 1.9195230781085073 },
{ time: "66h", group: "KO", logFPKM: 2.317412865926183 },
{ time: "67h", group: "WT", logFPKM: 1.9548510910876122 },
{ time: "67h", group: "KO", logFPKM: 2.222188607000752 },
{ time: "68h", group: "WT", logFPKM: 2.2756371582023083 },
{ time: "68h", group: "KO", logFPKM: 2.557550930306545 },
{ time: "69h", group: "WT", logFPKM: 2.187766310744487 },
{ time: "69h", group: "KO", logFPKM: 2.4442525605096224 },
{ time: "70h", group: "WT", logFPKM: 2.3467893844196603 },
{ time: "70h", group: "KO", logFPKM: 2.618069352053964 },
{ time: "71h", group: "WT", logFPKM: 2.2805070566680143 },
{ time: "71h", group: "KO", logFPKM: 2.694023001010039 },
]
Loading

0 comments on commit 48dcd69

Please sign in to comment.