Skip to content

Commit 855ec33

Browse files
authored
Merge pull request #40 from sbslee/0.10.0-dev
0.10.0 dev
2 parents ad4dda0 + ab88275 commit 855ec33

41 files changed

Lines changed: 3494 additions & 430 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.rst

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
11
Changelog
22
*********
33

4+
0.10.0 (2021-12-19)
5+
-------------------
6+
7+
* :issue:`32`: Update :command:`import-variants` command to accept phased VCF as input. It will output VcfFrame[Consolidated] if the input VCF is fully phased or otherwise VcfFrame[Imported] as usual.
8+
* Add new property ``sdk.utils.Archive.type`` to quickly access the archive's semantic type.
9+
* Update :meth:`sdk.utils.Archive.check_type` method to be able to test more than one semantic type at once.
10+
* Update :meth:`api.plot.plot_vcf_allele_fraction` method to accept both VcfFrame[Imported] and VcfFrame[Consolidated].
11+
* :issue:`32`: Update :command:`run-ngs-pipeline` command to accept phased VCF as input. In this case, the command will skip statistical haplotype phasing.
12+
* :issue:`34`: Update commands :command:`run-ngs-pipeline` and :command:`run-chip-pipeline` to load large VCF files significantly faster by allowing random access. This also means, from now on, input VCF files must be BGZF compressed (.gz) and indexed (.tbi).
13+
* :issue:`36`: Update phenotype data for CACNA1S, CFTR, IFNL3, RYR1 (thanks `@NTNguyen13 <https://github.com/NTNguyen13>`__).
14+
* :pr:`39`: Add new gene F5 (thanks `@NTNguyen13 <https://github.com/NTNguyen13>`__).
15+
* Update :command:`import-variants` command to be able to subset/exclude specified samples.
16+
* Update :command:`import-read-depth` command to be able to subset/exclude specified samples.
17+
* Rename ``--samples`` argument from :command:`compute-copy-number` command to ``--samples-without-sv``.
18+
* Rename ``--samples`` argument from :command:`run-ngs-pipeline` command to ``--samples-without-sv``.
19+
* Update :command:`run-ngs-pipeline` and :command:`run-chip-pipeline` commands to be able to subset/exclude specified samples.
20+
* Remove ``--fn`` argument from :command:`filter-samples` command.
21+
* Update CNV caller for CYP2D6, GSTM1, and UGT1A4.
22+
* Update :meth:`api.plot.plot_cn_af` method to accept both VcfFrame[Imported] and VcfFrame[Consolidated].
23+
424
0.9.0 (2021-12-05)
525
------------------
626

@@ -19,7 +39,7 @@ Changelog
1939
* Add new method :meth:`api.core.get_strand`.
2040
* Add new method :meth:`api.core.get_exon_starts`.
2141
* Add new method :meth:`api.core.get_exon_ends`.
22-
* :pr:`31`: Fix minor bug in commands :command:`run-ngs-pipeline` and :command:`import-read-depth` (thanks to `@NTNguyen13 <https://github.com/NTNguyen13>`__).
42+
* :pr:`31`: Fix minor bug in commands :command:`run-ngs-pipeline` and :command:`import-read-depth` (thanks `@NTNguyen13 <https://github.com/NTNguyen13>`__).
2343
* Fix minor bug in :meth:`api.core.predict_score` method.
2444
* Update variant information for following alleles: CYP2D6\*27, CYP2D6\*32, CYP2D6\*131, CYP2D6\*141.
2545

README.rst

Lines changed: 36 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ available at the `Read the Docs <https://pypgx.readthedocs.io/en/latest/>`_.
3636
PyPGx is compatible with both of the Genome Reference Consortium Human (GRCh)
3737
builds, GRCh37 (hg19) and GRCh38 (hg38).
3838

39-
There are currently 57 pharmacogenes in PyPGx:
39+
There are currently 58 pharmacogenes in PyPGx:
4040

4141
.. list-table::
4242

@@ -71,35 +71,35 @@ There are currently 57 pharmacogenes in PyPGx:
7171
- CYP19A1
7272
- CYP26A1
7373
* - DPYD
74+
- F5
7475
- G6PD
7576
- GSTM1
7677
- GSTP1
77-
- GSTT1
78-
* - IFNL3
78+
* - GSTT1
79+
- IFNL3
7980
- NAT1
8081
- NAT2
8182
- NUDT15
82-
- POR
83-
* - PTGIS
83+
* - POR
84+
- PTGIS
8485
- RYR1
8586
- SLC15A2
8687
- SLC22A2
87-
- SLCO1B1
88-
* - SLCO1B3
88+
* - SLCO1B1
89+
- SLCO1B3
8990
- SLCO2B1
9091
- SULT1A1
9192
- TBXAS1
92-
- TPMT
93-
* - UGT1A1
93+
* - TPMT
94+
- UGT1A1
9495
- UGT1A4
9596
- UGT2B7
9697
- UGT2B15
97-
- UGT2B17
98-
* - VKORC1
98+
* - UGT2B17
99+
- VKORC1
99100
- XPC
100101
-
101102
-
102-
-
103103

