bio


Namebio JSON
Version 1.7.0 PyPI version JSON
download
home_pageNone
SummaryNone
upload_time2024-04-09 17:48:35
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # bio: making bioinformatics fun again

`bio` - command-line utilities to make bioinformatics explorations more enjoyable.

`bio` is a bioinformatics toy to play with.

Like LEGO pieces that match one another `bio` aims to provide you with commands that naturally fit together and let you express your intent with short, explicit and simple commands. It is a project in an exploratory phase, we'd welcome input and suggestions on what it should grow up into.

## What does this software do?


If you've ever done bioinformatics, you know how even seemingly straightforward tasks require multiple steps, arcane incantations, and various other preparations that slow down progress. 

Even well-defined, supposedly simple tasks can take a seemingly inordinate number of complicated steps. The `bio` package is meant to solve that tedium. 

## Usage examples

    # Fetch genbank data
    bio fetch NC_045512 MN996532 > genomes.gb

    # Convert the first then bases of the genomes to FASTA.
    bio fasta genomes.gb --end 10

    # Align the coding sequences for the S protein
    bio fasta genomes.gb --gene S --protein | bio align | head

    # Print the GFF record that corresponds to the coding sequence for gene S
    bio gff genomes.gb --gene S 

    # Show the descendants of taxid 117565
    bio taxon 117565 | head

    # Show the lineage of a taxonomic rank.
    bio taxon 117565 --lineage | head

    # Get metadata on a viral sample
    bio meta 11138 -H | head

    # Define a sequence ontology terms
    bio define exon

    # Define a gene ontology terms
    bio define food vacuole

## Documentation

Detailed documentation is maintained at

* https://www.bioinfo.help/

## Quick install
    
`bio` works on Linux and Mac computers and on Windows when using the Linux Subsystem. 

As a rule, all Python based command line utilities should be installed via [pipx][pipx] to avoid conflicts with other Python packages:

[pipx]: https://pipx.pypa.io/stable/

    pipx install bio 

Alternatively, if you can also use `pip` to install:

    pip install bio 
            
See more details in the [documentation][docs].

## `bio` is stream oriented

`bio` supports stream oriented programming where the output of one task may be chained into the second. Take the example above
but now start with a file `acc.txt` that contains just the accession numbers:

    NC_045512
    MN996532

we can run `bio` to generate a VCF file with the variants of the S nucleotides forming the S protein like so:

    cat acc.txt | bio fetch | bio fasta --gene S | bio align --vcf | head

to print:

    ##fileformat=VCFv4.2
    ##FORMAT=<ID=GT,Number=1,Type=String,Description="Genotype">
    ##FILTER=<ID=PASS,Description="All filters passed">
    ##INFO=<ID=TYPE,Number=1,Type=String,Description="Type of the variant">
    ##contig=<ID=YP_009724390.1,length=3822,assembly=YP_009724390.1>
    #CHROM  POS     ID      REF     ALT     QUAL    FILTER  INFO    FORMAT  QHR63300.2
    YP_009724390.1  33      33C/T   C       T       .       PASS    TYPE=SNP        GT      1
    YP_009724390.1  54      54T/A   T       A       .       PASS    TYPE=SNP        GT      1
    YP_009724390.1  60      60C/T   C       T       .       PASS    TYPE=SNP        GT      1
    YP_009724390.1  69      69A/G   A       G       .       PASS    TYPE=SNP        GT      1


## Who is `bio` designed for?

The software was written to teach bioinformatics and is the companion software to the [Biostar Handbook][handbook] textbook. The targeted audience comprises:

- Students learning about bioinformatics.
- Bioinformatics educators who need a platform to demonstrate bioinformatics concepts. 
- Scientists working with large numbers of similar genomes (bacterial/viral strains).
- Scientists who need to investigate and understand the precise details of a genomic region closely.

The ideas and motivations fueling `bio` have been developed while educating the many cohorts of students who used the handbook in the classroom. `bio` is an opinionated take on how bioinformatics, particularly data representation and access, should be simplified and streamlined.

