Created
September 22, 2015 09:01
-
-
Save felipealbrecht/b2a002dc9edf0117133e to your computer and use it in GitHub Desktop.
Obtaining the extra metadata information from one experiment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import xmlrpclib | |
from pprint import pprint | |
url = "http://deepblue.mpi-inf.mpg.de/xmlrpc" | |
user_key = "anonymous_key" | |
server = xmlrpclib.Server(url, allow_none=True) | |
# Lets get the information about the experiment e30000 | |
(status, info) = server.info("e30000", user_key) | |
pprint(info[0]["extra_metadata"]) | |
# The output will be: | |
''' | |
{'assembly': 'mm9', | |
'depleted_in_term_id': '[]', | |
'depleted_in_term_name': '[]', | |
'experiment_encode_accession': '/experiments/ENCSR000CEG/', | |
'experiment_url': 'https://www.encodeproject.org/experiments/ENCSR000CEG/', | |
'file_encode_accession': 'ENCFF001YBB', | |
'file_status': 'released', | |
'file_type': 'bed broadPeak', | |
'file_url': 'https://www.encodeproject.org/files/ENCFF001YBB/', | |
'lab_@id': '/labs/bing-ren/', | |
'lab_address1': 'Department of Cellular and Molecular Medicine', | |
'lab_address2': '9500 Gilman Drive, Room 231', | |
'lab_city': 'La Jolla', | |
'lab_country': 'USA', | |
'lab_fax': '', | |
'lab_institute_label': 'UCSD', | |
'lab_institute_name': 'University of California at San Diego', | |
'lab_name': 'bing-ren', | |
'lab_phone1': '', | |
'lab_phone2': '', | |
'lab_pi': '/users/ea5e2bd6-be7a-4b18-a2e8-dee86005422f/', | |
'lab_postal_code': '', | |
'lab_schema_version': '2', | |
'lab_state': 'CA', | |
'lab_status': 'current', | |
'lab_title': 'Bing Ren, UCSD', | |
'lab_uuid': '2f706386-9534-4e36-918d-a0f6b46d9071', | |
'nucleic_acid_term_name': 'DNA', | |
'original_file_size': '322022', | |
'original_file_url': 'https://www.encodeproject.org/files/ENCFF001YBB/@@download/ENCFF001YBB.bed.gz', | |
'output_category': 'annotation', | |
'output_type': 'peaks', | |
'status': 'released', | |
'submitted_file_name': 'mm9/wgEncodeLicrTfbs/wgEncodeLicrTfbsTestisPol2MAdult8wksC57bl6StdPk.broadPeak.gz'} | |
''' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment