r/bioinformaticsdev • • Oct 24 '25

mods Creation of bioinformaticsdev

10 Upvotes

I have started this subreddit as I could not find an appropriate community for bioinformatics tool builders/developers.

My goal here is to bring together those who have built and maintain tools, with those learning to do so, or who have questions around tool building.

There are many "best" practices that are mostly gained through experience and working in other fields. I want us to share this experience, discuss different approaches, and be curious about how we can make quality bioinformatic tools.

I don't have all the answers, but I have a lot of opinions. Let's discuss, and create a place for tool development to thrive.

One point to make, is that I am only allowing for open source software to be discussed. Please don't link to or talk about commercial software.

Also, feel free to drop an announcement of your new software. Try to give us a solid explanation of why you wrote it, how it works, and who might be interested in using it. I find it tricky to keep up with tool releases, and i'd like this place to be another source of tool discovery.

Anyway, that's enough rambling. i'll write something more comprehensive as a community guide soon.


r/bioinformaticsdev • • Nov 30 '25

Release mim : A small auxiliary index (and parser) to massively speed up parallel parsing of gzipped FASTQ/A files

7 Upvotes

As computers have been getting faster, and adding more cores, so too have bioinformatics software developers been working on ever more efficient lightweight methods to accurately analyze sequencing data. As we develop new methods based on ever faster methods for lightweight mapping, and sketching, etc., there is one step of the high-throughput pipeline that has basically stopped scaling altogether --- decompression and parsing.

The FASTQ format itself is relatively deoptimized for machine parsing, but the much larger problem is that the vast majority of this data is (for good reason) stored, compressed, and processed in a compressed format. For historical reasons, that compression format is gzip, a reasonably efficient but fundamentally serial decompression format. While there are methods to try to speed up decompression on many cores (e.g. rapidgzip). They perform speculative decoding and themselves end up consuming considerable compute resources. Yet, conceptually, what we'd like is trivial. If we have a 10GB input file and 10 threads, we'd like each thread to process ~1GB of the compressed input file independently of the others to perform our embarrassingly parallel task on it (e.g. read alignment). As the scale of data get ever larger, the decompression and parsing themselves become bottleneck steps.

To address this issue, we've developed mim, an auxiliary lightweight index to enable fast, parallel parsing of gzipped FASTQ files. Mim indexes a gzipped FASTQ file (a one-time process eventually designed to be done by the data curators / repositories) that creates, throughout the file, a series of checkpoints, from which compression can proceed independently and in parallel. Further, the mim index is "content aware", and so, with each checkpoint, it stores information about record boundaries and record ranks (essential for efficient paired-end parsing) in the indexed file. The index itself also incorporates several other nice features, like a cryptographic checksum of the file contents to ensure that you're using the index for the file you have, and the ability to embed arbitrary user data in the index itself.

To demonstrate the utility of this approach, we've also built mim-parser, which is a modified version of kseq++ that makes use of the mim index to enable efficient parallel decompression and parsing of FASTA/FASTQ files. We demonstrate that this provides a near-linear speedup in the number of threads being used. The index itself is quick to build (though we've not yet optimized construction), a one-time task, and small (about 1/1000-th the size of the compressed input file). Our hope is to demonstrate the utility of this approach and to build these indices for a large fraction of existing data in the major repositories (perhaps as a community effort or with the help of the repositories themselves). The index is also robust to many different types of input gzip files (single streams, multi-member archives, and even BGZF files). While we're already excited with what we're seeing from the prototype, we have a series of enhancements we hope to make including a Rust implementation and Python bindings for that Rust implementation, faster construction, even faster parsing policies, and the ability to remotely fetch existing indices using the cryptographic hash they encode.


r/bioinformaticsdev • • Nov 24 '25

Discussion Github use in bioinformatics

7 Upvotes

I've been writing some standard operating procedures for our lab and GitHub/gitlab/etc use.

