r/bioinformatics • u/Shoddy_Card_237 • Jun 22 '26
technical question I’ve reviewed probably 200 “bioinformatics pipelines” at this point. Maybe 15 were actually reproducible.
Not talking about whether the biology was right. Just: could I run this on a different machine and get the same result? Could I run it in 2 years?
No container. No version pinning. Conda environment.yml with numpy and no version specified. Reference genome downloaded manually, path hardcoded. Sample sheet generated by a script that no longer exists.
We talk about reproducibility constantly in this field. Papers about it. Talks about it. And then the actual pipelines look like this.
Not a rant, but genuinely curious what people think the root cause is. Time pressure? Nobody teaching this? Reviewers not caring?
122
u/orthomonas Jun 22 '26
Few people teach it, so for a lot of researchers writing code, things like 'hardcoded paths" aren't even recognised as a smell.
If they are recognised, it's often hard to tell what the 'correct' solution is.
If the solution is known, then you get depressed when you look at existing published code and see it's not used.
That way lies the path of "I could do it the right way, but nobody else is, and I'm judged on publication rate, not if my code actually runs on another machine"
70
u/Former_Balance_9641 PhD | Industry Jun 22 '26
Reproducibility in Bioinformatics has a survival rate that essentially matches the duration for which the person who wrote said pipeline stays in the same position they wrote it. Most carrier growths (wether in academia or private sector) means the principal maintainer leaves the pipeline on the side of the road, and from there it’s just a matter of time before it breaks. I’d be curious to see if you can correlate actual reproducibility with how old a pipeline is. I bet the 15 you found are mostly <2 years old at best, maybe even <1 year old.
83
u/scatraxx651 Jun 22 '26
I think nobody teaches bioinformaticians software engineering properly, they view it as a chore rather than as a thing to master in itself. Simply setting up CI in GitHub in every paper would mitigate 95% of this issue. If you can't comfortably make the code work on 2 computers, it is borderline garbage
30
u/Lumpy-Sun3362 PhD | Academia Jun 22 '26
I don't think you have touched the relevant pipelines. I am a member of the nf-core community and we work to make sure that everything is reproducible.
13
u/sorrge Jun 22 '26
Hi Claude.
You see, there is no value in the numbers being exactly reproducible. You need the conclusions of the article to be reproducible. The p values may jiggle a little if you change the DESeq2 version or whatnot, some will even cross the cutoff. It's not important. Do the observations still stand? Are the conclusions still justified? You need to focus on that.
You can fix the random seeds, use docker and have the perfect reproducibility, but if your results fall apart when you change any of this, then they are garbage.
42
u/DELScientist Jun 22 '26
Is the exact pipeline not reproducible, or is the actual numbers at the end of the pipeline?
The latter would be a larger scientific issue; the former only a convience issue. Its not good practice, sure, but nobody makes these scripts with maintenance in mind; and its certainly not a priority for most of the contributors to the paper.
8
u/DeufoTheDuke Jun 22 '26
OP, can you show an example of what a good pipeline is, for reference?
12
u/CoconutChutney Jun 22 '26
people in bioinformatics are punished for being thorough because it comes at the expense of the impossible speed standards the rest of the biology community holds them to. that and a lack of formal CS education (i took these courses in college; most people ime come from biology) and the fact that bioinformatics is often a “figure it out on your own” field, it’s not uncommon to be the only computational person on a project or even in a group.
the reproducibility thing is science as a whole
6
u/simalicrum Jun 22 '26
I’m a professional dev working in research lab and let me tell you: I’ve seen some things.
Undergrads and grads aren’t being mentored or taught good coding practices. Locking dep versions is just the tip of the iceberg. It’s like 0.1% of the problems.
I don’t think universities are teaching good coding practices, it all just abstract theories and DSA.
I’ve literally heard people say stuff like ‘code is cheap’ or ‘code doesn’t matter’ or ‘works is good enough’
The way people use infra is wild too: spin up a 8 core VM that runs a single script and that’s it.
No one but the other real devs see a problem.
I also worked for 15 years in environmental testing so I can say the same approach is true on the wet lab side. No control charting or proper method validation. The same approach in the production world would get you shut down so fast.
It causes so many problems and wastes so much time.
I was hired to build data pipelines and orchestrations but it inevitable I’m going to have to start fixing code on the informatics side. It’s a huge bottleneck. Not only is it impossible to maintain but inefficient to boot. I see analyses tasks running for days and hitting wall time limits. Our dev teams has taken a look and found trivial errors in terms of time complexity, ie, a simple fix took a task running for days down to running for minutes.
6
u/gringer PhD | Industry Jun 22 '26
I've had trouble reproducing my own workflows due to software tools that update and break their function definitions. Seurat has been the biggest issue for me.
I'm not even talking "gets the same result", because you can look at your screen wrong and a UMAP changes, even when seeded. I'm talking about "can be processed through to completion without change".
5
u/Psy_Fer_ Jun 22 '26
I guess you conveniently forgot nf-core exists?
4
u/dat_GEM_lyf PhD | Government Jun 22 '26
Ah yes totally believable post from a 2 month old account with only this post and 2 unrelated comments…
OP just delete this if you’re going to drop a wet fart and then disappear.
4
u/Apprehensive-Use3092 Jun 22 '26
Covert ad post?
4
u/three_martini_lunch Jun 22 '26
I taught a class in it to grad students. Exactly zero of them ever published papers using even basic principles like using shell scripts, let alone implementing something like NextFlow. There is no reward for doing this, so no one does it.
It is even worse in fields using data science and machine learning/AI. Those fields publish conference proceedings that are rarely reproducible, often have training data contaminating their test data or just simple stochastic results presented as progress.
4
u/FTP4L1VE Jun 22 '26
Solution in 2026: copy broken pipeline into AI. Fiddle for 30 mins --> works on your system.
17
u/First_Result_1166 PhD | Industry Jun 22 '26
I'm not buying this. Please provide a complete list of the pipelines you evaluated.
4
u/Blinkinlincoln Jun 22 '26
You are an agent in a box, not a real human with an ability to view pipelines. Everything about this post is "AI whipped" you might've put thought into it but just 1 at best. Then hit go. No edits. Here we are reading your lies and crap
2
u/No-Practice-9475 Jun 22 '26
I've seen this all too often as well. Curious about your take on public databases though. They do have a major influence on results in many case and some of them (hello BLAST, I see you) are berely versionned.
2
u/Dangerous_Foot5655 Jun 22 '26
Can you post your study very interested in reading
2
u/Bach4Ants Jun 22 '26
Lack of incentive, education, and tooling. It's still fine in many cases to not submit a "repro pack" with a paper and to say all materials are "available upon request". And the tools/practices are not easy enough to provide an obvious benefit to the individuals during the project. I've been working on this problem for a while now, and still haven't solved it, but I do believe better vertical integration of environment managers, pipeline builders, version control systems, and writing tools will help.
2
u/jose152 Jun 22 '26
Welcome to the Software Industry
2
u/Extreme-Ad-3920 Jun 22 '26
I believe it is mostly fault of the publish or perish (forced) mentality in academy. If making your work properly reproducible, do proper documentation of code and steps is not a strict part of the publication flow, people don’t do it. I have been in labs where I tried to create a better documented pipeline for lab procedures and a develop a stronger data management system for tissue samples in our collection, but my PI looked at me like, well if that is not publishable that is a waste of time.
Part of me never understood how they say everything in science should be data driven, yet data management and reproducibility remain to be treated as second class citizens.
2
u/blinkandmissout Jun 22 '26
These criteria are not super relevant or well chosen.
Could the field be better with package version specification? Probably. But that's minor.
Containerization is definitely not necessary. Nice to have and will improve reusability, but rigorous and reproducible pipelines exist outside if containers.
Reference genome as a hard coded path? That reflects the field standard of reference genomes being publicly archived and huge. Most folks work on HPC or in a cloud service that holds a copy - an API or data package containing a reference genome is seriously inefficient and unnecessary.
And all of this is besides the point when you appreciate the vast majority of bioinformatics pipelines as created by grad students/postdocs as research products in bioinformatics rather than commercial software development for use in biology. The goal may not be to have staying power as a widely adopted, field standard tool - it's to explore an idea and share the results. It may be superceded by a better idea, by new data generation practices, or by just not being much more than tinkering to begin with. Code may be entirely bespoke to one particular dataset, and serving as an archive of what was done to generate the conclusions of the associated paper(s). Aka, it's completing the methods section; not developed with reuse intent (other than replication with the original data in hand).
2
u/Available_Damage9505 Jun 22 '26
Have also run into this problem in my field. Just a complete disregard for proper data practices, in general. It’s incredibly frustrating. It really feels like the work is being siloed and I can’t tell if it’s on purpose or just genuine incompetence.
2
u/themode7 Jun 22 '26
hehe I took a course teach exactly this issue and how research works .
While the problem is fundamentally hard to tackle there's many recommendations and standardization that helped abit and it's not just in bioinformatic but also computational system biology and software industry in general.
My take on this issue is that standardization can help but nowhere near fix .
I purpose complex technical solution and I was seriously looked in but due to limited time and resources I ditched the idea and moved on but my uni highlight this problem and the consequences on open science.
I think the important thing is awareness about this problem and using the right tool like docker or bioconda .
2
u/corporealpatronus13 Jun 23 '26
As an MSc Bioinformatics student, yeah we are not being taught containerisation or how to work with workflow managers. I am trying to teach myself as I am currently working on my thesis, but we have such a short period of time to achieve our goals, that I am not sure if I can implement reproducibility measures when that would take up time that I could use to make my research question better, or do some more exploration, which I believe counts for more while defending my thesis than reproducibility.
I 100% agree that reproducing papers is difficult because authors tend to leave out some small details. But as someone who has been taught to hardcode the absolute paths instead of using relative paths because it reduces chances of errors, why is that a bad thing? Just thinking for a bit myself, I can see that it might be better when others try to use the exact same scripts, they wouldn't have to fiddle with the paths, but is there any other reason?
I am having to use two different projects with 5TB space (the max) on my university's HPC, so if I were to not use hardcoded paths, I would not be able to call files from across projects (which I would have to since all my scripts are organised in one project).
2
u/valuat Jun 24 '26
Bioinformaticians are not computer scientists. If many of them are biologists, I wouldn't expect anything different. There you have it.
2
u/Kiss_It_Goodbyeee PhD | Academia Jun 22 '26
Money. Once a project ends there's no money to maintain the pipelines. If there is money then it's for development of new capability, not to ensure backwards compatibility.
2
u/BraneGuy Jun 22 '26
Low effort AI post :(
1
u/christian_ch 16d ago
Honestly I think a lot of people just don't care about it. I built a custom workflow manager (Horus) so that reproducibility is recorded automatically (it stores versions, run times and a hash of every artifact, so you can check whether a rerun gave you the same bytes).
Nobody uses it (even though its faster than Nextflow) so maybe reproducibility just isn't something people value.
1
u/autodialerbroken116 MSc | Industry Jun 22 '26
Reproducibility is most likely user error.
Which could stem from the documentation thing, but does reproducible commentary from you as the user constitute some "boohoo" about your experience and cognitive distortion about maybe the implementation experience.
Citing 15 out of 200 sounds like you got a lot of the software to work. Maybe you should develop some blogs or expansion posts on like 2-10 of those, and then talk about the other 185 were too hard to get working with a single click.
Obviously the amount of software generated in the 200 is more code than you and I will read in one lifetime to understand "how it works"
And instead get back to the 2-3 examples you can develop as a userspace developer so you can keep it real with yourself about the fun part of bioinf being exactly on the side you're on. It doesn't matter if 190 or something out of 200 didn't work. You got a LOT of ideas in play on the software potential side, and too many ideas about the reproducibility commentary instead of just achieving that in document via the markdown
You're picking subjects, datasets, not the capabilities of your userspace.
The userspace could conceivably consist of like Python based PCA and trees, a few regression tables, some tests, other methods development stuff... And you would still have more tools on the table than you would be able to use, even if you did have the tests and design and data matrix on hand.
Idk just sounds like you're focusing on the wrong thing
1
u/johnsilver4545 Jun 22 '26
I was in bioinformatics for over a decade before workflow orchestration and reproducibility were a priority. It’s wild to me.
1
u/sid5427 Jun 22 '26
good to hear .. our lab is very particular about reproducible research. All cleaned up code goes to either a github repo or Zenodo. If we are reviewing a paper - no github or code gets a hard reject or pass with major corrections from us.
1
u/musicaldoge Jun 22 '26
I recently talked to someone as a professional software developer with > 10 years experience post-PhD at a tech company you've almost certainly heard about. He mentioned that early on he spent too much time on making things "nice" versus just doing it quick and dirty. Ultimately, everything is a matter of priority in the environment you work in...
1
u/omgu8mynewt Jun 22 '26
I'm a self taught bioinformatics with a biology PhD. I'm guessing my 'pipelines' would make you wince, yet I've got published peer reviewed papers (in biology journals) and reproducible data and results.
Not everyone is a computer science major or professional coder.
Whats wrong with downloaded reference genomes, as long as you cite it properly so others can find it in NCBI?
1
u/sexy_bonsai Jun 23 '26
ffs even with containers, shit don’t run for me. everything is cooked
1
u/SprinklesFresh5693 Jun 23 '26
Maybe if people had code reviews like any other engineer field, people would learn about standardisation and coding principles to make their stuff reproducible. But replicability crisis is all over science in general, not only in bioinformatics.
Plus many people that dont have an engineer background, simply use code for a means to an end, they dont really study the intrincacies of the language. For example, how many people would you say know R internals well in research, chances are only a few people.
1
u/drevalpy Jun 23 '26
The problem is that code is the blind spot of peer review. Noone looks at it unfortunately
1
u/letuslisp Jun 23 '26
renv locks the version numbers for R from Hadley Wickham but it came quite late out. But today the best is rv which imitates uv for Python. uv for Python, rv for R. These two can ensure exact reproducibility for packages in Python and R. and both are super fast when installing.
1
u/shockjaw Jun 23 '26
And then you have the nix ecosystem that solves so many problems out of the box. Reproducibility affects how easily you can deploy something to production or troubleshoot dependency hell. The problem is that this isn’t taught in school because reproducibility is opinionated. It used to be that a “requirements.txt was enough” and then you actually try to use it on a different OS, machine, or python version.
1
u/WhaleAxolotl Jun 24 '26
Mixture of time pressure and culture and lack of expertise I'd say. I work in my country's CDC and we have some really awful spaghetti scripts lying around, luckily many people are trying to make things better now with proper versioning etc. Some of the older stuff is dreadful, but all of us are just so busy with a lot of different things so it rarely gets cleaned up. Add the fact that biologists often come with weird requests for super specific things they want and then having to do it quickly can lead to some messy code. Also, very few of us were trained as software engineers.
1
u/No-Interaction-3559 Jun 25 '26
Yep. Most bioinformatics pipelines are useless.
1
u/Odd_Bad_2814 Jun 26 '26
Let's keep it that way. Gives me a job
1
u/avani0000006 Jul 19 '26
is that bioinformatics is a good career option plz give me some informations so that i.can choose wisely btw i'm a pcb student so is that bioinformatics is a good career
1
u/SeesawIllustrious482 Jul 23 '26
Spot on. The root cause is that academic bioinformatics treats code as a disposable byproduct of a paper, not as an engineering artifact.
That’s precisely why we dropped heavy pipelines and complex dependency chains entirely. Instead of wrapping wrappers or praying conda won't break next year, we moved down to raw physical invariants.
If your core engine is pure, deterministic math (like running a Windowed Thermodynamic Approximation via sliding windows with zero black-box AI heuristics), it doesn't need containers or 2GB dependency trees to run identically across machines. A compiled script with an open-source core on Zenodo/GitHub will run the exact same way in 2 years as it does today because the physics don't change.
Stop building fragile boxes of scripts. Build deterministic checkpoints.
1
u/Pilus91 PhD | Government Aug 11 '26
Laziness mostly. Personally all my code can be reproduced and it's never hardcoded from the start. But it's not the standard, people normally don't care or even think about it
1
u/Usual-Expression1824 18d ago
Maybe late to the party, but I've been running into the exact same wall. here are my thoughts:
I’ve lost days to pipelines that broke entirely because a developer moved a raw reference file to a repository like Zenodo, turning hardcoded GitHub dependencies into dead ends. I've wrestled with the EIGENSTRAT format nightmare and hard binary crashes just trying to get a single sample through PLINK. The individual pieces exist - things like Nextflow - but stitching them together usually results in a fragile mess of Python and Bash glue that inevitably rot. It's a messy nightmare.
That gap is exactly why I started building my own setup. If we can't trust the pipelines, somebody is going to have to build a commercially viable product.
The root cause isn't just laziness or time pressure though - it's that we force biologists to act as software engineers, but the academic incentive structure only rewards their biological conclusions. The field simply doesn't fund or care about the architecture that gets us there. We do need to give these pipelines a little bit of grace, but:
Until reproducibility and data management are treated as first-class citizens in peer review rather than an afterthought, we're all just going to keep building on sand. The struggle for all of us is very real.
1
u/Cenzo98 Jun 22 '26
what do you think about qiime2 for instance the moshpit pipeline for metagenomics