104104
Your contributions (e.g. feature ideas, pull requests) are most welcome.
105105

@@ -179,7 +179,7 @@ the presence of ALT contigs reduces the sensitivity of variant calling
179179
and many other analyses including SV detection. Therefore, if you have
180180
sequencing data in GRCh38, make sure it's aligned to the main contigs only.
181181

182-
The only exception to above rule is the *GSTT1* gene, which is located on
182+
The only exception to above rule is the GSTT1 gene, which is located on
183183
``chr22`` for GRCh37 but on ``chr22_KI270879v1_alt`` for GRCh38. This gene is
184184
known to have an extremely high rate of gene deletion polymorphism in the
185185
population and thus requires SV analysis. Therefore, if you are interested in
@@ -288,28 +288,30 @@ currently defined semantic types:
288288
Phenotype prediction
289289
====================
290290

291-
Many of the genes in PyPGx have a diplotype-phenotype table available from
292-
the Clinical Pharmacogenetics Implementation Consortium (CPIC). PyPGx will
293-
use this information to perform phenotype prediction. Note that there two
294-
types of phenotype prediction:
295-
296-
- Method 1. Diplotype-phenotype mapping: This method directly uses the
297-
diplotype-phenotype mapping as defined by CPIC. Using the CYP2B6 gene as an
298-
example, the diplotypes \*6/\*6, \*1/\*29, \*1/\*2, \*1/\*4, and \*4/\*4
299-
correspond to Poor Metabolizer, Intermediate Metabolizer, Normal
300-
Metabolizer, Rapid Metabolizer, and Ultrarapid Metabolizer.
301-
- Method 2. Activity score: This method uses a standard unit of enzyme
302-
activity known as an activity score. Using the CYP2D6 gene as an example,
303-
the fully functional reference \*1 allele is assigned a value of 1,
304-
decreased-function alleles such as \*9 and \*17 receive a value of
305-
0.5, and nonfunctional alleles including \*4 and \*5 have a value of
306-
0. The sum of values assigned to both alleles constitutes the activity
307-
score of a diplotype. Consequently, subjects with \*1/\*1, \*1/\*4,
308-
and \*4/\*5 diplotypes have an activity score of 2 (Normal Metabolizer),
309-
1 (Intermediate Metabolizer), and 0 (Poor Metabolizer), respectively.
291+
Many genes in PyPGx have a genotype-phenotype table available from the
292+
Clinical Pharmacogenetics Implementation Consortium (CPIC) or
293+
the Pharmacogenomics Knowledge Base (PharmGKB). PyPGx uses these tables to
294+
perform phenotype prediction with one of the two methods:
295+
296+
- Method 1. Simple diplotype-phenotype mapping: This method directly uses the
297+
diplotype-phenotype mapping as defined by CPIC or PharmGKB. Using the
298+
CYP2B6 gene as an example, the diplotypes \*6/\*6, \*1/\*29, \*1/\*2,
299+
\*1/\*4, and \*4/\*4 correspond to Poor Metabolizer, Intermediate
300+
Metabolizer, Normal Metabolizer, Rapid Metabolizer, and Ultrarapid
301+
Metabolizer.
302+
- Method 2. Summation of haplotype activity scores: This method uses a
303+
standard unit of enzyme activity known as an activity score. Using the
304+
CYP2D6 gene as an example, the fully functional reference \*1 allele is
305+
assigned a value of 1, decreased-function alleles such as \*9 and \*17
306+
receive a value of 0.5, and nonfunctional alleles including \*4 and \*5
307+
have a value of 0. The sum of values assigned to both alleles constitutes
308+
the activity score of a diplotype. Consequently, subjects with \*1/\*1,
309+
\*1/\*4, and \*4/\*5 diplotypes have an activity score of 2 (Normal
310+
Metabolizer), 1 (Intermediate Metabolizer), and 0 (Poor Metabolizer),
311+
respectively.
310312

311313
Please visit the `Genes <https://pypgx.readthedocs.io/en/latest/
312-
genes.html>`__ page to see the list of genes with a CPIC diplotype-phenotype
314+
genes.html>`__ page to see the list of genes with a genotype-phenotype
313315
table and each of their prediction method.
314316

315317
Getting help
@@ -345,7 +347,7 @@ For getting help on the CLI:
345347
Estimate haplotype phase of observed variants with the Beagle program.
346348
filter-samples Filter Archive file for specified samples.
347349
import-read-depth Import read depth data for the target gene.
348-
import-variants Import variant data for the target gene.
350+
import-variants Import variant (SNV/indel) data for the target gene
349351
plot-bam-copy-number
350352
Plot copy number profile from CovFrame[CopyNumber].
351353
plot-bam-read-depth
@@ -383,7 +385,6 @@ Below is the list of submodules available in the API:
383385
- **plot** : The plot submodule is used to plot various kinds of profiles such as read depth, copy number, and allele fraction.
384386
- **utils** : The utils submodule contains main actions of PyPGx.
385387

386-
387388
For getting help on a specific submodule (e.g. utils):
388389

389390
.. code:: python3

0 commit comments

Comments
 (0)