Skip to content

Commit 112fbe8

Browse files
authored
Merge pull request #102 from sbslee/0.21.0-dev
0.21.0 dev
2 parents decb65a + 17a8db5 commit 112fbe8

8 files changed

Lines changed: 567 additions & 462 deletions

File tree

CHANGELOG.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
Changelog
22
*********
33

4+
0.21.0 (2023-08-25)
5+
-------------------
6+
7+
* :issue:`96`: Fix bug in :command:`compute-copy-number` command where it threw an error "Different sample sets found" when the sample name consists of only numbers with one or more leading zeros.
8+
* :issue:`97`: Fix bug in IFNL3 genotyping where certain variants were not considered because they were located outside of the target region.
9+
* :issue:`99`: Refresh the CPIC table for :meth:`api.core.load_cpic_table` method. The table's latest update was on February 6, 2022.
10+
* :issue:`63`: Fix bug in :meth:`api.utils.estimate_phase_beagle` method where Beagle throws an error "Window has only one position" even when multiple overlapping variants exist.
11+
412
0.20.0 (2023-01-12)
513
-------------------
614

docs/genes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,8 @@ Below is a summary table:
413413
-
414414
-
415415
- Other
416-
- `chr19:39731245-39738646 <https://genome.ucsc.edu/cgi-bin/hgTracks?db=hg19&lastVirtModeType=default&lastVirtModeExtraState=&virtModeType=default&virtMode=0&nonVirtPosition=&position=chr19%3A39731245%2D39738646&hgsid=1251392659_FCwuNEZja7PPePnsIvfT1wF8Ke9Y>`__
417-
- `chr19:39240552-39248006 <https://genome.ucsc.edu/cgi-bin/hgTracks?db=hg38&lastVirtModeType=default&lastVirtModeExtraState=&virtModeType=default&virtMode=0&nonVirtPosition=&position=chr19%3A39240552%2D39248006&hgsid=1251392659_FCwuNEZja7PPePnsIvfT1wF8Ke9Y>`__
416+
- `chr19:39731245-39744165 <https://genome.ucsc.edu/cgi-bin/hgTracks?db=hg19&lastVirtModeType=default&lastVirtModeExtraState=&virtModeType=default&virtMode=0&nonVirtPosition=&position=chr19%3A39731245%2D39744165&hgsid=1251392659_FCwuNEZja7PPePnsIvfT1wF8Ke9Y>`__
417+
- `chr19:39240552-39253525 <https://genome.ucsc.edu/cgi-bin/hgTracks?db=hg38&lastVirtModeType=default&lastVirtModeExtraState=&virtModeType=default&virtMode=0&nonVirtPosition=&position=chr19%3A39240552%2D39253525&hgsid=1251392659_FCwuNEZja7PPePnsIvfT1wF8Ke9Y>`__
418418
-
419419
* - NAT1
420420
- ✅

pypgx/api/core.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,6 +1138,10 @@ def load_cpic_table():
11381138
"""
11391139
Load the CPIC table.
11401140
1141+
The copy of the CPIC table in PyPGx is current as of August 19, 2023. To
1142+
obtain the latest CPIC table, you can visit the Genes-Drugs page on the
1143+
CPIC website.
1144+
11411145
Returns
11421146
-------
11431147
pandas.DataFrame
@@ -1149,12 +1153,12 @@ def load_cpic_table():
11491153
>>> import pypgx
11501154
>>> df = pypgx.load_cpic_table()
11511155
>>> df.head()
1152-
Gene Drug Guideline CPICLevel CPICLevelStatus PharmGKBLevel FDALabel PMID
1153-
0 HLA-B abacavir https://cpicpgx.org/guidelines/guideline-for-a... A Final 1A Testing required 24561393;22378157
1154-
1 HLA-B allopurinol https://cpicpgx.org/guidelines/guideline-for-a... A Final 1A Testing recommended 23232549;26094938
1155-
2 MT-RNR1 amikacin https://cpicpgx.org/guidelines/cpic-guideline-... A Final 3 NaN 34032273
1156-
3 CYP2C19 amitriptyline https://cpicpgx.org/guidelines/guideline-for-t... A Final 1A NaN 23486447;27997040
1157-
4 CYP2D6 amitriptyline https://cpicpgx.org/guidelines/guideline-for-t... A Final 1A Actionable PGx 23486447;27997040
1156+
Gene Drug RxNorm ATC Guideline CPICLevel CPICLevelStatus PharmGKBLevel FDALabel PMID
1157+
0 HLA-B abacavir 190521.0 J05AF06, J05AR02, J05AR13, J05AR04 https://cpicpgx.org/guidelines/guideline-for-a... A Final 1A Testing required 24561393;22378157
1158+
1 HLA-B allopurinol 519.0 M04AA01, M04AA51 https://cpicpgx.org/guidelines/guideline-for-a... A Final 1A Testing recommended 23232549;26094938
1159+
2 MT-RNR1 amikacin 641.0 D06AX12, J01GB06, S01AA21 https://cpicpgx.org/guidelines/cpic-guideline-... A Final 1A NaN 34032273
1160+
3 CYP2C19 amitriptyline 704.0 N06AA09, N06CA01 https://cpicpgx.org/guidelines/guideline-for-t... A Final 1A NaN 23486447;27997040
1161+
4 CYP2D6 amitriptyline 704.0 N06AA09, N06CA01 https://cpicpgx.org/guidelines/guideline-for-t... A Final 1A Actionable PGx 23486447;27997040
11581162
"""
11591163
b = BytesIO(pkgutil.get_data(__name__, 'data/cpic-table.csv'))
11601164
return pd.read_csv(b)

0 commit comments

Comments
 (0)