[handbook]: https://www.biostarhandbook.com/
[docs]: https://www.bioinfo.help/

## Development

If you clone the repository, we recommend that you install it as a development package with:

    python setup.py develop
    
## Testing

`bio` can test itself, to run all tests execute:

    bio test

Tests are automatically built from a shell script that mimics real-life usage scenarios.

* https://github.com/ialbert/bio/blob/master/test/usage.sh

## Generating documentation

To generate the docs, you will need the `bookdown` package:

    conda install r-bookdown r-servr
    
To run the docs in a browse:
    
    make 
    
then visit http://localhost:8000


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "bio",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": "Istvan Albert <istvan.albert@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/4c/2f/7aa2094dd9483c3580301d3f75ef73ba9574d9fd7fbb50cd8e2cf32cbdf7/bio-1.7.0.tar.gz",
    "platform": null,
    "description": "# bio: making bioinformatics fun again\n\n`bio` - command-line utilities to make bioinformatics explorations more enjoyable.\n\n`bio` is a bioinformatics toy to play with.\n\nLike LEGO pieces that match one another `bio` aims to provide you with commands that naturally fit together and let you express your intent with short, explicit and simple commands. It is a project in an exploratory phase, we'd welcome input and suggestions on what it should grow up into.\n\n## What does this software do?\n\n\nIf you've ever done bioinformatics, you know how even seemingly straightforward tasks require multiple steps, arcane incantations, and various other preparations that slow down progress. \n\nEven well-defined, supposedly simple tasks can take a seemingly inordinate number of complicated steps. The `bio` package is meant to solve that tedium. \n\n## Usage examples\n\n    # Fetch genbank data\n    bio fetch NC_045512 MN996532 > genomes.gb\n\n    # Convert the first then bases of the genomes to FASTA.\n    bio fasta genomes.gb --end 10\n\n    # Align the coding sequences for the S protein\n    bio fasta genomes.gb --gene S --protein | bio align | head\n\n    # Print the GFF record that corresponds to the coding sequence for gene S\n    bio gff genomes.gb --gene S \n\n    # Show the descendants of taxid 117565\n    bio taxon 117565 | head\n\n    # Show the lineage of a taxonomic rank.\n    bio taxon 117565 --lineage | head\n\n    # Get metadata on a viral sample\n    bio meta 11138 -H | head\n\n    # Define a sequence ontology terms\n    bio define exon\n\n    # Define a gene ontology terms\n    bio define food vacuole\n\n## Documentation\n\nDetailed documentation is maintained at\n\n* https://www.bioinfo.help/\n\n## Quick install\n    \n`bio` works on Linux and Mac computers and on Windows when using the Linux Subsystem. \n\nAs a rule, all Python based command line utilities should be installed via [pipx][pipx] to avoid conflicts with other Python packages:\n\n[pipx]: https://pipx.pypa.io/stable/\n\n    pipx install bio \n\nAlternatively, if you can also use `pip` to install:\n\n    pip install bio \n            \nSee more details in the [documentation][docs].\n\n## `bio` is stream oriented\n\n`bio` supports stream oriented programming where the output of one task may be chained into the second. Take the example above\nbut now start with a file `acc.txt` that contains just the accession numbers:\n\n    NC_045512\n    MN996532\n\nwe can run `bio` to generate a VCF file with the variants of the S nucleotides forming the S protein like so:\n\n    cat acc.txt | bio fetch | bio fasta --gene S | bio align --vcf | head\n\nto print:\n\n    ##fileformat=VCFv4.2\n    ##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n    ##FILTER=<ID=PASS,Description=\"All filters passed\">\n    ##INFO=<ID=TYPE,Number=1,Type=String,Description=\"Type of the variant\">\n    ##contig=<ID=YP_009724390.1,length=3822,assembly=YP_009724390.1>\n    #CHROM  POS     ID      REF     ALT     QUAL    FILTER  INFO    FORMAT  QHR63300.2\n    YP_009724390.1  33      33C/T   C       T       .       PASS    TYPE=SNP        GT      1\n    YP_009724390.1  54      54T/A   T       A       .       PASS    TYPE=SNP        GT      1\n    YP_009724390.1  60      60C/T   C       T       .       PASS    TYPE=SNP        GT      1\n    YP_009724390.1  69      69A/G   A       G       .       PASS    TYPE=SNP        GT      1\n\n\n## Who is `bio` designed for?\n\nThe software was written to teach bioinformatics and is the companion software to the [Biostar Handbook][handbook] textbook. The targeted audience comprises:\n\n- Students learning about bioinformatics.\n- Bioinformatics educators who need a platform to demonstrate bioinformatics concepts. \n- Scientists working with large numbers of similar genomes (bacterial/viral strains).\n- Scientists who need to investigate and understand the precise details of a genomic region closely.\n\nThe ideas and motivations fueling `bio` have been developed while educating the many cohorts of students who used the handbook in the classroom. `bio` is an opinionated take on how bioinformatics, particularly data representation and access, should be simplified and streamlined.\n\n[handbook]: https://www.biostarhandbook.com/\n[docs]: https://www.bioinfo.help/\n\n## Development\n\nIf you clone the repository, we recommend that you install it as a development package with:\n\n    python setup.py develop\n    \n## Testing\n\n`bio` can test itself, to run all tests execute:\n\n    bio test\n\nTests are automatically built from a shell script that mimics real-life usage scenarios.\n\n* https://github.com/ialbert/bio/blob/master/test/usage.sh\n\n## Generating documentation\n\nTo generate the docs, you will need the `bookdown` package:\n\n    conda install r-bookdown r-servr\n    \nTo run the docs in a browse:\n    \n    make \n    \nthen visit http://localhost:8000\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": null,
    "version": "1.7.0",
    "project_urls": {
        "Documentation": "https://github.com/ialbert/bio#readme",
        "Issues": "https://github.com/ialbert/bio/issues",
        "Source": "https://github.com/ialbert/bio/"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "76d335115c00babbbcbd0580a8fb8cc6a49dd0ea2752913852703143d17997c7",
                "md5": "b5514e840d56ea5f26053e965e7178f2",
                "sha256": "cda694d8ae05f5316f5010e025c028b0b95ddbada1d0a7f20a48c4b9801fc9c7"
            },
            "downloads": -1,
            "filename": "bio-1.7.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b5514e840d56ea5f26053e965e7178f2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 279182,
            "upload_time": "2024-04-09T17:48:33",
            "upload_time_iso_8601": "2024-04-09T17:48:33.966959Z",
            "url": "https://files.pythonhosted.org/packages/76/d3/35115c00babbbcbd0580a8fb8cc6a49dd0ea2752913852703143d17997c7/bio-1.7.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "4c2f7aa2094dd9483c3580301d3f75ef73ba9574d9fd7fbb50cd8e2cf32cbdf7",
                "md5": "9d8108956ab5860cef9d615be84d77ef",
                "sha256": "0a3724c235d63c2c69d0630cd90224b33172be2381abb9361774c6f0aa0ae453"
            },
            "downloads": -1,
            "filename": "bio-1.7.0.tar.gz",
            "has_sig": false,
            "md5_digest": "9d8108956ab5860cef9d615be84d77ef",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 9133756,
            "upload_time": "2024-04-09T17:48:35",
            "upload_time_iso_8601": "2024-04-09T17:48:35.920639Z",
            "url": "https://files.pythonhosted.org/packages/4c/2f/7aa2094dd9483c3580301d3f75ef73ba9574d9fd7fbb50cd8e2cf32cbdf7/bio-1.7.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-09 17:48:35",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ialbert",
    "github_project": "bio#readme",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "bio"
}
        
Elapsed time: 0.21905s