Skip to content

swiri021/Xena_wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

Xena_wrapper

This is a Python class for wrapping xenaPython

Copyright of Xena : The Regents of the University of California, Santa Cruz. UCSC Xena

Example :

import xenaPython as xena
from TCGAlib.TCGAlib import load_TCGA

### Host (GDC TCGA)
host = xena.PUBLIC_HUBS['gdcHub']
### Project name
prjID = 'TCGA-SKCM'
### Cohort name
cohort = 'GDC TCGA Melanoma (SKCM)'

tcga = load_TCGA(host, cohort, prjID)

# Input shoud be EntrezID
input_list=['9480', '367', '2137']

# Getting expression(FPKM)
tcga_expr = tcga.get_TCGA_expr(input_list)
# Getting CNV
tcga_cnv = tcga.get_TCGA_cnv(input_list)
# Getting Mutation
tcga_mut = tcga.get_TCGA_mut(input_list)
# Getting Survival
tcga_surv = tcga.get_TCGA_surv()

About

xenaPython wrapper

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages