how to download dataset from NCBI dataset in python
I want to download data from NCBI, I want to do a similar query and to retrieve the data, in the way I can store in three different dataframe the phenotypical information, the expression matrix and clinical information.
I normally do this in R, but I want to do this in python.
# example R code I normally use library("GEOquery") GSE94499 <- getGEO('GSE94499', GSEMatrix=TRUE) gse <- GSE94499$GSE94499_series_matrix.txt.gz ch <- pData(gse) #retrieve clinical information f <- fData(gse) #retrieve phenotypical information y <-exprs(gse) #retrieve expression matrix
do you know any library to do this in python? Can you provide a sample code?
thank you very much for your help
• 40 views