Skip to content

Document colour encoding (bases for red, green, yellow and blue) #22

Description

@peterjc

The rival project Blocksford Brickopore LEGO sequencer uses red (“T”), green (“A”), yellow (“G”) and blue (“C”) LEGO bricks - as documented here:

http://www.earlham.ac.uk/articles/earlham-institute-lego-sequencer

My immediate concern was did they invent a new encoding (I'm having FASTQ flashbacks here)?

Sadly it seems yes, since according to https://samnicholls.net/2017/03/15/lego-sequencer/ you used blue for "T".

Further digging, https://imgur.com/gallery/4O8r4 says "It would later turn out that we could distinguish yellow using the Clear channel, as it is much more reflective these values dwarf the rest of the values. Red, blue and green can easily be distinguished by checking the which of the RGB channels is currently giving the highest reading."

I could find the relevant part of your code here, mapping an RGB and Clear value to DNA base letters:

https://github.com/SAMTOMINDUSTRYS/monsterlab/blob/master/software/samseq.ino#L132

  if(clear > 10000){
    Serial.print("C");
  }
  else {
    if(green > blue && green > red){
        Serial.print("A");
    }
    else if(red > green && red > blue){
        Serial.print("G");
    }
    else if(blue > green){
        Serial.print("T");
    }
    else{
        Serial.print("N");
    }
  }

I think that means yellow "C", green "A", red "G", blue "T", other "N".

(On a more serious note, I presume the printed sheets etc deliberately do not give away the colour key so as not to spoil the surprise)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions