Skip to content

Instantly share code, notes, and snippets.

View jokedurnez's full-sized avatar

Joke Durnez jokedurnez

View GitHub Profile
@jokedurnez
jokedurnez / science.txt
Created November 8, 2019 05:27
science
50
6 12
28 28
8 15
10 21
22 18
21 39
21 18
10 23
4 30
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html>
<head><meta charset="utf-8" />
<title>Link factors to connectivity patterns</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<style type="text/css">
/*!
@jokedurnez
jokedurnez / infomap_from_correlation.py
Last active March 13, 2017 17:27
This piece of code applies infomap to a correlation matrix as in Gordon, Cerebral Cortex, 2016. 'labels' should be a pandas dataframe with columns 'x','y' and 'z' with their locations in mni-space and mm.
import sys
import os
sys.path.append(os.path.join(os.environ.get('SOFTWAREDIR'),'infomap/examples/python/'))
from infomap import infomap
import pandas as pd
import numpy as np
from collections import Counter
def infomap_correlation(correlation,labels):