Expression, regulation and cancer queries¶
Query gene expression, regulation and cancer datasets.
1) Query GEO expression data by keyword¶
- Purpose: Find GEO expression records matching a keyword query and retrieve summaries and source metadata.
- Method: Query GEO through NCBI Entrez and return a normalized QueryResult.
- API:
dnakit.search.expression(term[required], retmax[optional], config[optional], verbose[optional]) - Input: An Entrez search term; optional retmax record limit and SearchConfig. Requires network access.
- Output: Returns
QueryResultwith queryrecords, sourceprovider, and pagination information. - Example code:
from dnakit.search import expression
result = expression("single cell RNA sequencing[All Fields]", retmax=20, verbose=False)
print(result.query_type, result.provider, len(result.records))
- Example output: Return format only; the network query was not run. The live database determines the record count.
2) Browse the cBioPortal cancer study catalogue¶
- Purpose: Browse the cBioPortal cancer study catalogue.
- Method: Use
CBioPortalto query or submit the supplied input and parse the response. - API:
dnakit.databases.c_bio_portal_get_cancer_studies(*, limit=None, offset=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a list of records; each record includes
studyId,name,description,cancerTypeIdand related fields. - Example code:
import dnakit
result = dnakit.databases.c_bio_portal_get_cancer_studies(
limit=5,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
[
{
"studyId": "<string>",
"name": "<string>",
"description": "<string>",
"cancerTypeId": "<string>",
"publicStudy": "<boolean>",
"pmid": "<string>",
"citation": "<string>",
"groups": [
"<value>"
]
}
]
Full parameters and usage notes
3) Retrieve cBioPortal gene information by Entrez ID¶
- Purpose: Retrieve cBioPortal gene information by Entrez ID.
- Method: Use
CBioPortalto query or submit the supplied input and parse the response. - API:
dnakit.databases.c_bio_portal_get_gene_info(*, entrez_gene_id, verbose=True) - Input: Provide
entrez_gene_id. - Output: Returns a mapping with
entrezGeneId,hugoGeneSymbol,type,cytobandand related fields. - Example code:
import dnakit
result = dnakit.databases.c_bio_portal_get_gene_info(
entrez_gene_id=672,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"entrezGeneId": "<integer>",
"hugoGeneSymbol": "<string>",
"type": "<string>",
"cytoband": "<string>",
"length": "<integer>"
}
Full parameters and usage notes
4) Retrieve molecular profiles for a cancer study¶
- Purpose: Retrieve molecular profiles for a cancer study.
- Method: Use
CBioPortalto query or submit the supplied input and parse the response. - API:
dnakit.databases.c_bio_portal_get_molecular_profiles(*, study_id, verbose=True) - Input: Provide
study_id. - Output: Returns a list of records; each record includes
molecularProfileId,molecularAlterationType,datatype,nameand related fields. - Example code:
import dnakit
result = dnakit.databases.c_bio_portal_get_molecular_profiles(
study_id='brca_tcga',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
[
{
"molecularProfileId": "<string>",
"molecularAlterationType": "<string>",
"datatype": "<string>",
"name": "<string>",
"description": "<string>",
"showProfileInAnalysisTab": "<boolean>"
}
]
Full parameters and usage notes
5) Retrieve gene mutations from a cancer study¶
- Purpose: Retrieve gene mutations from a cancer study.
- Method: Use
CBioPortalto query or submit the supplied input and parse the response. - API:
dnakit.databases.c_bio_portal_get_mutations(*, study_id, gene_list, sample_list_id=None, verbose=True) - Input: Provide
study_id,gene_list. - Output: Returns a list of records; each record includes
molecularProfileId,sampleId,patientId,studyIdand related fields. - Example code:
import dnakit
result = dnakit.databases.c_bio_portal_get_mutations(
study_id='brca_tcga',
gene_list='BRCA2',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
[
{
"molecularProfileId": "<string>",
"sampleId": "<string>",
"patientId": "<string>",
"studyId": "<string>",
"entrezGeneId": "<integer>",
"gene": {
"entrezGeneId": "<integer>",
"hugoGeneSymbol": "<string>",
"type": "<string>"
},
"mutationType": "<string>",
"proteinChange": "<string>"
}
]
Full parameters and usage notes
6) Retrieve samples in a cancer study¶
- Purpose: Retrieve samples in a cancer study.
- Method: Use
CBioPortalto query or submit the supplied input and parse the response. - API:
dnakit.databases.c_bio_portal_get_samples(*, study_id, page_size=None, page_number=None, verbose=True) - Input: Provide
study_id. - Output: Returns a list of records; each record includes
sampleId,sampleType,patientId,studyIdand related fields. - Example code:
import dnakit
result = dnakit.databases.c_bio_portal_get_samples(
study_id='brca_tcga',
page_size=10,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
[
{
"sampleId": "<string>",
"sampleType": "<string>",
"patientId": "<string>",
"studyId": "<string>"
}
]
Full parameters and usage notes
7) Retrieve original CELLxGENE H5AD files¶
- Purpose: Retrieve original CELLxGENE H5AD files.
- Method: Locate the dataset through CELLxGENE Census and download its H5AD file.
- API:
dnakit.databases.cellx_gene_download_h5ad(*, operation=None, dataset_id, output_path=None, census_version=None, verbose=True) - Input: Provide
dataset_id. Requirescellxgene-census. Prepare the local files and external programs used by the example, and replace paths with your input or output locations. - Output: Returns a mapping with
dataset_id,output_path,uri,messageand related fields. - Example code:
import dnakit
result = dnakit.databases.cellx_gene_download_h5ad(
operation='download_h5ad',
dataset_id='4eb29386-de81-452f-b3c0-e00844e8c7fd',
census_version='stable',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
Full parameters and usage notes
8) Query filtered single-cell metadata¶
- Purpose: Query filtered single-cell metadata.
- Method: Use
CELLxGENECensusto query or submit the supplied input and parse the response. - API:
dnakit.databases.cellx_gene_get_cell_metadata(*, operation=None, organism=None, obs_value_filter=None, column_names=None, census_version=None, gene=None, tissue=None, max_cells=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults. Requires
cellxgene-census. - Output: Returns a list of records; each record includes
cell_type,tissue_general,disease,assayand related fields. - Example code:
import dnakit
result = dnakit.databases.cellx_gene_get_cell_metadata(
operation='get_obs_metadata',
organism='Homo sapiens',
obs_value_filter="tissue_general == 'brain' and disease == 'normal'",
census_version='stable',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
[
{
"cell_type": "<string>",
"tissue_general": "<string>",
"disease": "<string>",
"assay": "<string>",
"sex": "<string>",
"donor_id": "<string>",
"dataset_id": "<string>",
"soma_joinid": "<integer>"
}
]
Full parameters and usage notes
9) Retrieve precomputed cell embeddings¶
- Purpose: Retrieve precomputed cell embeddings.
- Method: Use
CELLxGENECensusto query or submit the supplied input and parse the response. - API:
dnakit.databases.cellx_gene_get_embeddings(*, operation=None, organism=None, embedding_name=None, census_version=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults. Requires
cellxgene-census. - Output: Returns a mapping with
message,organism,embedding_name,availableand related fields. - Example code:
import dnakit
result = dnakit.databases.cellx_gene_get_embeddings(
operation='get_embeddings',
organism='Homo sapiens',
census_version='stable',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"message": "<string>",
"organism": "<string>",
"embedding_name": "<string>",
"available": "<boolean>",
"shape": [
"<value>"
],
"available_embeddings": "<object>"
}
Full parameters and usage notes
10) Query expression data with cell and gene filters¶
- Purpose: Query expression data with cell and gene filters.
- Method: Use
CELLxGENECensusto query or submit the supplied input and parse the response. - API:
dnakit.databases.cellx_gene_get_expression_data(*, operation=None, organism=None, obs_value_filter=None, var_value_filter=None, obs_column_names=None, var_column_names=None, census_version=None, gene=None, tissue=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults. Requires
cellxgene-census. - Output: Returns a mapping with
n_obs,n_vars,obs_columns,var_columnsand related fields. - Example code:
import dnakit
result = dnakit.databases.cellx_gene_get_expression_data(
operation='get_anndata',
organism='Homo sapiens',
obs_value_filter="tissue_general == 'brain' and disease == 'normal'",
var_value_filter="feature_name in ['SOX2', 'GFAP', 'OLIG2']",
census_version='stable',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"n_obs": "<integer>",
"n_vars": "<integer>",
"obs_columns": [
"<value>"
],
"var_columns": [
"<value>"
],
"message": "<string>"
}
Full parameters and usage notes
11) Prepare ChIP-Atlas enrichment submission instructions¶
- Purpose: Prepare ChIP-Atlas enrichment submission instructions from BED, motif or gene-list input; this function does not calculate enrichment statistics.
- Method: Use
ChIPAtlasto query or submit the supplied input and parse the response. - API:
dnakit.databases.ch_ipatlas_enrichment_analysis(*, operation=None, bed_data=None, motif=None, gene_list=None, genome=None, antigen_class=None, cell_type_class=None, threshold=None, distance=None, gene=None, cell_type=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Mapping with
status=requires_submission,analysis_completed=Falseand task submission instructions; the enrichment test has not been run. - Example code:
import dnakit
result = dnakit.databases.ch_ipatlas_enrichment_analysis(
operation='enrichment_analysis',
gene_list=['TP53', 'MDM2', 'CDKN1A'],
genome='hg38',
distance='5000',
verbose=False,
)
print(result)
- Example output: Mapping with
status=requires_submission,analysis_completed=Falseand task submission instructions; the enrichment test has not been run.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"message": "<string>",
"genes": [
"<string>"
],
"distance_from_tss": "<string>",
"url": "<string>",
"note": "<string>"
}
Full parameters and usage notes
12) Search ChIP-Atlas experiment metadata¶
- Purpose: Search ChIP-Atlas experiment metadata.
- Method: Use
ChIPAtlasto query or submit the supplied input and parse the response. - API:
dnakit.databases.ch_ipatlas_get_experiments(*, operation=None, genome=None, antigen=None, cell_type=None, limit=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
message,metadata_file_url,web_search_url,file_sizeand related fields. - Example code:
import dnakit
result = dnakit.databases.ch_ipatlas_get_experiments(
operation='get_experiment_list',
genome='hg38',
antigen='CTCF',
limit=10,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"message": "<string>",
"metadata_file_url": "<string>",
"web_search_url": "<string>",
"file_size": "<string>",
"total_experiments": "<string>",
"filters_requested": "<object>",
"recommendation": "<string>"
}
Full parameters and usage notes
13) Retrieve ChIP-Atlas peak resources and local overlaps¶
- Purpose: Query ChIP-Atlas experiment peak resources. The gene mode resolves a GRCh38 locus and intersects a supplied peak_file BED, or returns a data retrieval plan when no BED is supplied.
- Method: Use
ChIPAtlasto query or submit the supplied input and parse the response. - API:
dnakit.databases.ch_ipatlas_get_peak_data(*, operation=None, experiment_id=None, genome=None, format=None, threshold=None, gene=None, experiment_type=None, limit=None, peak_file=None, flank_bp=None, max_file_bytes=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
experiment_id,genome,format,urland related fields. - Example code:
import dnakit
result = dnakit.databases.ch_ipatlas_get_peak_data(
operation='get_peak_data',
experiment_id='SRX097088',
genome='hg19',
format='bigwig',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"experiment_id": "<string>",
"genome": "<string>",
"format": "<string>",
"url": "<string>",
"message": "<string>"
}
Full parameters and usage notes
14) Search ChIP-Atlas datasets by antigen or cell type¶
- Purpose: Search ChIP-Atlas datasets by antigen or cell type.
- Method: Use
ChIPAtlasto query or submit the supplied input and parse the response. - API:
dnakit.databases.ch_ipatlas_search_datasets(*, operation=None, antigen=None, cell_type=None, genome=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
search_key,search_value,genome,num_resultsand related fields. - Example code:
import dnakit
result = dnakit.databases.ch_ipatlas_search_datasets(
operation='search_datasets',
antigen='CTCF',
genome='hg38',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"search_key": "<string>",
"search_value": "<string>",
"genome": "<string>",
"num_results": "<integer>",
"results": [
{
"genome": "<string>",
"class": "<string>",
"name": "<string>",
"num_experiments": "<string>",
"experiment_ids": "<array>"
}
]
}
Full parameters and usage notes
15) Retrieve gene dependency information from CRISPR screens¶
- Purpose: Retrieve gene dependency information from CRISPR screens.
- Method: Use
DepMapto query or submit the supplied input and parse the response. - API:
dnakit.databases.dep_map_get_gene_dependencies(*, gene_symbol, model_id=None, verbose=True) - Input: Provide
gene_symbol. - Output: Returns a mapping with
status,data,errorand related fields. - Example code:
import dnakit
result = dnakit.databases.dep_map_get_gene_dependencies(
gene_symbol='EGFR',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"status": "<string>",
"data": {
"gene_symbol": "<string>",
"genes": [
"<value>"
]
},
"error": "<string>"
}
Full parameters and usage notes
16) Search cancer cell lines by name¶
- Purpose: Search cancer cell lines by name.
- Method: Use
DepMapto query or submit the supplied input and parse the response. - API:
dnakit.databases.dep_map_search_cell_lines(*, query, verbose=True) - Input: Provide
query. - Output: Returns a mapping with
status,data,errorand related fields. - Example code:
import dnakit
result = dnakit.databases.dep_map_search_cell_lines(
query='A549',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"status": "<string>",
"data": {
"query": "<string>",
"cell_lines": [
"<value>"
],
"count": "<integer>"
},
"error": "<string>"
}
Full parameters and usage notes
17) Retrieve variant–expression associations from an eQTL dataset¶
- Purpose: Retrieve variant–expression associations from an eQTL dataset.
- Method: Use
Baseto query or submit the supplied input and parse the response. - API:
dnakit.databases.e_qtl_get_associations(*, dataset_id, size=None, gene_id=None, variant=None, molecular_trait_id=None, verbose=True) - Input: Provide
dataset_id. - Output: Returns a list of records; each record includes
molecular_trait_id,gene_id,variant,rsidand related fields. - Example code:
import dnakit
result = dnakit.databases.e_qtl_get_associations(
dataset_id='QTD000001',
size=5,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
[
{
"molecular_trait_id": "<string>",
"gene_id": "<string>",
"variant": "<string>",
"rsid": "<string>",
"chromosome": "<string>",
"position": "<integer>",
"ref": "<string>",
"alt": "<string>"
}
]
Full parameters and usage notes
18) List available eQTL study and tissue datasets¶
- Purpose: List available eQTL study and tissue datasets.
- Method: Use
Baseto query or submit the supplied input and parse the response. - API:
dnakit.databases.e_qtl_list_datasets(*, size=None, quant_method=None, tissue_id=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a list of records; each record includes
dataset_id,study_id,study_label,quant_methodand related fields. - Example code:
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
[
{
"dataset_id": "<string>",
"study_id": "<string>",
"study_label": "<string>",
"quant_method": "<string>",
"tissue_id": "<string>",
"tissue_label": "<string>",
"condition_label": "<string>",
"sample_size": "<integer>"
}
]
Full parameters and usage notes
19) Retrieve ENCODE biosample metadata¶
- Purpose: Retrieve ENCODE biosample metadata.
- Method: Use
ENCODEto query or submit the supplied input and parse the response. - API:
dnakit.databases.encode_get_biosample(*, accession, verbose=True) - Input: Provide
accession. - Output: Returns a mapping with
accession,url,aliases,schema_versionand related fields. - Example code:
import dnakit
result = dnakit.databases.encode_get_biosample(
accession='ENCBS000AAA',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"accession": "<string>",
"url": "<string>",
"aliases": [
"<string>"
],
"schema_version": "<string>",
"status": "<string>",
"lab": "<string>",
"award": "<string>",
"date_created": "<string>"
}
Full parameters and usage notes
20) Search chromatin state segmentation annotations¶
- Purpose: Search chromatin state segmentation annotations.
- Method: Use
Epigenomicsto query or submit the supplied input and parse the response. - API:
dnakit.databases.encode_get_chromatin_state(*, biosample_term_name=None, organism=None, limit=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
total,annotationsand related fields. - Example code:
import dnakit
result = dnakit.databases.encode_get_chromatin_state(
biosample_term_name='K562',
organism='Homo sapiens',
limit=3,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"total": "<integer>",
"annotations": [
{
"accession": "<string>",
"annotation_type": "<string>",
"description": "<string>",
"biosample_summary": "<string>",
"status": "<string>"
}
]
}
Full parameters and usage notes
21) Retrieve ENCODE experiment metadata and analysis details¶
- Purpose: Retrieve ENCODE experiment metadata and analysis details.
- Method: Use
ENCODEto query or submit the supplied input and parse the response. - API:
dnakit.databases.encode_get_experiment(*, accession, verbose=True) - Input: Provide
accession. - Output: Returns a mapping with
assay_term_name,biosample_ontology,documents,referencesand related fields. - Example code:
import dnakit
result = dnakit.databases.encode_get_experiment(
accession='ENCSR000AKS',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"assay_term_name": "<string>",
"biosample_ontology": "<string>",
"documents": [
"<value>"
],
"references": [
"<string>"
],
"schema_version": "<string>",
"accession": "<string>",
"alternate_accessions": [
"<value>"
],
"analyses": [
"<string>"
]
}
Full parameters and usage notes
22) List ENCODE files by format and assay¶
- Purpose: List ENCODE files by format and assay.
- Method: Use
ENCODEFilesto query or submit the supplied input and parse the response. - API:
dnakit.databases.encode_list_files(*, file_type=None, assay_title=None, limit=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
@graph,@type,all,notificationand related fields. - Example code:
import dnakit
result = dnakit.databases.encode_list_files(
file_type='fastq',
limit=1,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"@graph": [
{
"@id": "<string>",
"@type": "<array>",
"accession": "<string>",
"assay_term_name": "<string>",
"award": "<object>",
"biological_replicates": "<array>",
"biosample_ontology": "<object>",
"dataset": "<string>"
}
],
"@type": [
"<string>"
],
"all": "<string>",
"notification": "<string>",
"title": "<string>",
"total": "<integer>"
}
Full parameters and usage notes
23) Search cis-regulatory and epigenomic annotations¶
- Purpose: Search cis-regulatory and epigenomic annotations.
- Method: Use
Epigenomicsto query or submit the supplied input and parse the response. - API:
dnakit.databases.encode_search_annotations(*, annotation_type=None, biosample_term_name=None, organism=None, assembly=None, limit=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
total,annotationsand related fields. - Example code:
import dnakit
result = dnakit.databases.encode_search_annotations(
annotation_type='candidate Cis-Regulatory Elements',
organism='Homo sapiens',
limit=3,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"total": "<integer>",
"annotations": [
{
"accession": "<string>",
"annotation_type": "<string>",
"description": "<string>",
"biosample_summary": "<string>",
"status": "<string>"
}
]
}
Full parameters and usage notes
24) Search ENCODE biosamples by organism and treatment¶
- Purpose: Search ENCODE biosamples by organism and treatment.
- Method: Use
ENCODESearchBiosamplesto query or submit the supplied input and parse the response. - API:
dnakit.databases.encode_search_biosamples(*, organism=None, biosample_type=None, treatment=None, limit=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
@graph,@type,notification,titleand related fields. - Example code:
import dnakit
result = dnakit.databases.encode_search_biosamples(
organism='Homo sapiens',
limit=1,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"@graph": [
{
"@id": "<string>",
"@type": "<array>",
"accession": "<string>",
"age": "<string>",
"applied_modifications": "<array>",
"biosample_ontology": "<object>",
"lab": "<object>",
"life_stage": "<string>"
}
],
"@type": [
"<string>"
],
"notification": "<string>",
"title": "<string>",
"total": "<integer>",
"all": "<string>"
}
Full parameters and usage notes
25) Search ATAC-seq and DNase-seq experiments¶
- Purpose: Search ATAC-seq and DNase-seq experiments.
- Method: Use
Epigenomicsto query or submit the supplied input and parse the response. - API:
dnakit.databases.encode_search_chromatin_accessibility(*, assay_type=None, biosample_term_name=None, organism=None, limit=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
total,experimentsand related fields. - Example code:
import dnakit
result = dnakit.databases.encode_search_chromatin_accessibility(
assay_type='ATAC-seq',
organism='Homo sapiens',
limit=3,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"total": "<integer>",
"experiments": [
{
"accession": "<string>",
"assay_title": "<string>",
"biosample_summary": "<string>",
"status": "<string>",
"lab": "<string>"
}
]
}
Full parameters and usage notes
26) Search ENCODE experiments through the database module¶
- Purpose: Search ENCODE experiments through the database module.
- Method: Use
ENCODESearchto query or submit the supplied input and parse the response. - API:
dnakit.databases.encode_search_experiments(*, assay_title=None, target=None, organism=None, status=None, limit=None, biosample=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns ENCODE experiment search results; ordinary queries preserve the response in data, while biosample queries return the parsed ENCODE search result.
- Example code:
import dnakit
result = dnakit.databases.encode_search_experiments(
assay_title='ATAC-seq',
organism='Homo sapiens',
limit=3,
verbose=False,
)
print(result)
- Example output: Returns ENCODE experiment search results; ordinary queries preserve the response in data, while biosample queries return the parsed ENCODE search result.
Full parameters and usage notes
27) Search histone ChIP-seq experiments by modification¶
- Purpose: Search histone ChIP-seq experiments by modification.
- Method: Use
Epigenomicsto query or submit the supplied input and parse the response. - API:
dnakit.databases.encode_search_histone_experiments(*, histone_mark=None, target=None, biosample_term_name=None, biosample=None, organism=None, limit=None, biosample_term=None, cell_type=None, tissue=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
total,experimentsand related fields. - Example code:
import dnakit
result = dnakit.databases.encode_search_histone_experiments(
histone_mark='H3K27ac',
organism='Homo sapiens',
limit=3,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"total": "<integer>",
"experiments": [
{
"accession": "<string>",
"histone_mark": "<string>",
"biosample_summary": "<string>",
"status": "<string>",
"lab": "<string>",
"date_released": "<string>"
}
]
}
Full parameters and usage notes
28) Search ENCODE RNA-seq experiments by sample and assay¶
- Purpose: Search ENCODE RNA-seq experiments by sample and assay.
- Method: Use
Epigenomicsto query or submit the supplied input and parse the response. - API:
dnakit.databases.encode_search_rnaseq_experiments(*, biosample_term_name=None, biosample=None, cell_type=None, tissue=None, organism=None, assay_type=None, limit=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
total,experimentsand related fields. - Example code:
import dnakit
result = dnakit.databases.encode_search_rnaseq_experiments(
biosample_term_name='K562',
assay_type='total RNA-seq',
limit=3,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"total": "<integer>",
"experiments": [
{
"accession": "<string>",
"assay_title": "<string>",
"biosample_summary": "<string>",
"status": "<string>",
"lab": "<string>",
"date_released": "<string>"
}
]
}
Full parameters and usage notes
29) Search differential expression experiment records¶
- Purpose: Search differential expression experiment records.
- Method: Use
ExpressionAtlasto query or submit the supplied input and parse the response. - API:
dnakit.databases.expression_atlas_search_differential(*, gene=None, condition=None, species=None, limit=None, offset=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
gene,condition,species,experimentsand related fields. - Example code:
import dnakit
result = dnakit.databases.expression_atlas_search_differential(
gene='TP53',
species='homo sapiens',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"gene": "<string>",
"condition": "<string>",
"species": "<string>",
"experiments": [
{
"experiment_accession": "<string>",
"experiment_type": "<string>",
"experiment_description": "<string>",
"species": "<string>",
"num_assays": "<integer>",
"gene_mentioned": "<boolean>",
"factors": "<array>"
}
],
"experiment_count": "<integer>"
}
Full parameters and usage notes
30) Search baseline and differential expression experiments¶
- Purpose: Search baseline and differential expression experiments.
- Method: Use
ExpressionAtlasto query or submit the supplied input and parse the response. - API:
dnakit.databases.expression_atlas_search_experiments(*, gene=None, condition=None, species=None, limit=None, offset=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
gene,condition,species,experimentsand related fields. - Example code:
import dnakit
result = dnakit.databases.expression_atlas_search_experiments(
gene='TP53',
species='homo sapiens',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"gene": "<string>",
"condition": "<string>",
"species": "<string>",
"experiments": [
{
"experiment_accession": "<string>",
"experiment_type": "<string>",
"experiment_description": "<string>",
"species": "<string>",
"num_assays": "<integer>",
"gene_mentioned": "<boolean>"
}
],
"total_count": "<integer>",
"gene_specific_count": "<integer>"
}
Full parameters and usage notes
31) Search Hi-C and chromatin conformation data¶
- Purpose: Search Hi-C and chromatin conformation data.
- Method: Use
FourDNto query or submit the supplied input and parse the response. - API:
dnakit.databases.four_dn_search_data(*, operation=None, query=None, item_type=None, file_type=None, assay_title=None, biosource_name=None, limit=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
status,num_results,total,resultsand related fields. - Example code:
import dnakit
result = dnakit.databases.four_dn_search_data(
operation='search',
query='Hi-C',
item_type='File',
limit=10,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"status": "<string>",
"num_results": "<integer>",
"total": "<integer>",
"results": [
"<value>"
],
"search_url": "<string>",
"error": "<string>"
}
Full parameters and usage notes
32) Retrieve GDC cancer case clinical data¶
- Purpose: Retrieve GDC cancer case clinical data.
- Method: Use
GDCClinicalDatato query or submit the supplied input and parse the response. - API:
dnakit.databases.gdc_get_clinical_data(*, project_id=None, primary_site=None, disease_type=None, vital_status=None, gender=None, size=None, offset=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: data.cases contains case, diagnosis and treatment records; data.pagination contains paging information.
- Example code:
import dnakit
result = dnakit.databases.gdc_get_clinical_data(
project_id='TCGA-BRCA',
size=3,
verbose=False,
)
print(result)
- Example output: data.cases contains case, diagnosis and treatment records; data.pagination contains paging information.
Full parameters and usage notes
33) Retrieve pan-cancer gene mutation frequencies¶
- Purpose: Retrieve pan-cancer gene mutation frequencies.
- Method: Use
GDCMutationFrequencyto query or submit the supplied input and parse the response. - API:
dnakit.databases.gdc_get_mutation_frequency(*, gene_symbol=None, gene=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
status,source,gene,dataand related fields. - Example code:
import dnakit
result = dnakit.databases.gdc_get_mutation_frequency(
gene_symbol='TP53',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"status": "success",
"source": "GDC",
"gene": "<str>",
"data": {
"gene_info": "<dict>",
"total_ssm_occurrences": "<int>",
"is_cancer_gene_census": "<bool | None>"
}
}
Full parameters and usage notes
34) Retrieve GDC somatic mutations by gene¶
- Purpose: Retrieve GDC somatic mutations by gene.
- Method: Use
GDCSSMto query or submit the supplied input and parse the response. - API:
dnakit.databases.gdc_get_ssm_by_gene(*, gene_symbol, project_id=None, size=None, verbose=True) - Input: Provide
gene_symbol. - Output: data contains GDC somatic mutation records; gene identifies the queried gene.
- Example code:
import dnakit
result = dnakit.databases.gdc_get_ssm_by_gene(
gene_symbol='TP53',
project_id='TCGA-BRCA',
size=3,
verbose=False,
)
print(result)
- Example output: data contains GDC somatic mutation records; gene identifies the queried gene.
Full parameters and usage notes
35) Retrieve cancer cohort survival and censoring data¶
- Purpose: Retrieve cancer cohort survival and censoring data.
- Method: Use
GDCSurvivalto query or submit the supplied input and parse the response. - API:
dnakit.databases.gdc_get_survival(*, project_id, gene_symbol=None, verbose=True) - Input: Provide
project_id. - Output: data contains follow-up times, censoring, survival estimates and cohort summaries; donors includes at most 50 records.
- Example code:
import dnakit
result = dnakit.databases.gdc_get_survival(
project_id='TCGA-BRCA',
verbose=False,
)
print(result)
- Example output: data contains follow-up times, censoring, survival estimates and cohort summaries; donors includes at most 50 records.
Full parameters and usage notes
36) List GDC files by data type¶
- Purpose: List GDC files by data type.
- Method: Use
GDCFilesto query or submit the supplied input and parse the response. - API:
dnakit.databases.gdc_list_files(*, data_type=None, size=None, offset=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: data preserves the GDC file listing and pagination response, including file identifiers and metadata.
- Example code:
import dnakit
result = dnakit.databases.gdc_list_files(
data_type='Gene Expression Quantification',
size=3,
verbose=False,
)
print(result)
- Example output: data preserves the GDC file listing and pagination response, including file identifiers and metadata.
Full parameters and usage notes
37) List GDC cancer projects and summaries¶
- Purpose: List GDC cancer projects and summaries.
- Method: Use
GDCProjectsto query or submit the supplied input and parse the response. - API:
dnakit.databases.gdc_list_projects(*, program=None, size=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: data preserves the GDC project listing and project statistics.
- Example code:
import dnakit
result = dnakit.databases.gdc_list_projects(
program='TCGA',
size=3,
verbose=False,
)
print(result)
- Example output: data preserves the GDC project listing and project statistics.
Full parameters and usage notes
38) Search GDC cancer cases with filters¶
- Purpose: Search GDC cancer cases with filters.
- Method: Use
GDCCasesto query or submit the supplied input and parse the response. - API:
dnakit.databases.gdc_search_cases(*, project_id=None, size=None, offset=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: data preserves the GDC case search response and pagination information.
- Example code:
import dnakit
result = dnakit.databases.gdc_search_cases(
project_id='TCGA-BRCA',
size=3,
verbose=False,
)
print(result)
- Example output: data preserves the GDC case search response and pagination information.
Full parameters and usage notes
39) Search GEO ATAC-seq datasets¶
- Purpose: Search GEO ATAC-seq datasets.
- Method: Use
Epigenomicsto query or submit the supplied input and parse the response. - API:
dnakit.databases.geo_search_atacseq_datasets(*, query=None, organism=None, limit=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
total,datasetsand related fields. - Example code:
import dnakit
result = dnakit.databases.geo_search_atacseq_datasets(
query='T cell differentiation',
organism='Homo sapiens',
limit=5,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"total": "<integer>",
"datasets": [
{
"accession": "<string>",
"title": "<string>",
"summary": "<string>",
"organism": "<string>",
"n_samples": "<integer>",
"date_published": "<string>"
}
]
}
Full parameters and usage notes
40) Search GEO ChIP-seq datasets¶
- Purpose: Search GEO ChIP-seq datasets.
- Method: Use
Epigenomicsto query or submit the supplied input and parse the response. - API:
dnakit.databases.geo_search_chipseq_datasets(*, query, organism=None, limit=None, verbose=True) - Input: Provide
query. - Output: Returns a mapping with
total,datasetsand related fields. - Example code:
import dnakit
result = dnakit.databases.geo_search_chipseq_datasets(
query='H3K27ac liver',
organism='Homo sapiens',
limit=5,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"total": "<integer>",
"datasets": [
{
"accession": "<string>",
"title": "<string>",
"summary": "<string>",
"organism": "<string>",
"n_samples": "<integer>",
"date_published": "<string>"
}
]
}
Full parameters and usage notes
41) Search GEO RNA-seq datasets¶
- Purpose: Search GEO RNA-seq datasets.
- Method: Use
Epigenomicsto query or submit the supplied input and parse the response. - API:
dnakit.databases.geo_search_rnaseq_datasets(*, query=None, organism=None, limit=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
total,datasetsand related fields. - Example code:
import dnakit
result = dnakit.databases.geo_search_rnaseq_datasets(
query='breast cancer BRCA1',
organism='Homo sapiens',
limit=5,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"total": "<integer>",
"datasets": [
{
"accession": "<string>",
"title": "<string>",
"summary": "<string>",
"organism": "<string>",
"n_samples": "<integer>",
"date_published": "<string>"
}
]
}
Full parameters and usage notes
42) Calculate a gene–variant eQTL association in a tissue¶
- Purpose: Calculate a gene–variant eQTL association in a tissue.
- Method: Use
GTExV2to query or submit the supplied input and parse the response. - API:
dnakit.databases.gtex_calculate_eqtl(*, operation=None, gencode_id, variant_id, tissue_site_detail_id, dataset_id=None, verbose=True) - Input: Provide
gencode_id,variant_id,tissue_site_detail_id. - Output: Returns a mapping with
data,error,gencodeId,geneSymboland related fields. - Example code:
import dnakit
result = dnakit.databases.gtex_calculate_eqtl(
operation='calculate_eqtl',
gencode_id='ENSG00000227232.5',
variant_id='chr1_64764_C_T_b38',
tissue_site_detail_id='Whole_Blood',
dataset_id='gtex_v8',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"data": [
"<number>"
],
"error": "<number>",
"gencodeId": "<string>",
"geneSymbol": "<string>",
"genotypes": [
"<integer>"
],
"hetCount": "<integer>",
"homoAltCount": "<integer>",
"homoRefCount": "<integer>"
}
Full parameters and usage notes
43) Retrieve GTEx gene expression summaries¶
- Purpose: Retrieve GTEx gene expression summaries.
- Method: Use
GTExExpressionto query or submit the supplied input and parse the response. - API:
dnakit.databases.gtex_get_expression_summary(*, gene_symbol=None, ensembl_gene_id=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns the resolved gene identifier and tissue expression data; note explains missing expression records.
- Example code:
import dnakit
result = dnakit.databases.gtex_get_expression_summary(
gene_symbol='TP53',
verbose=False,
)
print(result)
- Example output: Returns the resolved gene identifier and tissue expression data; note explains missing expression records.
Full parameters and usage notes
44) Retrieve median gene expression across tissues¶
- Purpose: Retrieve median gene expression across tissues.
- Method: Use
GTExV2to query or submit the supplied input and parse the response. - API:
dnakit.databases.gtex_get_median_gene_expression(*, operation=None, gencode_id=None, tissue_site_detail_id=None, dataset_id=None, page=None, items_per_page=None, gene_symbol=None, gene=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a list of records; each record includes
median,tissueSiteDetailId,ontologyId,datasetIdand related fields. - Example code:
import dnakit
result = dnakit.databases.gtex_get_median_gene_expression(
operation='get_median_gene_expression',
gencode_id='ENSG00000141510.18',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
[
{
"median": "<number>",
"tissueSiteDetailId": "<string>",
"ontologyId": "<string>",
"datasetId": "<string>",
"gencodeId": "<string>",
"geneSymbol": "<string>",
"unit": "<string>"
}
]
Full parameters and usage notes
45) Retrieve multi-tissue eQTL meta-analysis results¶
- Purpose: Retrieve multi-tissue eQTL meta-analysis results.
- Method: Use
GTExV2to query or submit the supplied input and parse the response. - API:
dnakit.databases.gtex_get_multi_tissue_eqtls(*, operation=None, gencode_id, variant_id=None, dataset_id=None, page=None, items_per_page=None, verbose=True) - Input: Provide
gencode_id. - Output: Returns a list of records; each record includes
gencodeId,datasetId,metaP,variantIdand related fields. - Example code:
import dnakit
result = dnakit.databases.gtex_get_multi_tissue_eqtls(
operation='get_multi_tissue_eqtls',
gencode_id='ENSG00000141510.16',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
[
{
"gencodeId": "<string>",
"datasetId": "<string>",
"metaP": "<number>",
"variantId": "<string>",
"tissues": {
"Thyroid": "<object>",
"Testis": "<object>",
"Small_Intestine_Terminal_Ileum": "<object>",
"Brain_Frontal_Cortex_BA9": "<object>",
"Skin_Not_Sun_Exposed_Suprapubic": "<object>",
"Vagina": "<object>",
"Whole_Blood": "<object>",
"Breast_Mammary_Tissue": "<object>"
}
}
]
Full parameters and usage notes
46) Retrieve significant single-tissue eQTL associations¶
- Purpose: Retrieve significant single-tissue eQTL associations.
- Method: Use
GTExV2to query or submit the supplied input and parse the response. - API:
dnakit.databases.gtex_get_single_tissue_eqtls(*, operation=None, gencode_id=None, variant_id=None, tissue_site_detail_id=None, dataset_id=None, page=None, items_per_page=None, gene_symbol=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a list of records; each record includes
snpId,pos,snpIdUpper,variantIdand related fields. - Example code:
import dnakit
result = dnakit.databases.gtex_get_single_tissue_eqtls(
operation='get_single_tissue_eqtls',
gencode_id=['ENSG00000227232.5'],
tissue_site_detail_id=['Whole_Blood'],
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
[
{
"snpId": "<string>",
"pos": "<integer>",
"snpIdUpper": "<string>",
"variantId": "<string>",
"geneSymbol": "<string>",
"pValue": "<number>",
"geneSymbolUpper": "<string>",
"datasetId": "<string>"
}
]
Full parameters and usage notes
47) List GTEx tissue sites and sample statistics¶
- Purpose: List GTEx tissue sites and sample statistics.
- Method: Use
GTExV2to query or submit the supplied input and parse the response. - API:
dnakit.databases.gtex_get_tissue_sites(*, operation=None, dataset_id=None, page=None, items_per_page=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a list of records; each record includes
tissueSiteDetailId,colorHex,colorRgb,datasetIdand related fields. - Example code:
import dnakit
result = dnakit.databases.gtex_get_tissue_sites(
operation='get_tissue_sites',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
[
{
"tissueSiteDetailId": "<string>",
"colorHex": "<string>",
"colorRgb": "<string>",
"datasetId": "<string>",
"eGeneCount": "<integer>",
"expressedGeneCount": "<integer>",
"hasEGenes": "<boolean>",
"hasSGenes": "<boolean>"
}
]
Full parameters and usage notes
48) Query GTEx single-tissue eQTL data¶
- Purpose: Query GTEx single-tissue eQTL data.
- Method: Use
GTExEQTLto query or submit the supplied input and parse the response. - API:
dnakit.databases.gtex_query_eqtl(*, gene_symbol=None, ensembl_gene_id=None, page=None, size=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: data.singleTissueEqtl contains single-tissue eQTL records; metadata records the source and query.
- Example code:
import dnakit
result = dnakit.databases.gtex_query_eqtl(
gene_symbol='TP53',
size=3,
verbose=False,
)
print(result)
- Example output: data.singleTissueEqtl contains single-tissue eQTL records; metadata records the source and query.
Full parameters and usage notes
49) Aggregate gene information across genomics datasets¶
- Purpose: Aggregate gene information across genomics datasets.
- Method: Use
Harmonizometo query or submit the supplied input and parse the response. - API:
dnakit.databases.harmonizome_get_gene(*, gene_symbol, verbose=True) - Input: Provide
gene_symbol. - Output: Returns a mapping with
symbol,name,ncbi_entrez_gene_id,ncbi_entrez_gene_urland related fields. - Example code:
import dnakit
result = dnakit.databases.harmonizome_get_gene(
gene_symbol='TP53',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"symbol": "<string>",
"name": "<string>",
"ncbi_entrez_gene_id": "<integer>",
"ncbi_entrez_gene_url": "<string>",
"description": "<string>",
"synonyms": [
"<string>"
],
"proteins": [
{
"symbol": "<string>",
"href": "<string>"
}
]
}
Full parameters and usage notes
50) Retrieve associations between gene expression and cancer survival¶
- Purpose: Retrieve associations between gene expression and cancer survival.
- Method: Use
HPAGetCancerPrognosticsto query or submit the supplied input and parse the response. - API:
dnakit.databases.hpa_get_cancer_prognostics_by_gene(*, ensembl_id=None, gene_name=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
ensembl_id,gene,gene_synonym,cancers_assessed_countand related fields. - Example code:
import dnakit
result = dnakit.databases.hpa_get_cancer_prognostics_by_gene(
ensembl_id='ENSG00000141510',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"ensembl_id": "<string>",
"gene": "<string>",
"gene_synonym": [
"<string>"
],
"cancers_assessed_count": "<integer>",
"prognostic_cancers_count": "<integer>",
"non_prognostic_cancers_count": "<integer>",
"prognostic_summary": [
{
"cancer_type": "<string>",
"prognostic_type": "<string>",
"p_value": "<string>",
"is_prognostic": "<boolean>"
}
],
"non_prognostic_summary": [
{
"cancer_type": "<string>",
"prognostic_type": "<string>",
"p_value": "<string>",
"is_prognostic": "<boolean>"
}
]
}
Full parameters and usage notes
51) Inspect the retired HPA protein interaction query¶
- Purpose: Inspect the retired HPA protein interaction query.
- Method: Use
HPAGetProteinInteractionsto query or submit the supplied input and parse the response. - API:
dnakit.databases.hpa_get_protein_interactions_by_gene(*, gene_name, verbose=True) - Input: Provide
gene_name. This data-source operation is currently unavailable and returns an error; the code only illustrates the call syntax. - Output: This operation currently reports an unavailable service rather than valid interaction results.
- Example code:
import dnakit
result = dnakit.databases.hpa_get_protein_interactions_by_gene(
gene_name='TP53',
verbose=False,
)
print(result)
- Example output: This operation currently reports an unavailable service rather than valid interaction results.
Full parameters and usage notes
52) Retrieve RNA expression by biological source¶
- Purpose: Retrieve RNA expression by biological source.
- Method: Use
HPAGetRnaExpressionBySourceto query or submit the supplied input and parse the response. - API:
dnakit.databases.hpa_get_rna_expression_by_source(*, gene_name, source_type, source_name, verbose=True) - Input: Provide
gene_name,source_type,source_name. - Output: Returns a mapping with
errorand related fields. - Example code:
import dnakit
result = dnakit.databases.hpa_get_rna_expression_by_source(
gene_name='TP53',
source_type='tissue',
source_name='liver',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
Full parameters and usage notes
53) Retrieve gene RNA expression in selected tissues¶
- Purpose: Retrieve gene RNA expression in selected tissues.
- Method: Use
HPAGetRnaExpressionByTissueto query or submit the supplied input and parse the response. - API:
dnakit.databases.hpa_get_rna_expression_in_specific_tissues(*, ensembl_id=None, tissue_names=None, tissues=None, gene_name=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
errorand related fields. - Example code:
import dnakit
result = dnakit.databases.hpa_get_rna_expression_in_specific_tissues(
ensembl_id='ENSG00000254647',
tissue_names=['pancreas'],
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
Full parameters and usage notes
54) Retrieve protein subcellular localization annotations¶
- Purpose: Retrieve protein subcellular localization annotations.
- Method: Use
HPAGetSubcellularLocationto query or submit the supplied input and parse the response. - API:
dnakit.databases.hpa_get_subcellular_location(*, gene_name, verbose=True) - Input: Provide
gene_name. - Output: Returns a mapping with
gene_name,gene_synonym,main_locations,additional_locationsand related fields. - Example code:
import dnakit
result = dnakit.databases.hpa_get_subcellular_location(
gene_name='TP53',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"gene_name": "<string>",
"gene_synonym": [
"<string>"
],
"main_locations": [
"<string>"
],
"additional_locations": [
"<string>"
],
"total_locations": "<integer>",
"location_summary": "<string>"
}
Full parameters and usage notes
55) Search HPA genes and Ensembl identifiers¶
- Purpose: Search HPA genes and Ensembl identifiers.
- Method: Use
HPASearchGenesto query or submit the supplied input and parse the response. - API:
dnakit.databases.hpa_search_genes_by_query(*, search_query, max_results=None, verbose=True) - Input: Provide
search_query. - Output: Returns a mapping with
errorand related fields. - Example code:
import dnakit
result = dnakit.databases.hpa_search_genes_by_query(
search_query='TP53',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
Full parameters and usage notes
56) Retrieve transcription factor binding matrices and metadata¶
- Purpose: Retrieve transcription factor binding matrices and metadata.
- Method: Use
JASPARto query or submit the supplied input and parse the response. - API:
dnakit.databases.jaspar_get_matrix(*, matrix_id, verbose=True) - Input: Provide
matrix_id. - Output: Returns a mapping with
matrix_id,base_id,name,collectionand related fields. - Example code:
import dnakit
result = dnakit.databases.jaspar_get_matrix(
matrix_id='MA0002.2',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"matrix_id": "<string>",
"base_id": "<string>",
"name": "<string>",
"collection": "<string>",
"version": "<string>",
"pfm": {
"A": [
"<number>"
],
"C": [
"<number>"
],
"G": [
"<number>"
],
"T": [
"<number>"
]
},
"tax_group": "<string>",
"species": [
{
"tax_id": "<integer>",
"name": "<string>"
}
]
}
Full parameters and usage notes
57) List available versions of a JASPAR matrix¶
- Purpose: List available versions of a JASPAR matrix.
- Method: Use
JASPARto query or submit the supplied input and parse the response. - API:
dnakit.databases.jaspar_get_matrix_versions(*, base_id, page=None, page_size=None, verbose=True) - Input: Provide
base_id. - Output: Returns a mapping with
count,next,previous,resultsand related fields. - Example code:
import dnakit
result = dnakit.databases.jaspar_get_matrix_versions(
base_id='MA0002',
page=1,
page_size=5,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"count": "<integer>",
"next": "<string>",
"previous": "<string>",
"results": [
{
"matrix_id": "<string>",
"base_id": "<string>",
"name": "<string>",
"collection": "<string>",
"version": "<string>",
"url": "<string>",
"sequence_logo": "<string>"
}
]
}
Full parameters and usage notes
58) Browse JASPAR transcription factor binding profiles¶
- Purpose: Browse JASPAR transcription factor binding profiles.
- Method: Use
JASPARto query or submit the supplied input and parse the response. - API:
dnakit.databases.jaspar_get_transcription_factors(*, collection=None, page=None, page_size=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
count,next,previous,resultsand related fields. - Example code:
import dnakit
result = dnakit.databases.jaspar_get_transcription_factors(
collection='CORE',
page=1,
page_size=5,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"count": "<integer>",
"next": "<string>",
"previous": "<string>",
"results": [
{
"matrix_id": "<string>",
"base_id": "<string>",
"name": "<string>",
"collection": "<string>",
"version": "<string>",
"url": "<string>",
"sequence_logo": "<string>"
}
]
}
Full parameters and usage notes
59) Search binding matrices by name, species or taxonomic group¶
- Purpose: Search binding matrices by name, species or taxonomic group.
- Method: Use
JASPARto query or submit the supplied input and parse the response. - API:
dnakit.databases.jaspar_search_matrices(*, search=None, name=None, collection=None, tax_group=None, species=None, page=None, page_size=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
count,next,previous,resultsand related fields. - Example code:
import dnakit
result = dnakit.databases.jaspar_search_matrices(
search='CTCF',
page=1,
page_size=3,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"count": "<integer>",
"next": "<string>",
"previous": "<string>",
"results": [
{
"matrix_id": "<string>",
"base_id": "<string>",
"name": "<string>",
"collection": "<string>",
"version": "<string>",
"url": "<string>",
"sequence_logo": "<string>"
}
]
}
Full parameters and usage notes
60) Retrieve transcription factor binding sites by gene and cell type¶
- Purpose: Retrieve transcription factor binding sites by gene and cell type.
- Method: Use
ReMapto query or submit the supplied input and parse the response. - API:
dnakit.databases.re_map_get_transcription_factor_binding(*, gene_name, cell_type=None, limit=None, verbose=True) - Input: Provide
gene_name. - Output: Returns a mapping with
experiments,gene_name,cell_type,countand related fields. - Example code:
import dnakit
result = dnakit.databases.re_map_get_transcription_factor_binding(
gene_name='BRCA1',
cell_type='HepG2',
limit=5,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"experiments": [
{
"accession": "<string>",
"assay_title": "<string>",
"target": "<object>",
"biosample_ontology": "<object>",
"description": "<string>",
"status": "<string>"
}
],
"gene_name": "<string>",
"cell_type": "<string>",
"count": "<integer>",
"url": "<string>",
"note": "<string>"
}
Full parameters and usage notes
61) Retrieve regulatory variant annotations by rsID¶
- Purpose: Retrieve regulatory variant annotations by rsID.
- Method: Use
RegulomeDBto query or submit the supplied input and parse the response. - API:
dnakit.databases.regulome_db_query_variant(*, rsid=None, variant=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
rsid,assembly,query_coordinates,regulome_scoreand related fields. - Example code:
import dnakit
result = dnakit.databases.regulome_db_query_variant(
rsid='rs4994',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"rsid": "<string>",
"assembly": "<string>",
"query_coordinates": [
"<string>"
],
"regulome_score": {
"probability": "<string>",
"ranking": "<string>",
"tissue_specific_scores": "<object>"
},
"variants": [
{
"chrom": "<string>",
"start": "<integer>",
"end": "<integer>",
"rsids": "<array>"
}
],
"features": "<object>",
"nearby_snps": [
"<value>"
],
"notifications": "<object>"
}
Full parameters and usage notes
62) Retrieve candidate cis-regulatory elements in an interval¶
- Purpose: Retrieve candidate cis-regulatory elements in an interval.
- Method: Use
SCREENto query or submit the supplied input and parse the response. - API:
dnakit.databases.screen_get_regulatory_elements(*, gene_name=None, query=None, element_type=None, limit=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a mapping with
gene_name,element_type,count,regulatory_elementsand related fields. - Example code:
import dnakit
result = dnakit.databases.screen_get_regulatory_elements(
gene_name='BRCA1',
element_type='enhancer',
limit=5,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"gene_name": "<string>",
"element_type": "<string>",
"count": "<integer>",
"regulatory_elements": [
{
"accession": "<string>",
"assay_title": "<string>",
"target": "<string>",
"biosample": "<string>",
"status": "<string>"
}
]
}
Full parameters and usage notes
63) Retrieve ENCODE candidate cis-regulatory elements from UCSC¶
- Purpose: Retrieve ENCODE candidate cis-regulatory elements from UCSC.
- Method: Use
UCSCEpigenomicsto query or submit the supplied input and parse the response. - API:
dnakit.databases.ucsc_get_encode_c_cres(*, genome=None, chrom, start, end, verbose=True) - Input: Provide
chrom,start,end. - Output: Returns a mapping with
genome,region,ccre_count,ccresand related fields. - Example code:
import dnakit
result = dnakit.databases.ucsc_get_encode_c_cres(
genome='hg38',
chrom='chr17',
start=7668421,
end=7687490,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"genome": "<string>",
"region": "<string>",
"ccre_count": "<integer>",
"ccres": [
{
"name": "<string>",
"chrom": "<string>",
"chromStart": "<integer>",
"chromEnd": "<integer>",
"cCRE_class": "<string>",
"DNase_maxZ": "<number>",
"H3K4me3_maxZ": "<number>",
"H3K27ac_maxZ": "<number>"
}
]
}
Full parameters and usage notes
64) Retrieve a direct transcription factor binding dataset¶
- Purpose: Retrieve a direct transcription factor binding dataset.
- Method: Use
UniBindto query or submit the supplied input and parse the response. - API:
dnakit.databases.uni_bind_get_dataset(*, operation=None, dataset_id, verbose=True) - Input: Provide
dataset_id. - Output: Returns a mapping with
dataset_id,tf_name,cell_line,biological_conditionand related fields. - Example code:
import dnakit
result = dnakit.databases.uni_bind_get_dataset(
operation='get_dataset',
dataset_id='EXP030726.neural_stem_cells.SMAD3',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
{
"dataset_id": "<string>",
"tf_name": "<string>",
"cell_line": [
"<string>"
],
"biological_condition": [
"<string>"
],
"identifier": [
"<string>"
],
"jaspar_id": [
"<string>"
],
"prediction_models": [
"<string>"
],
"tfbs_models": [
{
"prediction_model": "<string>",
"jaspar_id": "<string>",
"jaspar_version": "<string>",
"total_tfbs": "<string>",
"score_threshold": "<string>",
"distance_threshold": "<string>",
"adj_centrimo_pvalue": "<number>",
"bed_url": "<string>"
}
]
}
Full parameters and usage notes
65) List transcription factors in UniBind¶
- Purpose: List transcription factors in UniBind.
- Method: Use
UniBindto query or submit the supplied input and parse the response. - API:
dnakit.databases.uni_bind_list_tfs(*, operation=None, search=None, limit=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a list for “List transcription factors in UniBind”; the item shape is shown below.
- Example code:
import dnakit
result = dnakit.databases.uni_bind_list_tfs(
operation='list_tfs',
search='SMAD',
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.
Full parameters and usage notes
66) Search binding datasets by transcription factor and cell context¶
- Purpose: Search binding datasets by transcription factor and cell context.
- Method: Use
UniBindto query or submit the supplied input and parse the response. - API:
dnakit.databases.uni_bind_search_datasets(*, operation=None, tf_name=None, species=None, cell_line=None, collection=None, order=None, page=None, page_size=None, verbose=True) - Input: Choose filters as shown in the example; omitted options use the operation defaults.
- Output: Returns a list of records; each record includes
tf_name,total_peaks,dataset_url,dataset_idand related fields. - Example code:
import dnakit
result = dnakit.databases.uni_bind_search_datasets(
operation='search_datasets',
tf_name='SMAD3',
page_size=5,
verbose=False,
)
print(result)
- Example output: The response has the following shape; records depend on the input and source.
Response-shape excerpt; <…> denotes type placeholders, not a captured query result.