the undefined marker is the issue. id like for it to display the gene marker as listed while being connected to the name of the gene.
the undefined marker is the issue. id like for it to display the gene marker as listed while being connected to the name of the gene.
After the declaration of ‘odds’ any other text after it is invalid e.g.
Ss^0.5 or s Tt^0.5 || t
If you want a randomized value for that in which
Tt
has odds of 0.5 to being chosen you could have:If you want to add ‘odds’ with HTML formatting, you should place the odds after the items e.g.
<u>Ag^0.5</u> to <u>Ag</u> ^0.5
The change in odds should always be on the end of the item.
On your
[m = markings6.selectUnique(1,7).joinItems("/")]
you are setting the value ofm
to be the joined items in a string, not the list. To fix it you just need to store it on the variable, then use thejoinItems
on the variable after:[m = markings6.selectUnique(1,7), m.joinItems("/")]
Then to output the names:
[m.selectAll.map(a => a.name).joinItems("/")]
in which it would iterate on the markings onm
and get theirname
, thenjoinItems
them.thank you so much!! I was stuck for a few hours lol.
Glad to help!