======================================
Get Started with Cistrome Search API
======================================
.. highlight:: xml
Search a Sample
===============
Return a sample record that matches a speciefied query.
Resource URL
------------
http://cistrome.org/cisapi/get/s
.. warning::
It's better **NOT** to open the above URL in browser as it'll cost huge memory space to render them in browser. Use ``wget`` or ``curl`` instead.
Parameters
----------
+-----+-------------------------------+
| | |
+-----+-------------------------------+
|id |The ID of the Sample (SampleID)|
| | |
| |**Example Values**: 100 |
+-----+-------------------------------+
|fid |The ID of the Factor ChIPed in |
| |the Sample. |
| | |
| |**Example Values**: 7 |
+-----+-------------------------------+
|uid |The unique ID of the Sample |
| |(**Fuzzy Search**) |
| | |
| |**Example Values**: ``SRX``, |
| |``ESM000328`` |
+-----+-------------------------------+
Examples
--------
Fetch all (use ``wget`` or ``curl`` to fetch):
http://cistrome.org/cisapi/get/s
Query the Samples with ``GSM58857`` as the UniqueID.
http://cistrome.org/cisapi/get/s?uid=GSM58857
Query all Samples whose source is ENCODE and use ``41`` as the ID of Factor.
http://cistrome.org/cisapi/get/s?uid=ESM&fid=41
Output Structure
----------------
::
12
GSM588576
104
1
None
1
7
5
139
ftp://ftp-trace.ncbi.nih.gov/sra/sra-instant/reads/ByExp/sra/SRX/SRX038/SRX038747
Search a Sample literally
=========================
Return a sample record that matches a speciefied query literally.
.. note::
This function is different from the function above because it will output the actual **names** of each entity such as Factor and CellLine instead of **IDs**.
Resource URL
------------
http://cistrome.org/cisapi/get/s2
.. warning::
It's better **NOT** to open the above URL in browser as it'll cost huge memory space to render them in browser. Use ``wget`` or ``curl`` instead.
Parameters
----------
+--------------+---------------------------------------+
| | |
+--------------+---------------------------------------+
|id |The ID of the Sample (Sample |
| |ID) |
| | |
| |**Example Values**: 5 |
+--------------+---------------------------------------+
|uid |The Unique ID of the Sample |
| |(**Fuzzy Search**) |
| | |
| |**Example Values**: |
| |``GSM588574`` |
+--------------+---------------------------------------+
|fname |The Factor name of the Sample |
| | |
| |**Example Values**: ``ctcf`` |
+--------------+---------------------------------------+
|dname |The DiseaseState name of the |
| |Sample |
| | |
| |**Example Values**: ``Ductal |
| |Carcinoma`` |
+--------------+---------------------------------------+
|clname |The CellLine name of the |
| |Sample |
| | |
| |**Example Values**: ``MCF-7`` |
+--------------+---------------------------------------+
|ctname |The CellType name of the |
| |Sample |
| | |
| |**Example Values**: ``Epithelial`` |
+--------------+---------------------------------------+
|cpname |The CellPop name of the Sample |
| | |
| |**Example Values**: ``HCF``, ``CD4`` |
| | |
+--------------+---------------------------------------+
|tname |The Tissue name of the Sample |
| | |
| |**Example Values**: ``Blood`` |
+--------------+---------------------------------------+
|sname |The Species name of the Sample |
| | |
| |**Example Values**: ``Homo sapiens`` |
+--------------+---------------------------------------+
|pid |The PaperID of the Sample |
| | |
| |**Example Values**: ``1`` |
+--------------+---------------------------------------+
|pmid |The Pubmed ID of the Paper for the |
| |Sample |
| | |
| |**Example Values**: ``22237151`` |
+--------------+---------------------------------------+
|aname |One of the authors' names of the Sample|
| | |
| |**Example Values**: ``Young RA``, ``Ren|
| |B`` |
+--------------+---------------------------------------+
.. warning::
If you want to search CD4+ Cell Population, please use ``cd4`` instead of ``cd4+`` to search. The reason is that `+` will be escaped in the URL call.
Example
-------
Query the Samples done by Shirley's lab
http://cistrome.org/cisapi/get/s2?aname=liu%20xs
Query the H3K4me3 Samples in cells related to embryo with Normal state
http://cistrome.org/cisapi/get/s2?fname=h3k4me3&sname=mus&dname=normal&ctname=embryo
Query the samples whose Pubmed ID is 22237151 and use CD4+ as Cell Population
http://cistrome.org/cisapi/get/s2?cpname=cd4&pmid=22237151
Output Structure
----------------
::
H3K27me3
nil
T Lymphocyte
CD4+ / CD8+
Mus musculus
Blood
nil
Genetic inactivation of the polycomb repressive complex 2 in T cell acute lymphoblastic leukemia
22237151
Ntziachristos P, Tsirigos A, Vlierberghe PV, Nedjic J, Trimarchi T, Flaherty MS, Ferres-Marco D, da Ros V, Tang Z, Siegle J, Asp P, Hadler M, Rigo I, Keersmaecker KD, Patel J, Huynh T, Utro F, Poglio S, Samon JB, Paietta E, Racevskis J, Rowe JM, Rabadan R
GSM859496
None
Search a Dataset
================
Return a Dataset record that match a specified query.
Resource URL
------------
http://cistrome.org/cisapi/get/d
Parameters
----------
+-----+------------------------------------------------------------------------+
| | |
+-----+------------------------------------------------------------------------+
|id |The ID of the Dataset |
| | |
| |**Example Values**: ``1``, ``1456`` |
| | |
+-----+------------------------------------------------------------------------+
|uid |The sample ID of the Samples that a Dataset contains |
| | |
| |**Example Values**: ``890``, `` |
| | |
| | |
+-----+------------------------------------------------------------------------+
.. warning::
The meaning of uid here has changed. It now uses Sample ID instead of unique ID to search.
Examples
--------
Fetch all:
http://cistrome.org/cisapi/get/d
Query ``Dataset 5512``:
http://cistrome.org/cisapi/get/d?id=5512
Search a Dataset Literally
==========================
Return a Dataset record that match a specified query literally.
Resource URL
------------
http://cistrome.org/cisapi/get/d2
Parameters
----------
+-----+------------------------------------------------------------------------+
| | |
+-----+------------------------------------------------------------------------+
|id |The ID of the Dataset |
| | |
| |**Example Values**: ``1``, ``1456`` |
| | |
+-----+------------------------------------------------------------------------+
Examples
--------
Query ``Dataset 5092``:
http://cistrome.org/cisapi/get/d2?id=5092
Output Structure
----------------
::
HNF4G
HepG2
Epithelial
nil
Homo sapiens
Liver
Hepatocellular Carcinoma
Proteomic analysis of native hepatocyte nuclear factor-4? (HNF4?) isoforms, phosphorylation status, and interactive cofactors.
21047794
Daigo K,Kawamura T,Ohta Y,Ohashi R,Katayose S,Tanaka T,Aburatani H,Naito M,Kodama T,Ihara S,Hamakubo T
GSM469865
ftp://ftp-trace.ncbi.nih.gov/sra/sra-instant/reads/ByExp/sra/SRX/SRX018/SRX018627