November 2018
Intermediate to advanced
360 pages
9h 36m
English
%matplotlib inlinefrom collections import defaultdictimport gzipimport numpy as npimport matplotlib.pylab as plt
num_parents = 8dp_2L = np.load(gzip.open('DP_2L.npy.gz', 'rb'))print(dp_2L.shape)
for i in range(num_parents): print(np.median(dp_2L[:,i]), np.median(dp_2L[50000:150000,i]))
Interestingly, the median for the whole chromosome sometimes does not hold for that big region in the middle, so let's dig further.