Skip to content

StarDistanceMap: Configuring

Ivica Ceraj edited this page Dec 6, 2013 · 1 revision

Configuring StarDistanceMap widget.

StarDistanceMap widget as of 11/14/2013 can be configured with:

  • color_genes flag - TRUE/false - bw or color genes
  • edit_chromosome_count flag - TRUE/false - can student add/remove chromosomes
  • genes array of gene objects
    • gene object has id (short identifier) and name (displayable name)
  • gene_groups array of gene_group objects
    • gene_group object has title and genes array containing gene ids
  • chromosomes array of chromosome objects
    • chromosome has name and if it is sex_linked; default false.
  • sex_linked_show flag - TRUE/false - student sees X-Chromosome checkbox and label

Example 1:

{"color_genes":"true",
 "edit_chromosome_count":false, 
 "genes":[
    {"id":"graybody","name":"gray body"},
    {"id":"wingless","name":"wingless"},
    {"id":"antennae","name":"antennae"}
 ],
 "gene_groups":[
    {"title":"Strains","genes":["graybody","wingless","antennae"]}
 ],
 "chromosomes":[{"name":"Chromosome","sex_linked":false}]}

Example 2:

{ "color_genes":"true",
  "genes":[
    {"id":"M-1","name":"M-1"},
    {"id":"M-2","name":"M-2"},
    {"id":"M-3","name":"M-3"},
    {"id":"M-4","name":"M-4"},
    {"id":"M-5","name":"M-5"},
    {"id":"M-6","name":"M-6"},
    {"id":"la","name":"la"},
    {"id":"na","name":"na"},
    {"id":"grounded","name":"grounded"},
    {"id":"lengthy","name":"lengthy"},
    {"id":"plum","name":"plum"},
    {"id":"white","name":"white"}
  ],
  "gene_groups":[
    {"title":"Strains","genes":["M-1","M-2","M-3","M-4","M-5","M-6"]},
    {"title":"Mapping Strains","genes":["la","na","grounded","lengthy","plum","white"]}
  ],
  "chromosomes":[{"name":"Chromosome 1","sex_linked":true}]}

Example 3:

{["StarX":"StarDistanceMap",
  "state":"starx_distance_matrix",
  "config":{
    "sex_linked_show":true,
    "color_genes":"true",
    "genes":[
      {"id":"M-1","name":"M-1"},
      {"id":"M-2","name":"M-2"},
      {"id":"M-3","name":"M-3"},
      {"id":"M-4","name":"M-4"},
      {"id":"M-5","name":"M-5"},
      {"id":"M-6","name":"M-6"},
      {"id":"la","name":"la"},
      {"id":"na","name":"na"},
      {"id":"grounded","name":"grounded"},
      {"id":"lengthy","name":"lengthy"},
      {"id":"plum","name":"plum"},
      {"id":"white","name":"white"}],
    "gene_groups":[
      {"title":"Strains","genes":["M-1","M-2","M-3","M-4","M-5","M-6"]},
      {"title":"Mapping Strains","genes":["la","na","grounded","lengthy","plum","white"]}],
    "chromosomes":[{"name":"Chromosome 1","sex_linked":"true"}]}]}

Clone this wiki locally