Skip to main content

A convenient phase program

Project description

ConvPhase

PyPI - Version PyPI - Python Version PyPI - License GitHub - Tests

A convenient phase program.

The purpose of this program is to combine PHASE and SeqPHASE into a single python package, while making some crucial configuration options available.

Unfortunately, internal communication between PHASE and SeqPHASE is done through Fasta files. However, an iterative protocol was implemented to parse and write common Python datatypes. It is also possible to work with TSV and Fasta variants (MolD, HapView) by leveraging Taxi2.

This is a computational backend. For the GUI application, please visit ConvPhaseGui.

Installation

ConvPhase is available on PyPI. You can install it through pip:

pip install itaxotools-convphase

Executables

Windows MacOS

Download and run the standalone executables without installing Python from the latest ConvPhaseGui release page.

No executables are currently provided for the command-line tool.

Usage

The package comes with a command-line tool:

convphase examples/simple.fas ambiguous.fas
convphase examples/simple.tsv phased.tsv -p 0.4 -q 0.4

The program will replicate the input file format for the output file.
Allele identifiers are appended to the individual identifiers.

The following options from PHASE are available:

  • phase threshold (-p)
  • allele threshold (-q)
  • number of iterations (-n)
  • thinning interval (-t)
  • burn-in (-b)

For some examples on how to use the Python API, please have look at the scripts folder.

Dependencies

Building from source requires:

PHASE and SeqPHASE are included as git submodules.
Taxi2 is included as a setuptools dependency.

Citations

Stephens, M., Smith, N., and Donnelly, P. (2001). A new statistical method for haplotype reconstruction from population data. American Journal of Human Genetics, 68, 978--989.

Stephens, M., and Donnelly, P. (2003). A comparison of Bayesian methods for haplotype reconstruction from population genotype data. American Journal of Human Genetics, 73:1162-1169.

Flot, J.F. (2010) seqphase: a web tool for interconverting phase input/output files and fasta sequence alignments. Mol. Ecol. Resour., 10, 162–166.

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

itaxotools_convphase-0.1.3.tar.gz (1.3 MB view hashes)

Uploaded Source

Built Distributions

itaxotools_convphase-0.1.3-cp312-cp312-win_amd64.whl (769.9 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

itaxotools_convphase-0.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

itaxotools_convphase-0.1.3-cp312-cp312-macosx_11_0_universal2.whl (1.8 MB view hashes)

Uploaded CPython 3.12 macOS 11.0+ universal2 (ARM64, x86-64)

itaxotools_convphase-0.1.3-cp312-cp312-macosx_11_0_arm64.whl (876.0 kB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

itaxotools_convphase-0.1.3-cp312-cp312-macosx_10_9_x86_64.whl (955.0 kB view hashes)

Uploaded CPython 3.12 macOS 10.9+ x86-64

itaxotools_convphase-0.1.3-cp311-cp311-win_amd64.whl (769.8 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

itaxotools_convphase-0.1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

itaxotools_convphase-0.1.3-cp311-cp311-macosx_11_0_universal2.whl (1.8 MB view hashes)

Uploaded CPython 3.11 macOS 11.0+ universal2 (ARM64, x86-64)

itaxotools_convphase-0.1.3-cp311-cp311-macosx_11_0_arm64.whl (876.0 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

itaxotools_convphase-0.1.3-cp311-cp311-macosx_10_9_x86_64.whl (954.9 kB view hashes)

Uploaded CPython 3.11 macOS 10.9+ x86-64

itaxotools_convphase-0.1.3-cp310-cp310-win_amd64.whl (769.8 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

itaxotools_convphase-0.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

itaxotools_convphase-0.1.3-cp310-cp310-macosx_11_0_universal2.whl (1.8 MB view hashes)

Uploaded CPython 3.10 macOS 11.0+ universal2 (ARM64, x86-64)

itaxotools_convphase-0.1.3-cp310-cp310-macosx_11_0_arm64.whl (876.0 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

itaxotools_convphase-0.1.3-cp310-cp310-macosx_10_9_x86_64.whl (954.9 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

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