Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
import sys
import os
import gfapy
import argparse
from textwrap import wrap
from Bio.Seq import Seq
op = argparse.ArgumentParser(description=__doc__)
@asl
asl / cyclichash.hpp
Created May 20, 2017 18:03
Rolling hash for ACGT sequences
#ifndef CYCLICHASH_HPP
#define CYCLICHASH_HPP
#include <cstdint>
#include <cstdlib>
template<typename chartype = uint8_t>
class DNASeqHash {
/// The hash digest type.
typedef uint64_t digest;