src/rosalind/p001.clj @ 7f4e6345e260

Do the first few problems.
author Steve Losh <steve@stevelosh.com>
date Mon, 12 Nov 2012 12:36:49 -0500
parents (none)
children (none)
(ns rosalind.p001
  (:require [clojure.string :refer [join]]))

(defn solve [s]
  (println (join " " (map (frequencies s) "ACGT"))))

(solve "AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC")

(solve (slurp "/Users/sjl/Downloads/rosalind_dna.txt"))