<p>It doesn't (really) matter what language a piece of GWAS software is written in. SAIGE is written in a mix of R and C++. BOLT is written in C++. You shouldn't be writing a GWAS analysis from scratch, as it ends up being a very complex piece of software. You will almost certainly be interacting with the command line, when running a GWAS, so my advice is to find the software which is most suitable for your piece of analysis, not one which is written in a programming language you like.</p>

CC BY-SA 4.0
2023-10-16T16:56:57.977Z
2023-10-16T16:56:57.977Z
user438383
<p><em>A question similar to this has also been asked on <a href="https://www.biostars.org/p/9577731/" rel="nofollow noreferrer">Biostars</a></em></p>
<p>I understand GWAS is done with R, but are any written in Python?
I'm used to python and java, acclimating to R will take a bit of time and my advisor wants some data analyzed. I plan on using R but given the deadline, I want to finish the analysis in Python.</p>

CC BY-SA 4.0
2023-10-16T15:47:43.803Z
Please [edit] your question and give us (a lot, a huge lot) more context. Tell us what input data you have, what kind of analysis you want to do (do you have the results of the GWAS study or are you trying to run the study itself?), what species and anything else that could be relevant. Of course you can do it in python, you can do anything in any programming language, so you really need to narrow this down to something very specific that can be answered in a few lines.
terdon
CC BY-SA 4.0
2023-10-16T21:33:40.210Z
Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
Community
CC BY-SA 4.0
2023-10-17T16:06:36.107Z
I would adapt PLINK. Whilst Biopython pop gen could be used it is better to use a standalone package.
M__
CC BY-SA 4.0
2023-10-17T21:01:38.987Z
You can use Python to wrap around command line tools
BigMistake
<python><gwas>
GWAS in python?
# GWAS in python?

(Asked by: username_0 on 2023-10-16)

*A question similar to this has also been asked on [Biostars](https://www.biostars.org/p/9577731/)*

I understand GWAS is done with R, but are any written in Python?
I'm used to python and java, acclimating to R will take a bit of time and my advisor wants some data analyzed. I plan on using R but given the deadline, I want to finish the analysis in Python.

**Tags:** python, gwas
> **Comments:**
> **username_1**: Please [edit] your question and give us (a lot, a huge lot) more context. Tell us what input data you have, what kind of analysis you want to do (do you have the results of the GWAS study or are you trying to run the study itself?), what species and anything else that could be relevant. Of course you can do it in python, you can do anything in any programming language, so you really need to narrow this down to something very specific that can be answered in a few lines.  
> **username_2**: Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.  
> **username_3**: I would adapt PLINK. Whilst Biopython pop gen could be used it is better to use a standalone package.  
> **username_4**: You can use Python to wrap around command line tools  

---

## 1 answers

### Answer by username_5 on 2023-10-16. Score: 5

It doesn't (really) matter what language a piece of GWAS software is written in. SAIGE is written in a mix of R and C++. BOLT is written in C++. You shouldn't be writing a GWAS analysis from scratch, as it ends up being a very complex piece of software. You will almost certainly be interacting with the command line, when running a GWAS, so my advice is to find the software which is most suitable for your piece of analysis, not one which is written in a programming language you like.


---

