Skip to content

Commit

Permalink
mapping: removed regex escaping from docstrings
Browse files Browse the repository at this point in the history
deeenes committed May 15, 2024
1 parent c98ce67 commit ff3cc83
Showing 2 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion pypath/resources/controller.py
Original file line number Diff line number Diff line change
@@ -124,7 +124,7 @@ def update(self, path = None, force = False, remove_old = False):

try:

with open(path) as json_file:
with open(path, encoding = 'utf-8') as json_file:

resources_data = json.load(json_file)
self.data = resources_data
56 changes: 28 additions & 28 deletions pypath/utils/mapping.py
Original file line number Diff line number Diff line change
@@ -1845,13 +1845,13 @@ def map_name(
name (str): The original name to be converted.
id_type (str): The type of the name. Available by default:
- genesymbol (gene name)
- entrez (Entrez Gene ID \[#\])
- refseqp (NCBI RefSeq Protein ID \[NP\_\*|XP\_\*\])
- ensp (Ensembl protein ID \[ENSP\*\])
- enst (Ensembl transcript ID \[ENST\*\])
- ensg (Ensembl genomic DNA ID \[ENSG\*\])
- hgnc (HGNC ID \[HGNC:#\])
- gi (GI number \[#\])
- entrez (Entrez Gene ID [#])
- refseqp (NCBI RefSeq Protein ID [NP_|XP_*])
- ensp (Ensembl protein ID [ENSP*])
- enst (Ensembl transcript ID [ENST*])
- ensg (Ensembl genomic DNA ID [ENSG*])
- hgnc (HGNC ID [HGNC:#])
- gi (GI number [#])
- embl (DDBJ/EMBL/GeneBank CDS accession)
- embl_id (DDBJ/EMBL/GeneBank accession)
And many more, see the code of
@@ -2270,13 +2270,13 @@ def map_names(
name (str): The original name to be converted.
id_type (str): The type of the name. Available by default:
- genesymbol (gene name)
- entrez (Entrez Gene ID \[#\])
- refseqp (NCBI RefSeq Protein ID \[NP\_\*|XP\_\*\])
- ensp (Ensembl protein ID \[ENSP\*\])
- enst (Ensembl transcript ID \[ENST\*\])
- ensg (Ensembl genomic DNA ID \[ENSG\*\])
- hgnc (HGNC ID \[HGNC:#\])
- gi (GI number \[#\])
- entrez (Entrez Gene ID [#])
- refseqp (NCBI RefSeq Protein ID [NP_*|XP_*])
- ensp (Ensembl protein ID [ENSP*])
- enst (Ensembl transcript ID [ENST*])
- ensg (Ensembl genomic DNA ID [ENSG*])
- hgnc (HGNC ID [HGNC:#])
- gi (GI number [#])
- embl (DDBJ/EMBL/GeneBank CDS accession)
- embl_id (DDBJ/EMBL/GeneBank accession)
And many more, see the code of
@@ -3519,13 +3519,13 @@ def map_name(
name (str): The original name to be converted.
id_type (str): The type of the name. Available by default:
- genesymbol (gene name)
- entrez (Entrez Gene ID \[#\])
- refseqp (NCBI RefSeq Protein ID \[NP\_\*|XP\_\*\])
- ensp (Ensembl protein ID \[ENSP\*\])
- enst (Ensembl transcript ID \[ENST\*\])
- ensg (Ensembl genomic DNA ID \[ENSG\*\])
- hgnc (HGNC ID \[HGNC:#\])
- gi (GI number \[#\])
- entrez (Entrez Gene ID [#])
- refseqp (NCBI RefSeq Protein ID [NP_*|XP_*])
- ensp (Ensembl protein ID [ENSP*])
- enst (Ensembl transcript ID [ENST*])
- ensg (Ensembl genomic DNA ID [ENSG*])
- hgnc (HGNC ID [HGNC:#])
- gi (GI number [#])
- embl (DDBJ/EMBL/GeneBank CDS accession)
- embl_id (DDBJ/EMBL/GeneBank accession)
And many more, see the code of
@@ -3609,13 +3609,13 @@ def map_names(
name (str): The original name to be converted.
id_type (str): The type of the name. Available by default:
- genesymbol (gene name)
- entrez (Entrez Gene ID \[#\])
- refseqp (NCBI RefSeq Protein ID \[NP\_\*|XP\_\*\])
- ensp (Ensembl protein ID \[ENSP\*\])
- enst (Ensembl transcript ID \[ENST\*\])
- ensg (Ensembl genomic DNA ID \[ENSG\*\])
- hgnc (HGNC ID \[HGNC:#\])
- gi (GI number \[#\])
- entrez (Entrez Gene ID [#])
- refseqp (NCBI RefSeq Protein ID [NP_*|XP_*])
- ensp (Ensembl protein ID [ENSP*])
- enst (Ensembl transcript ID [ENST*])
- ensg (Ensembl genomic DNA ID [ENSG*])
- hgnc (HGNC ID [HGNC:#])
- gi (GI number [#])
- embl (DDBJ/EMBL/GeneBank CDS accession)
- embl_id (DDBJ/EMBL/GeneBank accession)
And many more, see the code of

0 comments on commit ff3cc83

Please sign in to comment.