The goal is to have some standard minimum information, like a licence, how to install and run what you have made, and tests if appropriate.

A few non obvious things, are succession plans, minimum support and maintenance terms, and where a repository should "live".

Personally I think if you write a tool, it should be in your GitHub. You may move labs or whatever, but the best person to maintain something you built in academia, is probably you. It's also part of your CV. And this is kind of regardless of the IP ownership of the university or institute. The other option is having the repo live in an organization, but I think that is more complicated.

So I preference personal repos. Private on creation, public on submission. A transfer or fork of the repo depending on publication status if they can't meet the 5 year maintenance agreement. (Which may be less depending on context of course, but I would like bioinformatics to get better at this, not maintain the current status quo of crappy software support).

What do you think? What do you do? Are they they same? What things should I look out for when finalizing this SOP? Happy to hear any thoughts on the matter.


r/bioinformaticsdev • • Jun 04 '26

Release Sassy: fuzzy searching DNA sequences using SIMD · CuriousCoding

Thumbnail curiouscoding.nl
6 Upvotes

r/bioinformaticsdev • • Mar 03 '26

Release kuva: A scientific plotting library for Rust

Post image
6 Upvotes

r/bioinformaticsdev • • Oct 24 '25

Release I tried to do something simple, got annoyed when it didn't work, so wrote a new tool - bedpull

6 Upvotes

The title is a little dramatic, but that's basically the summation of it.

I was trying to extract some sequences from the hg002 assemblies (maternal/paternal) using hs1 reference genome coordinates, however many of the sites I was interested in have short tandem repeats (STRs), indels, SVs, and can diverge from the reference a fair bit. I tried building chain files with minimap2 and LAST. The minimap2 route worked quite well. However when trying to confirm bed coordinates provided by liftover, I found it was not quite right.

Take this RFC1 target

The hs1 -> hg002 coordinates provided by liftover give the same span, 59bp, which fooled me into thinking, ahh yes, this must have worked. But as I always say to my students "did you look at the sequence?". Just another reason why checking things in IGV is so useful. There is a 520bp insertion in the paternal assembly that is completely missed.

Reference (hs1):               chr4:39318077-39318136 (59 bp)
HG002 paternal (liftover):     chr4_PATERNAL:39438551-39438610 (59bp)
HG002 paternal (bedpull):      chr4_PATERNAL:39438031-39438610 (579 bp)

I found similar issues with the other sites.

Anyway, I thought it would be relatively straightforward to extract these sequences/get the coordinates, but I guess not.

So I wrote a new tool, bedpull, that takes a bed and a bam, and extracts the sequence at the reference coordinates. It will also cut out the quality substring to go with it with `--fastq`

If you want the query coordinates too (like what liftover gives you), then you can give bedpull a paf file and the query fasta file and it will do the translation for you and extract the sequence.

I have a few little features I want to add, like generating a consensus sequence for sequencing reads extracted from a bam file, and doing various filtering with qscore and map quality. I also want to handle HP tags. Alas, this was a side quest on my way to generating a benchmark for another project, so i'll come back to it later.

In the meantime, this tool might be helpful, to just do that simple thing.

https://github.com/Psy-Fer/bedpull

Happy to answer any questions.

Also if you read this, and went "Why didn't they just do <this>", please let me know so I can try it.


r/bioinformaticsdev • • 10d ago

Release spearfish: ultrafast Δ-mapping of long reads to redundant transcriptomes

Thumbnail
biorxiv.org
5 Upvotes

We have developed a new algorithm (Δ-mapping) and an efficient implementation of it for mapping long reads (ONT cDNA and dRNA and PacBio) to the transcriptome.

Spearfish builds a gene-level, De Bruijn-like graph out of seeds constructed from a locally consistent parse of the transcripts. This collapses most of the redundancy and also puts the seeds in a shared reference frame where we can share the work done during co-linear chaining over common dynamic programming states.

