Skip to content

Instantly share code, notes, and snippets.

View c-guzman's full-sized avatar

Carlos Guzman c-guzman

  • La Jolla, CA
View GitHub Profile
var data: string = "AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC"
var
A: int = 0
C: int = 0
G: int = 0
T: int = 0
for letter in data:
if letter == 'A':
# counting point mutations
# count all mutations where C != C, G !=G, A != A, and T != T
import algorithm
# define string variables
var s: string = "GAGCCTACTAACGGGAT"
var t: string = "CATCGTAATGACGGCCT"
# define count variable for number of mutations
var mutations: int = 0