Here, the .get function on maps is about 1m times slower than the .getitem function. Why?
To run (requires Python 3, Cython, and a C/C++ build environment):
python setup.py build_ext -i
python test.py
Hi bwa users, | |
The bwa-mem manuscript has been rejected. Interestingly, the first | |
reviewer only raised a couple of minor concerns and then accepted the | |
manuscript in the second round of the review. The second reviewer made | |
quite a few mistakes on some basic concepts and was hostile from the | |
beginning. The third reviewer gave fair and good review in the first | |
round, all of which have been addressed, but he then tried hard to | |
argue one particular mapper to be the best in accuracy that on the | |
contrary is inferior to most others in my view. I admit that my |
Here, the .get function on maps is about 1m times slower than the .getitem function. Why?
To run (requires Python 3, Cython, and a C/C++ build environment):
python setup.py build_ext -i
python test.py
#! /usr/bin/env python | |
import sys | |
import argparse | |
import copy | |
import sourmash | |
from sourmash import sourmash_args | |
from sourmash.logging import notify, error | |
import numpy | |
# works fine | |
numpy.array([5, 6, 7, 8], dtype=numpy.uint64) | |
# fails | |
numpy.array(set([5, 6, 7, 8]), dtype=numpy.uint64) |
# in a Jupyter notebook, after %pylab inline | |
# so - not a Python bug, but a pylab/numpy thing | |
c = collections.Counter() | |
c['a'] = 5 | |
c['b'] = 3 | |
print('XXX:', sum(c.values())) | |
print('YYY:', sum([ x for x in c.values() ])) | |
# gives: |
Implement contig contamination analysis as in (blog post)
import sys | |
import sourmash | |
sbt = sourmash.load_sbt_index(sys.argv[1]) | |
print(next(iter(sbt.leaves()))) |
global_var = 'a global variable' | |
rule all: | |
input: | |
"1-foo-hello.txt", | |
"2-bar-hello.txt", | |
"3-fiz-hello.txt", | |
"4-bif-hello.txt" | |
# |
I spent Tues and Wed over by the Hermitage (downtown St Petersburg) being a tourist. A couple of suggestions for those of you who are here for a few more days and want to do the big tourism spots —
a good itinerary involving the below is,
Everything below involves a total of about 45 minutes of walking, if you start at the hermitage.
I spent Tues and Wed over by the Hermitage (downtown St Petersburg) being a tourist. A couple of suggestions for those of you who are here for a few more days and want to do the big tourism spots — | |
a good itinerary involving the below is, | |
* hermitage early in the day, before it gets busy | |
* late lunch at the blini place | |
* boat trip | |
Everything below involves a total of about 45 minutes of walking, if you start at the hermitage. |