Skip to content Skip to sidebar Skip to footer
Showing posts with the label Sequence

Why Is `{*l}` Faster Than `set(l)` - Python Sets (not Really Only For Sets, For All Sequences)

So here is my timings: >>> import timeit >>> timeit.timeit(lambda: set(l)) 0.7210… Read more Why Is `{*l}` Faster Than `set(l)` - Python Sets (not Really Only For Sets, For All Sequences)

Convert List Of Numbers To String Ranges

I'd like to know if there is a simple (or already created) way of doing the opposite of this: … Read more Convert List Of Numbers To String Ranges

Search For Motifs With Degenerate Positions

I have a 15-mer nucleotide motif that uses degenerate nucleotide sequences. Example: ATNTTRTCNGGHGC… Read more Search For Motifs With Degenerate Positions

Detect Whether Sequence Is A Multiple Of A Subsequence In Python

I have a tuple of zeros and ones, for instance: (1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1) It turns out:… Read more Detect Whether Sequence Is A Multiple Of A Subsequence In Python

How To Sequence Row Based On Another Row?

I am trying to convert a formula from excel to pandas. The DataFrame looks like this: Column A … Read more How To Sequence Row Based On Another Row?