@@ -29,7 +29,7 @@ Installation
2929
3030The following packages are required to run PyPGx:
3131
32- .. list-table :: Dependencies and their availability in Anaconda and PyPI
32+ .. list-table ::
3333 :header-rows: 1
3434
3535 * - Package
@@ -212,22 +212,67 @@ For getting help on a specific submodule (e.g. utils):
212212 CLI examples
213213============
214214
215- Run NGS pipeline for CYP2D6:
215+ We can print the metadata of an archive file:
216+
217+ .. code-block :: text
218+
219+ $ pypgx print-metadata CYP2D6-copy-number.zip
220+
221+ Above will print:
222+
223+ .. code-block :: text
224+
225+ Gene=CYP2D6
226+ Assembly=GRCh37
227+ SemanticType=CovFrame[CopyNumber]
228+ Platform=WGS
229+ Control=VDR
230+ Samples=None
231+
232+ We can run the NGS pipeline for the *CYP2D6 * gene:
216233
217234.. code-block :: text
218235
219- $ pypgx run-ngs-pipeline \
220- CYP2D6 \
221- CYP2D6-pipeline \
222- --vcf input.vcf \
223- --panel ref.vcf \
224- --tsv input.tsv \
225- --control-statistics control-statistics-VDR.zip
236+ $ pypgx run-ngs-pipeline \
237+ CYP2D6 \
238+ CYP2D6-pipeline \
239+ --vcf input.vcf \
240+ --panel ref.vcf \
241+ --tsv input.tsv \
242+ --control-statistics control-statistics-VDR.zip
243+
244+ Above will create a number of archive files:
245+
246+ .. code-block :: text
247+
248+ Saved VcfFrame[Imported] to: CYP2D6-pipeline/imported-variants.zip
249+ Saved VcfFrame[Phased] to: CYP2D6-pipeline/phased-variants.zip
250+ Saved VcfFrame[Consolidated] to: CYP2D6-pipeline/consolidated-variants.zip
251+ Saved SampleTable[Alleles] to: CYP2D6-pipeline/alleles.zip
252+ Saved CovFrame[ReadDepth] to: CYP2D6-pipeline/read-depth.zip
253+ Saved CovFrame[CopyNumber] to: CYP2D6-pipeline/copy-number.zip
254+ Saved SampleTable[CNVCalls] to: CYP2D6-pipeline/cnv-calls.zip
255+ Saved SampleTable[Genotypes] to: CYP2D6-pipeline/genotypes.zip
256+ Saved SampleTable[Results] to: CYP2D6-pipeline/results.zip
226257
227258 API examples
228259============
229260
230- Predict phenotype based on two haplotype calls:
261+ We can obtain allele function for the *CYP2D6 * gene:
262+
263+ .. code :: python3
264+
265+ >>> import pypgx
266+ >>> pypgx.get_function('CYP2D6', '*1')
267+ 'Normal Function'
268+ >>> pypgx.get_function('CYP2D6', '*4')
269+ 'No Function'
270+ >>> pypgx.get_function('CYP2D6', '*22')
271+ 'Uncertain Function'
272+ >>> pypgx.get_function('CYP2D6', '*140')
273+ 'Unknown Function'
274+
275+ We can predict phenotype for the *CYP2D6 * gene based on two haplotype calls:
231276
232277.. code :: python3
233278
@@ -240,5 +285,3 @@ Predict phenotype based on two haplotype calls:
240285 'Indeterminate'
241286 >>> pypgx.predict_phenotype('CYP2D6', '*1', '*1x2') # Gene duplication
242287 'Ultrarapid Metabolizer'
243- >>> pypgx.predict_phenotype('CYP2B6', '*1', '*4') # *4 has increased function
244- 'Rapid Metabolizer'
0 commit comments