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

Snakemake - Dynamically Derive The Targets From Input Files

I have a large number of input files organized like this: data/ ├── set1/ │ ├── file1_R1.fq.gz │ … Read more Snakemake - Dynamically Derive The Targets From Input Files

Algorithm To To Cluster Similar Strings In Python?

I'm working on a script that currently contains multiple lists of DNA sequences (each list has … Read more Algorithm To To Cluster Similar Strings In Python?

Using Regex To Search Until Desired Pattern

I am using the following regex: orfre = '^(?:...)*?((ATG)(...){%d,}?(?=(TAG|TAA|TGA)))' % (… Read more Using Regex To Search Until Desired Pattern

What Causes Python Error 'bad Escape \c'?

I just wrote a function that will look at a text file and count all of the instances of True and Fa… Read more What Causes Python Error 'bad Escape \c'?

Pyparsing: Extract Variable Length, Variable Content, Variable Whitespace Substring

I need to extract Gleason scores from a flat file of prostatectomy final diagnostic write-ups. Thes… Read more Pyparsing: Extract Variable Length, Variable Content, Variable Whitespace Substring

Single Linkage Clustering Of Edit Distance Matrix With Distance Threshold Stopping Criterion

I'm trying to assign flat, single-linkage clusters to sequence IDs separated by an edit distanc… Read more Single Linkage Clustering Of Edit Distance Matrix With Distance Threshold Stopping Criterion