The top-level result is that spearfish ranges from 24-102x faster than minimap2 in our testing, while always using at most 1/4 of minimap2 's memory. In our tests, it also matches or outperforms minimap2 I terms of top-1 mapping accuracy (in simulation, where such things are measurable) all the way up to a 10% error rate. It also computes scores custom built for quantification which can lead to even better quantification results. We have built support directly into our quantification tool, oarfish (https://combine-lab.github.io/oarfish/guides/mapping-backends/#spearfish).

You can install spearfish and oarfish from bioconda, or download executables directly from our GitHub releases (or build from source, as they are both written in Rust so building is quite easy). We're excited for people to try out our new tool and happy for feedback and suggestions!


r/bioinformaticsdev • • Oct 31 '25

mods 👋 Welcome to r/bioinformaticsdev - Read First!

4 Upvotes

Hey everyone! I'm u/Psy_Fer_, a founding moderator of r/bioinformaticsdev.

This is our new home for all things related to bioinformatic tool development . We're excited to have you join us!

What to Post
Post anything that you think the community would find interesting, helpful, or inspiring. Feel free to share your thoughts, photos, or questions about building/developing/maintaining bioinformatic tools and pipelines. Share your wisdom from some particularly gnarly problem you solved. Post about your new tools.

Community Vibe
We're all about being friendly, constructive, and inclusive. Let's build a space where everyone feels comfortable sharing and connecting.

How to Get Started

  1. Introduce yourself in the comments below.

  2. Don't be afraid to post! Even a simple question can spark a great conversation.

  3. If you know someone who would love this community, invite them to join.

  4. Interested in helping out? We're always looking for new moderators, so feel free to reach out to me to apply.

Thanks for being part of the very first wave. Together, let's make r/bioinformaticsdev amazing.


r/bioinformaticsdev • • Oct 24 '25

Ecosystem At which point is it worth switching from pip to uv?

4 Upvotes

I'm a long time pip user. I have written a number of python bioinformatic tools. My go to install instructions is something like this:

python3 -m venv ./blue-crab-venv
source ./blue-crab-venv/bin/activate
python3 -m pip install --upgrade pip

pip install blue-crab

blue-crab --help

Now, I do try to limit my use of external libraries, so this may be why i've never had many issues, but is moving to another package manager really worth it? At which point does it start to have an impact?

I avoid conda like the plague, but again, I have not really needed it in the past and when I have, it's always caused headaches.

I think maybe the most compelling reason is the ability to install other python versions easily, and the cargo style package management.

Am I doing something bad by sticking with pip and python3 -m venv ?

At which point should I make the switch, and how easy is it to switch a project that's been using pip for a few years?


r/bioinformaticsdev • • Oct 31 '25

Discussion Version control naming

3 Upvotes

How do ya'll go about version control on software?

I mean, besides the usual semantic versioning and using git of course.

I tend to go with `v0.1.0` as the first release.

Small fixes increment the last value
Feature updates increment the second value
Any major changes, especially to the CLI and output increase the 1st value

Usually I won't hit v1.0.0 until I think the software is stable and has most features I wanted it to have.

I think this might be a bit minimising though. What do you do?


r/bioinformaticsdev • • Jan 03 '26

This is a great question on bioinformatics that is relevent here.

Thumbnail reddit.com
2 Upvotes

r/bioinformaticsdev • • Oct 31 '25

Feedback I am writing a plotting library in Rust - which plots do you want?

2 Upvotes

I am writing a new plotting library in rust, because I found the existing ones, like plotters, were tricky to make publication level plots.

It's been really fun designing it and trying to solve a number of pain points I always have, like making it automatically scale and handle the axes, create legends, grouped plots for bar charts and violin plots.

Here is a list of plots I have so far:

  • Bar

  • boxplot

  • brickplot (a new plot type for showing repeating elements - made for STR stuff)

  • heatmap

  • histogram

  • 2d histogram

  • line

  • pie

  • scatter

  • series

  • violin

