Skip to content

Instantly share code, notes, and snippets.

@emepyc
emepyc / README.md
Last active October 10, 2018 08:49
Custom tooltip

TnT Tooltip example created using the generic tooltip interface.

@emepyc
emepyc / README.md
Last active October 10, 2018 08:50
Async tooltips

TnT Tooltip example simulating a tooltip to display async data. Clicking on the red circle fires a plain tooltip with a spinner. After 2 seconds, this spinner is substituted by a table tooltip displaying the data.

@emepyc
emepyc / README.md
Last active November 9, 2017 18:03
TnT tree updates

Example of TnT visualisation showing tree updates.

@emepyc
emepyc / ENSGT00390000003602.json
Last active January 4, 2021 13:03
Ensembl gene tree
{"tree":{"events":{"type":"speciation"},"branch_length":0,"children":[{"events":{"type":"speciation"},"branch_length":0,"children":[{"events":{"type":"speciation"},"branch_length":0.141044,"children":[{"events":{"type":"speciation"},"branch_length":0.137872,"children":[{"events":{"type":"speciation"},"branch_length":0.183219,"children":[{"events":{"type":"speciation"},"branch_length":0.007354,"children":[{"events":{"type":"speciation"},"branch_length":0.196061,"children":[{"exon_boundaries":{"boundaries":[28,138,163,195,208,246,284,307,685,2766,2800,2831,3003,3065,3128,3186,3314,3368,3419,3465,3535,3592,3651,3742,3811],"number_of_exons":26},"sequence":{"mol_seq":{"seq":"----MDSCIQN---MYDAFKDEIWK--ELGPLDPNWFEVLTAQASLNEGN---VADNDE--LCANQEGYFKVPLEKTAVESQLFSTPKVFRHCQIV---SP------------------------DTEDDTSFTAAQEKEMLPWMPTQSPCLFQP---PKLCVSNLKCEGVQPQTE----------A----SFDLLHSPE--KSP-ASYANHISESLGAQINPDISWTSSFNTPRALPSTLILSKTDESPCPESVTADR--KVVFV-----------------RKLFPSLSNSSLNTSR-TSLGPVFPVTDTCSKSPLNQSESHQQQ---K------VPDALEG-
@emepyc
emepyc / README.md
Last active November 9, 2017 18:01
Tree and Tracks updates

Example of TnT visualisation showing how to update the tree and the board (tracks) based on user input. Click on internal nodes of the tree to collapse them.

@emepyc
emepyc / README.md
Last active January 12, 2016 16:49
Variable board height

Example of TnT Genome showing a board of variable height depending on the number of genes to display. This is done by configuring the genome layout.

@emepyc
emepyc / README.md
Last active January 12, 2016 16:46
Transcripts

Example of TnT Genome showing transcript information.

@emepyc
emepyc / README.md
Last active January 12, 2016 16:45
Genes and transcripts

Example of TnT Genome that shows genes and transcripts in the same track, but transcripts only for a specific gene. This is done by getting the default data retriever for the gene track (which is a promise) and set a new retriever that chains the original one with a function that retrieves all the transcripts (exons, etc) only for the specific gene (PTEN in this case).

@emepyc
emepyc / README.md
Last active January 12, 2016 16:45
gene colors and legend

Example of TnT Genome that colors genes based on their biotypes and creates a legend dynamically explaining the colors of the biotypes in the display. This is done by getting the default data retriever (which is a promise) and set a new retriever that chains the original one with a function that sets colors to the genes and populates the legend.

@emepyc
emepyc / README.md
Last active January 12, 2016 16:44
Sequence track

Example of sequence track in TnT Genome. Zoom in to reveal the genomic sequence of the region in the board.