Skip to content

Convert expression data in RData format to pnadas dataframe

Notifications You must be signed in to change notification settings

aneeshpanoli/rdata_to_pandas_dataframe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rdata_to_pandas_dataframe

Converts expression data in RData format to pandas dataframe to work in python environment

Usage

from rdata_to_pandas_dataframe import convert  
r2df = convert.Initialize()  
url_name = "http://bowtie-bio.sourceforge.net/recount/ExpressionSets/bodymap_eset.RData"  
r2df.download_rdata(url_name, "body_map_eset.RData")  

eset = r2df.load_rdata_as_eset(file)  
r2df.get_table_names(eset)  
pdata_df = r2df.get_pd_dataframe(eset, 'pData') # phenotype data
fdata_df = r2df.get_pd_dataframe(eset, 'fData') # feature data
edata_df = r2df.get_pd_dataframe(eset, 'exprs') # expression data

Enter n at the prompt

Requirements

seaborn
rpy2
urllib
pip install pandas==0.23 # current version of pandas is not compatible with rpy2
numpy

About

Convert expression data in RData format to pnadas dataframe

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages