First encounter with Elixir 
A few impressions and thoughts 
Samuel Lampa 
Uppsala University 
@smllmp 
bionics.it
GC ratio calculation 
● DNA has four “letters” (“bases”): A, C, G, T 
● GC ratio is the: 
ratio of Gs and Cs, compared to As and Ts. 
● Sequences are stored in ASCII text files, with 
around 80 characters per line. 
● Header lines in the file start with “>” and should 
be skipped. 
● Unknown bases are denoted with “N”.
DNA Fasta file example
GC ratio calculation in Python
GC ratio c alculation in Elixir
Elixir processes vs Go channels 
● Elixir processes: 
– “Named” mailboxes 
– Mailbox and process tied together 
● Go channels 
– “Anonymous”, no name 
– Channels are separate from go routines (can be 
sent around, sent to functions etc). 
● More?
Thank you! 
Samuel Lampa 
Uppsala University 
@smllmp 
bionics.it
Thank you! 
Samuel Lampa 
Uppsala University 
@smllmp 
bionics.it

First encounter with Elixir - Some random things

  • 1.
    First encounter withElixir A few impressions and thoughts Samuel Lampa Uppsala University @smllmp bionics.it
  • 2.
    GC ratio calculation ● DNA has four “letters” (“bases”): A, C, G, T ● GC ratio is the: ratio of Gs and Cs, compared to As and Ts. ● Sequences are stored in ASCII text files, with around 80 characters per line. ● Header lines in the file start with “>” and should be skipped. ● Unknown bases are denoted with “N”.
  • 3.
  • 4.
  • 6.
    GC ratio calculation in Elixir
  • 8.
    Elixir processes vsGo channels ● Elixir processes: – “Named” mailboxes – Mailbox and process tied together ● Go channels – “Anonymous”, no name – Channels are separate from go routines (can be sent around, sent to functions etc). ● More?
  • 9.
    Thank you! SamuelLampa Uppsala University @smllmp bionics.it
  • 10.
    Thank you! SamuelLampa Uppsala University @smllmp bionics.it