Skip to main content

This hosts multiple scripts necessary for filtering and processing of variant calls in the vcfs/txt file generated by callers.

Project description

Post-processing of variant calls

This package provides a variety of commands for manipulating different types of common outputs (e.g. mafs, vcf and txt files) from different bioinformatic variant callers such as mutect and vardict.

Supported File Types:

Installation

For general use you can run: pip install postprocessing_variant_calls or a tagged version with pip install git+https://github.com/msk-access/postprocessing_variant_calls.git@<version>

For setting up a development environment please see the Setting up a Dev Environment section.

Usage

See CLI for commmand line usage of the package.

Setting up a Dev Environment

Install External Dependencies

Have an environment with python >= 3.8 installed.

Install poetry:

pip install poetry

Install Package Dependencies

Then install project dependencies with Poetry.

cd /path/to/postprocessing_variant_calls
poetry install .

Accessing Environment

To access the environment after initial setup up run:

poetry shell

Contributing to Documentation

The Gitbook for this repository is configured so changes are written in Gitbook and synced with the docs branch.

To contribute to the documentation, you can write your changes in Gitbook, request a review, and merge the changes. Keep in mind, you will need access to the organization to contribute.

Each file-type supported should have a section in the Gitbook detailing the implementation of the file-type and a justification of it's operations. For example, the maf file-type has it's own section, which includes a description of how a maf is defined internally in the package and a justification of it's operations and how to use them.

Beyond file-type sections, you will also notice a section called cli, which lists all commands in the postprocessing_variant_calls package. Do not manually edit this section. This section is created using the typer-cli package, which uses the typer help parameters specified in typer commands to generate documentation. It is automatically updated by the git-action, .github/workflows/document_package.yml upon a push to the main branch. To make sure the cli.md document updates to include newly added commands, specify all relevant typer help parameters.

If you'd like to see a mock of your typer commands as they'll appear in the cli.md document, you can run: poetry run typer postprocessing_variant_calls.main utils docs > docs/cli.md in a properly configured dev environment. Note that this file should not be included in your PRs. The cli.md should be only updated through the git-action, .github/workflows/document_package.yml.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

postprocessing_variant_calls-0.3.0.tar.gz (23.5 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file postprocessing_variant_calls-0.3.0.tar.gz.

File metadata

File hashes

Hashes for postprocessing_variant_calls-0.3.0.tar.gz
Algorithm Hash digest
SHA256 a950e8e7453fb8ff56ed841463aa47da2ebdaebdee7ec8e067da33883613479d
MD5 c62a3bc1f18d88c62a5728acc5544b17
BLAKE2b-256 b4960003a441570f8147786da5c9b94caf91d0a01e301ebc0f614b6ef3e4c0ed

See more details on using hashes here.

File details

Details for the file postprocessing_variant_calls-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for postprocessing_variant_calls-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b9e30d1e1f36e74305547ceeaa8fd74c047757bf533cb5361606e4187c9318f3
MD5 7187f6c3e9ed5233b445b0c648e569ed
BLAKE2b-256 9b7c7c15c6a7a35d1203d39e1434a30809cfc764e0feaaa7d0e7786796819ff8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page