Skip to content

Commit

Permalink
added variables file containing DICT_DATABASES supplemental info rath…
Browse files Browse the repository at this point in the history
…er than storing in get_gene_name
  • Loading branch information
jessicaw9910 committed Aug 7, 2024
1 parent 5f47309 commit 109ae4a
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions src/nf_rnaseq/variables.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
from nf_rnaseq import biomart, hgnc, uniprot

DICT_DATABASES = {
"BioMart": {
"GET": {
"api_object": biomart.BioMart,
"term_in": "ensembl_transcript_id_version",
"term_out": "external_gene_name",
"url_base": 'http://www.ensembl.org/biomart/martservice?query=<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE Query><Query virtualSchemaName = "default" formatter = "TSV" header = "0" uniqueRows = "0" count = "" datasetConfigVersion = "0.6" ><Dataset name = "hsapiens_gene_ensembl" interface = "default" ><Filter name = "<TERM_IN>" value = "<IDS>"/><Attribute name = "<TERM_IN>" /><Attribute name = "<TERM_OUT>" /></Dataset></Query>',
"headers": None,
},
},
"HGNC": {
"GET": {
"api_object": hgnc.HGNC,
"term_in": "mane_select",
"term_out": "symbol",
"url_base": "https://rest.genenames.org/fetch",
"headers": "{'Accept': 'application/json'}",
}
},
"UniProt": {
"GET": {
"api_object": uniprot.UniProt,
"term_in": "UniProtKB_AC-ID",
"term_out": "Gene_Name",
"url_base": "https://rest.uniprot.org/uniprotkb",
"headers": None,
},
},
"UniProtBULK": {
"POST": {
"api_object": uniprot.UniProtPOST,
"term_in": "UniProtKB_AC-ID",
"term_out": "Gene_Name",
"url_base": "https://rest.uniprot.org/idmapping/run",
},
"GET": {
"api_object": uniprot.UniProtGET,
"term_in": "UniProtKB_AC-ID",
"term_out": "Gene_Name",
"url_base": "https://rest.uniprot.org/idmapping/status",
"headers": None,
},
},
}

0 comments on commit 109ae4a

Please sign in to comment.