Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download full metadata without sequences #18

Open
Wytamma opened this issue Mar 30, 2022 · 5 comments
Open

Download full metadata without sequences #18

Wytamma opened this issue Mar 30, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@Wytamma
Copy link
Owner

Wytamma commented Mar 30, 2022

Currently the full metadata can only be downloaded with the sequence data. Is there a way to only get the metadata without downloading sequences? (#16)

@Wytamma Wytamma added the enhancement New feature or request label Mar 30, 2022
@tomwenseleers
Copy link

tomwenseleers commented Jul 29, 2022

I seem to have asked a similar question here
https://github.com/Wytamma/GISAIDR/issues/26
where I mention that I found a solution to do this from R using RSelenium - see answer here
https://stackoverflow.com/questions/72632118/download-covid-patient-metadata-from-gisaid-website-in-r-using-rselenium

@Wytamma
Copy link
Owner Author

Wytamma commented Jul 30, 2022

Thanks @tomwenseleers this issue is related to downloading the full metadata without the sequences. I think this might be related to the different versions of GISAID we have (touched on here #26 )... For me and others when we download sequences from GISAID we get a zip file that contains a fasta file and a metadata.tsv i.e. it is not possible to download metadata.tsv without the fasta.

@tomwenseleers
Copy link

tomwenseleers commented Jul 31, 2022

For the record, with my login & credentials, this is how I managed to download a separate metadatafile with all the columns I was given access to & the code given can also still be modified a bit to allow download of the FASTA; this is using RSelenium (so a bit different than your httr approach). It also shows how to get the most recently uploaded records that are absent in the download package: https://stackoverflow.com/questions/72632118/download-covid-patient-metadata-from-gisaid-website-in-r-using-rselenium

@jrotieno
Copy link

jrotieno commented Sep 1, 2022

Do you know if your rselenium code can extract the sequencing technology field?

@tomwenseleers
Copy link

Right now I didn't implement that yet, but with some small modification in the code this would be possible...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants