Body: <p>In publications the GEO code is usually shared and not the BioProject/study code.</p>
  <p>I want to get the BioProject/Study Accession code of a GEO dataset (to later download the data from ENA).<br />
  I know that I can go to the website and see find it but I would like to automate the process.</p>
  <p><a href="https://doi.org/doi:10.18129/B9.bioc.GEOquery" rel="nofollow noreferrer">GEOquery</a> didn't provide it, and the data doesn't seem to be available via <a href="ftp://ftp.ncbi.nlm.nih.gov/geo/README.txt" rel="nofollow noreferrer">the FTP</a>.<br />
  Is there a programmatic way to obtain it?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-04-28T12:41:07.730Z
Comments.Text: This must be doable because it has an API here https://rdrr.io/bioc/GEOquery/api/ - which is exactly what is needed here
Comments.UserDisplayName: M__
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-04-29T23:29:43.260Z
Comments.Text: Can you please explain more about why going to the website is not good enough? For a single GEO dataset, it would be quicker and easier to use the website.
Comments.UserDisplayName: gringer
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-05-02T10:05:43.997Z
Comments.Text: Because I want to download the files from multiple GEO datasets and match the data with other information. The background history is that my group currently do not have a local copy of some data which I know was published in a paper, that paper has several GEOs and I want to download them and find which samples are from the missing data. 
  I think I identified the relevant one, but I might have missed it and I want to have a solution for the future (I think this will happen more :( )
Comments.UserDisplayName: llrs
Tags: <public-databases><data-download><geo>
Title: Get BioProject code of a GEO dataset
ThreadText: # Get BioProject code of a GEO dataset
  
  (Asked by: username_0 on 2023-04-28)
  
  In publications the GEO code is usually shared and not the BioProject/study code.
  
  I want to get the BioProject/Study Accession code of a GEO dataset (to later download the data from ENA).  
  I know that I can go to the website and see find it but I would like to automate the process.
  
  [GEOquery](https://doi.org/doi:10.18129/B9.bioc.GEOquery) didn't provide it, and the data doesn't seem to be available via [the FTP](ftp://ftp.ncbi.nlm.nih.gov/geo/README.txt).  
  Is there a programmatic way to obtain it?
  
  **Tags:** public-databases, data-download, geo
  
  > **Comments:**
  > **username_1**: This must be doable because it has an API here https://rdrr.io/bioc/GEOquery/api/ - which is exactly what is needed here  
  > **username_2**: Can you please explain more about why going to the website is not good enough? For a single GEO dataset, it would be quicker and easier to use the website.  
  > **username_0**: Because I want to download the files from multiple GEO datasets and match the data with other information. The background history is that my group currently do not have a local copy of some data which I know was published in a paper, that paper has several GEOs and I want to download them and find which samples are from the missing data.  I think I identified the relevant one, but I might have missed it and I want to have a solution for the future (I think this will happen more :( )  
  
  ---
  
  ## 0 answers
  
  