Happy to add in your favourite plot while i'm still testing and adding features.

The way the plotting works for the library is a basic builder type method

let data = (0..100)
            .map(|x| (x as f64 / 10.0).sin())
            .collect::<Vec<_>>();
let series = SeriesPlot::new()
                    .with_data(data)
                    .with_color("green")
                    .with_line_point_style()
                    .with_legend("sine");


let plots = vec![Plot::Series(series)];


let layout = Layout::auto_from_plots(&plots)
        .with_x_label("Time (s)")
        .with_y_label("Amplitude")
        .with_title("Sine Wave");
        // .with_ticks(6);


let scene = render_multiple(plots, layout);
let svg = SvgBackend.render_scene(&scene);
std::fs::write("test_outputs/series_builder.svg", svg.clone()).unwrap();

It will also have a binary, that allows you to create the basic version of any plot type from data piped to it or read from a simple tsv file on the command line. I wanted this to be something to add to my tool list for data exploration, or just visualising a distribution, or some kind of stats.

I wrote this so I could use it in a tool i'm releasing soon that has a visual component, and I figured I might as well complete it so others can use it/add to it.

So, which plot type would you like it to have that isn't there yet?

Here are a few more examples: (you may need to click on them on PC - preview is blurry, but they seem to show fine on a phone)


r/bioinformaticsdev • • 2d ago

Release An MIT-licensed Open Targets explorer for rare-disease medicines, and what patient audits caught

1 Upvotes

Patients across much of the world struggle to find out which medicines are already approved or in clinical trials for a rare condition. That information is scattered across regulatory labels, trial registries, and specialist bioinformatics portals. Moonlight is an open-source (MIT-licensed) web explorer where you type a condition and see medicines linked to it sorted into Approved, Being studied, and New clues, plus what was left out, with each card pointing back to its source document.

One example shows why this matters: a person living with limb-girdle muscular dystrophy in Kochi, southern India, used the site to locate a clinical trial in the United States, and agreed to us mentioning that. For people already treated at a major research centre, this adds little; where specialists are scarce, having source-linked options on one page changes access.

How the pipeline works

  • Source of record: Everything reads directly from the Open Targets Platform API (platform.opentargets.org). Moonlight keeps no separate proprietary database; it acts as a readable window onto Open Targets paired with audited override files in the repository.

  • Deterministic sorting in Python: Small focused modules under moonlight/ (fetch.py, filter.py, engine.py, rank.py, records.py, protein.py, explain.py, translate.py, cache.py, reports.py, api.py) map everyday condition names to MONDO, EFO, and HP identifiers, pull associated protein targets and linked drugs, and classify entries with ordinary Python rules rather than a model at query time. Drugs approved for the condition go to Approved, drugs in trials for it go to Being studied, drugs approved elsewhere acting on a disease-linked protein go to New clues, and unapproved compounds or unclear links go to Left out. Salt forms collapse into a single card, and clue cards carry a gene-evidence line plus a UniProt protein summary.

  • Stack and caching: Python 3.13, FastAPI, Uvicorn, Requests/HTTPX, a single static HTML/JavaScript frontend (web/index.html), Docker on Google Cloud Run (asia-south1), and a three-tier cache (in-memory, /tmp disk, and Google Cloud Firestore for raw Open Targets responses so cached pages survive container restarts).

  • Offline label auditing and tests: No language model invents drug-disease links on the fly. Batch scripts read FDA, EMA, DailyMed, and PMDA labels offline to flag mismatches against Open Targets. Corrections reported by rare-disease patient communities become tickets, get checked against regulator labels, land in versioned JSON files (corrections.json, approvals.json, limits.json, left_out.json), and are locked in by pytest tests running on saved Open Targets fixtures.

