Skip to content

Instantly share code, notes, and snippets.

Guillaume Filion gui11aume

Block or report user

Report or block gui11aume

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View simple_rnn.py
#!/usr/bin/env python
# -*- coding:utf-8 -*-
import numpy as np
import sys
def softmax(x):
e = np.exp(x - np.max(x))
return e / e.sum()
@gui11aume
gui11aume / learn_bwt_indexing_compression.c
Last active May 14, 2017
Learn Burrows-Wheeler indexing (compression)
View learn_bwt_indexing_compression.c
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct occ_t { uint32_t bits; uint32_t smpl; };
typedef struct occ_t occ_t;
#define L 14 // Length of the text.
#define L4 ((L+3) / 4 ) // Length down-sampled 4 times.
@gui11aume
gui11aume / learn_bwt_indexing_vanilla.c
Last active May 10, 2017
Learn Burrows-Wheeler indexing (vanilla)
View learn_bwt_indexing_vanilla.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define L 14 // Length of the text.
// Global variables.
char TXT[L] = "GATGCGAGAGATG$";
int SA[L] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13};
char BWT[L] = {0};
You can’t perform that action at this time.