old_contents: #!/usr/bin/env python
  
  import xena_query as xena
  
  huburl = "https://genome-cancer.ucsc.edu/proj/public/xena"
  dataset = "TCGA/TCGA.PANCAN.sampleMap/HiSeqV2"
  samples = ["TCGA-44-6778-01","TCGA-VM-A8C8-01"]
  identifiers = ["TP53"]
  
  
  # Find all the identifiers of a dataset
  allidentifiers = xena.dataset_field(huburl, dataset)
  print allidentifiers[-10:]
  #'[u'ZXDB', u'ZXDC', u'ZYG11A', u'ZYG11B', u'ZYX', u'ZZEF1', u'ZZZ3', u'psiTPTE22', u'sampleID', u'tAKR']'
  
  #Find all the samples of a dataset
  allsamples = xena.dataset_samples(huburl, dataset)
  print allsamples[:5]
  #'[u'TCGA-S9-A7J2-01', u'TCGA-G3-A3CH-11', u'TCGA-EK-A2RE-01', u'TCGA-44-6778-01', u'TCGA-VM-A8C8-01']'
  
  #Find value matrix of a particular set of samples and identifiers (genes, probes, isoforms)
  values = xena.dataset_probe_values(huburl, dataset, samples, identifiers)
  print values
  #[[10.4169, 9.6591]]
  
  #Final all the cohorts at a huburl
  allCohorts = xena.all_cohorts(huburl)
  print allCohorts[:2]
  #[u'grayBreastCellLines_public', u'NCI60_public']
  
  #Final all samples belong to a cohort at a huburl
  cohort = allCohorts[0]
  cohortSamples = xena.all_samples(huburl, cohort)
  print cohortSamples[:3]
  #[u'SUM44PE', u'184A1N4', u'HCC2185']
  
new_contents: #!/usr/bin/env python
  
  import xena_query as xena
  
  huburl = "https://genome-cancer.ucsc.edu/proj/public/xena"
  dataset = "TCGA/TCGA.PANCAN.sampleMap/HiSeqV2"
  samples = ["TCGA-44-6778-01","TCGA-VM-A8C8-01"]
  identifiers = ["TP53"]
  
  
  # Find all the identifiers of a dataset
  allidentifiers = xena.dataset_field(huburl, dataset)
  print allidentifiers[-10:]
  #'[u'ZXDB', u'ZXDC', u'ZYG11A', u'ZYG11B', u'ZYX', u'ZZEF1', u'ZZZ3', u'psiTPTE22', u'sampleID', u'tAKR']'
  
  #Find all the samples of a dataset
  allsamples = xena.dataset_samples(huburl, dataset)
  print allsamples[:5]
  #'[u'TCGA-S9-A7J2-01', u'TCGA-G3-A3CH-11', u'TCGA-EK-A2RE-01', u'TCGA-44-6778-01', u'TCGA-VM-A8C8-01']'
  
  #Find value matrix of a particular set of samples and identifiers (genes, probes, isoforms)
  values = xena.dataset_probe_values(huburl, dataset, samples, identifiers)
  print values
  #[[10.4169, 9.6591]]
  
  #Final all the cohorts at a huburl
  allCohorts = xena.all_cohorts(huburl)
  print allCohorts[:2]
  #[u'grayBreastCellLines_public', u'NCI60_public']
  
  #Find all datasts belong to a cohort at a huburl
  cohort = allCohorts[0]
  allDatasets = xena.datasets_list_in_cohort (huburl, cohort)
  print allDatasets[:1]
  #[u'other/grayBreastCellLines_public/grayBreastCellLineExon_genomicMatrix']
  
  #Final all samples belong to a cohort at a huburl
  cohort = allCohorts[0]
  cohortSamples = xena.all_samples(huburl, cohort)
  print cohortSamples[:3]
  #[u'SUM44PE', u'184A1N4', u'HCC2185']
  
subject: add more python xena query API examples