diff options
author | Calvin <calvin@EESI> | 2013-05-28 10:47:11 -0400 |
---|---|---|
committer | Calvin <calvin@EESI> | 2013-05-28 10:47:11 -0400 |
commit | dd38d0d1dda2be42bf280aeca110542f2f2fef1b (patch) | |
tree | c921dc0690e29f1b7b913aaa72b9c12539faa5a1 /src/nbc/genome.sml | |
parent | 2f33e34ae06b96c3f3e4456ce960172903f60bfb (diff) |
removed files
Diffstat (limited to 'src/nbc/genome.sml')
-rw-r--r-- | src/nbc/genome.sml | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/nbc/genome.sml b/src/nbc/genome.sml deleted file mode 100644 index 81f3183..0000000 --- a/src/nbc/genome.sml +++ /dev/null @@ -1,33 +0,0 @@ -signature GENOME = sig - exception Bad - type t - val load: string * int -> t - val get: t * string -> int option -end - -structure Genome :> GENOME = struct - exception Bad - fun |> (x, f) = f x - infix |> - - type t = (string, int) HashTable.hash_table - fun load (gname, order) = - let - val h = HashTable.mkTable - (HashString.hashString, op =) - (1024 * 1024, Fail "") - in - Options.genomeText (order, gname) |> Gzip.openIn |> Misc.sequenceLines - |> Sequence.map (fn s => ( - case Misc.split2 s of - SOME (count, nmer) => ( - nmer - , case Int.fromString count of - NONE => raise Bad - | SOME x => x - ) | NONE => raise Bad - )) |> Sequence.app (HashTable.insert h) - ; h - end - fun get (h, nmer) = HashTable.find h nmer -end |