@@ -55,11 +55,13 @@ For getting help on the CLI:
5555 prepare-depth-of-coverage
5656 Prepare a depth of coverage file for all target
5757 genes with SV from BAM files.
58+ print-data Print the main data of specified archive.
5859 print-metadata Print the metadata of specified archive.
5960 run-chip-pipeline Run genotyping pipeline for chip data.
6061 run-long-read-pipeline
6162 Run genotyping pipeline for long-read sequencing data.
6263 run-ngs-pipeline Run genotyping pipeline for NGS data.
64+ slice-bam Slice BAM file for all genes used by PyPGx.
6365 test-cnv-caller Test CNV caller for target gene.
6466 train-cnv-caller Train CNV caller for target gene.
6567
@@ -201,13 +203,13 @@ compute-control-statistics
201203 [Example] For the VDR gene from WGS data:
202204 $ pypgx compute-control-statistics \
203205 VDR \
204- control-statistcs .zip \
206+ control-statistics .zip \
205207 1.bam 2.bam
206208
207209 [Example] For a custom region from targeted sequencing data:
208210 $ pypgx compute-control-statistics \
209211 chr1:100-200 \
210- control-statistcs .zip \
212+ control-statistics .zip \
211213 bam.list \
212214 --bed probes.bed
213215
@@ -218,7 +220,7 @@ compute-copy-number
218220
219221 $ pypgx compute-copy-number -h
220222 usage: pypgx compute-copy-number [-h] [--samples-without-sv TEXT [TEXT ...]]
221- read-depth control-statistcs copy-number
223+ read-depth control-statistics copy-number
222224
223225 Compute copy number from read depth for target gene.
224226
@@ -233,7 +235,7 @@ compute-copy-number
233235 Positional arguments:
234236 read-depth Input archive file with the semantic type
235237 CovFrame[ReadDepth].
236- control-statistcs Input archive file with the semantic type
238+ control-statistics Input archive file with the semantic type
237239 SampleTable[Statistics].
238240 copy-number Output archive file with the semantic type
239241 CovFrame[CopyNumber].
@@ -703,6 +705,7 @@ prepare-depth-of-coverage
703705
704706 $ pypgx prepare-depth-of-coverage -h
705707 usage: pypgx prepare-depth-of-coverage [-h] [--assembly TEXT] [--bed PATH]
708+ [--genes TEXT [TEXT ...]] [--exclude]
706709 depth-of-coverage bams [bams ...]
707710
708711 Prepare a depth of coverage file for all target genes with SV from BAM files.
@@ -713,22 +716,26 @@ prepare-depth-of-coverage
713716 have star alleles defined only by SNVs/indels (e.g. CYP3A5).
714717
715718 Positional arguments:
716- depth-of-coverage Output archive file with the semantic type
717- CovFrame[DepthOfCoverage].
718- bams One or more input BAM files. Alternatively, you can
719- provide a text file (.txt, .tsv, .csv, or .list)
720- containing one BAM file per line.
719+ depth-of-coverage Output archive file with the semantic type
720+ CovFrame[DepthOfCoverage].
721+ bams One or more input BAM files. Alternatively, you can
722+ provide a text file (.txt, .tsv, .csv, or .list)
723+ containing one BAM file per line.
721724
722725 Optional arguments:
723- -h, --help Show this help message and exit.
724- --assembly TEXT Reference genome assembly (default: 'GRCh37')
725- (choices: 'GRCh37', 'GRCh38').
726- --bed PATH By default, the input data is assumed to be WGS. If
727- it's targeted sequencing, you must provide a BED file
728- to indicate probed regions. Note that the 'chr' prefix
729- in contig names (e.g. 'chr1' vs. '1') will be
730- automatically added or removed as necessary to match
731- the input BAM's contig names.
726+ -h, --help Show this help message and exit.
727+ --assembly TEXT Reference genome assembly (default: 'GRCh37')
728+ (choices: 'GRCh37', 'GRCh38').
729+ --bed PATH By default, the input data is assumed to be WGS. If
730+ it's targeted sequencing, you must provide a BED file
731+ to indicate probed regions. Note that the 'chr' prefix
732+ in contig names (e.g. 'chr1' vs. '1') will be
733+ automatically added or removed as necessary to match
734+ the input BAM's contig names.
735+ --genes TEXT [TEXT ...]
736+ List of genes to include.
737+ --exclude Exclude specified genes. Ignored when --genes is not
738+ used.
732739
733740 [Example] From WGS data:
734741 $ pypgx prepare-depth-of-coverage \
@@ -741,6 +748,22 @@ prepare-depth-of-coverage
741748 bam.list \
742749 --bed probes.bed
743750
751+ print-data
752+ ==========
753+
754+ .. code-block :: text
755+
756+ $ pypgx print-data -h
757+ usage: pypgx print-data [-h] input
758+
759+ Print the main data of specified archive.
760+
761+ Positional arguments:
762+ input Input archive file.
763+
764+ Optional arguments:
765+ -h, --help Show this help message and exit.
766+
744767 print-metadata
745768==============
746769
@@ -876,7 +899,7 @@ run-ngs-pipeline
876899 CovFrame[DepthOfCoverage].
877900 --control-statistics PATH
878901 Archive file with the semantic type
879- SampleTable[Statistcs ].
902+ SampleTable[Statistics ].
880903 --platform TEXT Genotyping platform (default: 'WGS') (choices: 'WGS',
881904 'Targeted')
882905 --assembly TEXT Reference genome assembly (default: 'GRCh37')
@@ -897,7 +920,7 @@ run-ngs-pipeline
897920 Do not plot copy number profile.
898921 --do-not-plot-allele-fraction
899922 Do not plot allele fraction profile.
900- --cnv-caller PATH Archive file with the semantic type Model[CNV]. By
923+ --cnv-caller PATH Archive file with the semantic type Model[CNV]. By
901924 default, a pre-trained CNV caller in the ~/pypgx-bundle
902925 directory will be used.
903926
@@ -913,17 +936,43 @@ run-ngs-pipeline
913936 CYP2D6-pipeline \
914937 --variants variants.vcf.gz \
915938 --depth-of-coverage depth-of-coverage.tsv \
916- --control-statistcs control-statistics-VDR.zip
939+ --control-statistics control-statistics-VDR.zip
917940
918941 [Example] To genotype the CYP2D6 gene from targeted sequencing data:
919942 $ pypgx run-ngs-pipeline \
920943 CYP2D6 \
921944 CYP2D6-pipeline \
922945 --variants variants.vcf.gz \
923946 --depth-of-coverage depth-of-coverage.tsv \
924- --control-statistcs control-statistics-VDR.zip \
947+ --control-statistics control-statistics-VDR.zip \
925948 --platform Targeted
926949
950+ slice-bam
951+ =========
952+
953+ .. code-block :: text
954+
955+ $ pypgx slice-bam -h
956+ usage: pypgx slice-bam [-h] [--assembly TEXT] [--genes TEXT [TEXT ...]]
957+ [--exclude]
958+ input output
959+
960+ Slice BAM file for all genes used by PyPGx.
961+
962+ Positional arguments:
963+ input Input BAM file. It must be already indexed to allow
964+ random access.
965+ output Output BAM file.
966+
967+ Optional arguments:
968+ -h, --help Show this help message and exit.
969+ --assembly TEXT Reference genome assembly (default: 'GRCh37')
970+ (choices: 'GRCh37', 'GRCh38').
971+ --genes TEXT [TEXT ...]
972+ List of genes to include.
973+ --exclude Exclude specified genes. Ignored when --genes is not
974+ used.
975+
927976 test-cnv-caller
928977===============
929978
0 commit comments