Two early wins

  • Upstream and patient impact: Beyond the Kochi trial find, Open Targets confirmed seven wrong approval records we reported and scheduled the fix for release 26.12 (documented on community.opentargets.org thread 2105).

  • Community feedback and recent engineering: We have logged 17 feedback tickets from rare-disease subreddit threads so far, feeding 102 audited entries in corrections.json and 29 hand-verified entries in approvals.json. Just today (25 Nov, pull requests #77 to #91 on main), we merged gene-evidence lines on clue cards, an inline Report button saving user flags to Firestore, in-memory plus Firestore Open Targets caching, regulator-label caution flags, 23 fixed wrong source links, hand-written withdrawal notes, and Open Source Collective governance files.

Two honest constraints

  • Upstream approval noise: Sitting directly on Open Targets means wrong approval statuses, generic PMDA links, or outdated trial entries surface on Moonlight until audited against primary regulator labels.

  • Out-of-pocket verification cost: Running batch label checks across thousands of drug-disease pairs uses model API credits paid out of pocket, and the project has no ads, no paid tier, and no data selling.

Live site: https://www.moonlightclues.com Repository (MIT): https://github.com/Moonlight-Clues/moonlight

Primary ask: we are looking for AI/model API credits, or introductions to organisations and programmes that grant them to open-source public-interest projects, so we can finish auditing regulator labels across rare conditions.

Secondary ask: if you work on Python bioinformatics tooling, regulator data, or partner with clinicians and patient groups in India or elsewhere, feedback and pull requests on where the Open Targets pipeline misclassifies drugs are very welcome.


r/bioinformaticsdev • • Feb 04 '26

idea I built an open PDAC clinical trials atlas - looking for feedback

1 Upvotes

Hi everyone,

I’m an IT engineer with a naturally curious mindset and a strong drive to learn. Over the past weeks, I’ve been building a small experimental web app that tries to answer some interesting questions around PDAC (pancreatic ductal adenocarcinoma) clinical trials — a disease that still has an extremely low survival rate.

This project started from a very personal place. A close family member passed away from pancreatic cancer in a very short time, with almost no real treatment options. At the same time, I’ve been following recent scientific progress (like the work of Dr. Barbacid), and I wondered whether I could contribute something — even in a small way — from my own field.

That’s how **pdac-trial-atlas** was born.

It’s a simple tool that normalizes and classifies pancreatic cancer clinical trials worldwide, aiming to make basic analysis easier and help surface patterns such as:

* which therapeutic approaches are being studied most

* where efforts are concentrated across phases

* which drugs appear most frequently

* how many trials actually reach phase 3

* how many are completed vs terminated

* etc.

For now, the dataset comes only from [ClinicalTrials.gov](http://clinicaltrials.gov/) (\~2,300 normalized trials), but the plan is to integrate additional sources over time.

The whole project was built with the help of AI (Codex), which I used for the first time as a learning exercise and to explore its real potential in technical projects with meaningful impact.

I’m not trying to draw scientific conclusions — that requires much deeper expertise and more complete data — but I do believe this can serve as a starting point for exploration, discussion, or new ideas.

I would really appreciate constructive feedback, criticism, or suggestions from people in the field (researchers, clinicians, data folks, etc.).

If someone finds even a small part of this useful, that alone would make it worthwhile.

App:

[https://pdac-trial-atlas.streamlit.app/](https://pdac-trial-atlas.streamlit.app/)

Repository:

[https://github.com/cede87/pdac-trial-atlas](https://github.com/cede87/pdac-trial-atlas)

Thanks for reading.


r/bioinformaticsdev • • Nov 24 '25

Discussion Competing with a Heart Disease Prediction Paper — Need Your Support! ❤️

1 Upvotes

Hi everyone! I’m Stephani, a BME student at the University of Alberta.
I’m participating in a competition with a software I developed for predicting heart disease, and the winner is decided by votes.

If you’d like to support me, I’d really appreciate a like on my post:

VOTE HERE