vcf2fasta


Namevcf2fasta JSON
Version 0.1.2 PyPI version JSON
download
home_pageNone
SummaryA package to convert VCF files to FASTA format.
upload_time2025-07-29 02:35:16
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseMIT License Copyright (c) 2023 Santiago Sanchez Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 1. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 2. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords vcf fasta bioinformatics genomics
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # vcf2fasta

> **this package is not actively maintained**

## Overview
`vcf2fasta` is a Python package designed to convert genomic regions and intervals into FASTA alignments using VCF files, GFF/GTF files, and a reference FASTA genome. This tool is particularly useful for bioinformaticians and researchers working with genomic data.

## Features
- Convert VCF files to FASTA format.
- Support for GFF/GTF and BED files for feature annotation.
- Options to include reference sequences and handle incomplete CDS.
- Command-line interface for easy usage.

## Installation
To install `vcf2fasta`, you can use pip:

```bash
pip install vcf2fasta
```

## Build
Build the package locally with:

```
python3 -m pip install -e .
```

## Usage
To use `vcf2fasta`, you can run the command line interface with the required arguments. Here is an example:

```bash
vcf2fasta -f genome.fas -v variants.vcf.gz -g intervals.gff -e CDS
```

### Command Line Options
- `-f`, `--fasta`: Path to the reference FASTA file (required).
- `-v`, `--vcf`: Path to the tabix-indexed VCF file (required).
- `-g`, `--gff`: Path to the GFF/GTF file (optional).
- `-b`, `--blend`: Concatenate GFF entries of the specified feature into a single alignment (default: False).
- `-i`, `--inframe`: Force the first codon of the sequence to be inframe (default: False).
- `-o`, `--out`: Name for the output directory (default: "vcf2fasta").
- `-r`, `--addref`: Include the reference sequence in the FASTA alignment (default: False).
- `-s`, `--skip`: Skip features without variants (default: False).

## Contribution
Contributions are welcome! If you would like to contribute to `vcf2fasta`, please fork the repository and submit a pull request. You can also open issues for any bugs or feature requests.

## License
This project is licensed under the MIT License. See the LICENSE file for more details.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "vcf2fasta",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "vcf, fasta, bioinformatics, genomics",
    "author": null,
    "author_email": "Santiago Sanchez <santiago.sanchez@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/89/43/7dca61107966a140f91f0284e28e52e4333b10f4fba500cf5d5014eb0132/vcf2fasta-0.1.2.tar.gz",
    "platform": null,
    "description": "# vcf2fasta\n\n> **this package is not actively maintained**\n\n## Overview\n`vcf2fasta` is a Python package designed to convert genomic regions and intervals into FASTA alignments using VCF files, GFF/GTF files, and a reference FASTA genome. This tool is particularly useful for bioinformaticians and researchers working with genomic data.\n\n## Features\n- Convert VCF files to FASTA format.\n- Support for GFF/GTF and BED files for feature annotation.\n- Options to include reference sequences and handle incomplete CDS.\n- Command-line interface for easy usage.\n\n## Installation\nTo install `vcf2fasta`, you can use pip:\n\n```bash\npip install vcf2fasta\n```\n\n## Build\nBuild the package locally with:\n\n```\npython3 -m pip install -e .\n```\n\n## Usage\nTo use `vcf2fasta`, you can run the command line interface with the required arguments. Here is an example:\n\n```bash\nvcf2fasta -f genome.fas -v variants.vcf.gz -g intervals.gff -e CDS\n```\n\n### Command Line Options\n- `-f`, `--fasta`: Path to the reference FASTA file (required).\n- `-v`, `--vcf`: Path to the tabix-indexed VCF file (required).\n- `-g`, `--gff`: Path to the GFF/GTF file (optional).\n- `-b`, `--blend`: Concatenate GFF entries of the specified feature into a single alignment (default: False).\n- `-i`, `--inframe`: Force the first codon of the sequence to be inframe (default: False).\n- `-o`, `--out`: Name for the output directory (default: \"vcf2fasta\").\n- `-r`, `--addref`: Include the reference sequence in the FASTA alignment (default: False).\n- `-s`, `--skip`: Skip features without variants (default: False).\n\n## Contribution\nContributions are welcome! If you would like to contribute to `vcf2fasta`, please fork the repository and submit a pull request. You can also open issues for any bugs or feature requests.\n\n## License\nThis project is licensed under the MIT License. See the LICENSE file for more details.\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2023 Santiago Sanchez  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  1. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  2. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "A package to convert VCF files to FASTA format.",
    "version": "0.1.2",
    "project_urls": {
        "Homepage": "https://github.com/santiagosnchez/vcf2fasta",
        "Repository": "https://github.com/santiagosnchez/vcf2fasta"
    },
    "split_keywords": [
        "vcf",
        " fasta",
        " bioinformatics",
        " genomics"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "93fa8cb37f85877def5ff22da092397e7bdfe7fefa31dda7c91e29af726b78ad",
                "md5": "0668ac39241339d3ef7cb4292126d6b8",
                "sha256": "2823414afe95cde38d44aef03c76d7cb7f82df67d61e209939fc735fa6ca2da2"
            },
            "downloads": -1,
            "filename": "vcf2fasta-0.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0668ac39241339d3ef7cb4292126d6b8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 10412,
            "upload_time": "2025-07-29T02:35:15",
            "upload_time_iso_8601": "2025-07-29T02:35:15.771001Z",
            "url": "https://files.pythonhosted.org/packages/93/fa/8cb37f85877def5ff22da092397e7bdfe7fefa31dda7c91e29af726b78ad/vcf2fasta-0.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "89437dca61107966a140f91f0284e28e52e4333b10f4fba500cf5d5014eb0132",
                "md5": "bebec3a84f46e3c04c77948db776d45b",
                "sha256": "5a19f6cd18174b82949b1bf18ce80ec6c70f563ab6757dc495f07564ae47de1d"
            },
            "downloads": -1,
            "filename": "vcf2fasta-0.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "bebec3a84f46e3c04c77948db776d45b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 10424,
            "upload_time": "2025-07-29T02:35:16",
            "upload_time_iso_8601": "2025-07-29T02:35:16.558090Z",
            "url": "https://files.pythonhosted.org/packages/89/43/7dca61107966a140f91f0284e28e52e4333b10f4fba500cf5d5014eb0132/vcf2fasta-0.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-29 02:35:16",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "santiagosnchez",
    "github_project": "vcf2fasta",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "vcf2fasta"
}
        
Elapsed time: 1.52860s