際際滷

際際滷Share a Scribd company logo
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
First encounter with Elixir - Some random things
GC ratio c alculation in Elixir
First encounter with Elixir - Some random things
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

More Related Content

First encounter with Elixir - Some random things

  • 1. First encounter with Elixir 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. DNA Fasta file example
  • 6. GC ratio c alculation in Elixir
  • 8. 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?
  • 9. Thank you! Samuel Lampa Uppsala University @smllmp bionics.it
  • 10. Thank you! Samuel Lampa Uppsala University @smllmp bionics.it