fetch-features


Namefetch-features JSON
Version 0.2.9 PyPI version JSON
download
home_page
SummaryFetch features from a list of accession or BioSample numbers.
upload_time2023-07-04 22:00:21
maintainer
docs_urlNone
author
requires_python>=3.11
licenseBSD 3-Clause License
keywords unique identifier accession number biosample number genbank sequence features
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # fetch features

Fetch information from a list of accession of BioSample numbers.

## Installation

Create a virtual environment and install `fetch features` using pip as follows:

```bash
pip install fetch-features
```

## Usage and options

To view all the options run:

```bash
fetch_features --help
```

Output:

```
usage: fetch_features [-h] [-v] [-i INPUT] [-t TYPE] [-e EMAIL] [-o OUTPUT] [-s SAVE_AS]
                      [--access-biosample-from-accession] [--gui]

  __      _       _        __            _
 / _| ___| |_ ___| |__    / _| ___  __ _| |_ _   _ _ __ ___  ___
| |_ / _ \ __/ __| '_ \  | |_ / _ \/ _` | __| | | | '__/ _ \/ __|
|  _|  __/ || (__| | | | |  _|  __/ (_| | |_| |_| | | |  __/\__ \
|_|  \___|\__\___|_| |_| |_|  \___|\__,_|\__|\__,_|_|  \___||___/

Fetch features from a list of accession or BioSample numbers.

Help:
  -h, --help            Show this help message and exit.
  -v, --version         Show program's version number and exit

Required:
  -i INPUT, --input INPUT
                        Path to input file with list of unique identifiers (UIDs).
                        The user should provide the list of UIDs in a txt or xlsx file.
  -t TYPE, --type TYPE  Type of unique identifier: `accession` or `biosample`.
                        The `biosample` option fetches the information of the most
                        updated accession numbers associated with the BioSample number.
  -e EMAIL, --email EMAIL
                        Provide your email address to the NCBI.

Optional:
  -o OUTPUT, --output OUTPUT
                        Path to output folder (default current working directory).
  -s SAVE_AS, --save-as SAVE_AS
                        Save results as: `csv`, `excel`, or `csv-excel` (default `csv`).
  --access-biosample-from-accession
                        If you provide a list of accession numbers, get features of
                        all related accession numbers that belong to the same BioSample.
  --gui                 Activate GUI.
```

## Usage examples

1. The simplest command. The output is in the current working directoy.

```bash
fetch_features -i path/to/list.txt -t accession -e email@address.com
```

2. In this example, the output is in your Documents.

```bash
fetch_features -i path/to/list.txt -t accession -e email@address.com -o ~/Documents
```

3. If you prefer the GUI version.

```bash
fetch_features --gui
```

<p align='center'>
  <img src=https://github.com/ivanmugu/fetch_features/blob/main/images/fetch_features_gui.png />
</p>

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "fetch-features",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": "",
    "keywords": "unique identifier,accession number,BioSample number,GenBank,sequence features",
    "author": "",
    "author_email": "Ivan Mu\u00f1oz-Gutierrez <ivan.munoz.gutierrez@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/2b/db/d2f3d4dd1076587fd8a2c1136606c571f8464e926d9f492e4aaa2987859e/fetch_features-0.2.9.tar.gz",
    "platform": null,
    "description": "# fetch features\n\nFetch information from a list of accession of BioSample numbers.\n\n## Installation\n\nCreate a virtual environment and install `fetch features` using pip as follows:\n\n```bash\npip install fetch-features\n```\n\n## Usage and options\n\nTo view all the options run:\n\n```bash\nfetch_features --help\n```\n\nOutput:\n\n```\nusage: fetch_features [-h] [-v] [-i INPUT] [-t TYPE] [-e EMAIL] [-o OUTPUT] [-s SAVE_AS]\n                      [--access-biosample-from-accession] [--gui]\n\n  __      _       _        __            _\n / _| ___| |_ ___| |__    / _| ___  __ _| |_ _   _ _ __ ___  ___\n| |_ / _ \\ __/ __| '_ \\  | |_ / _ \\/ _` | __| | | | '__/ _ \\/ __|\n|  _|  __/ || (__| | | | |  _|  __/ (_| | |_| |_| | | |  __/\\__ \\\n|_|  \\___|\\__\\___|_| |_| |_|  \\___|\\__,_|\\__|\\__,_|_|  \\___||___/\n\nFetch features from a list of accession or BioSample numbers.\n\nHelp:\n  -h, --help            Show this help message and exit.\n  -v, --version         Show program's version number and exit\n\nRequired:\n  -i INPUT, --input INPUT\n                        Path to input file with list of unique identifiers (UIDs).\n                        The user should provide the list of UIDs in a txt or xlsx file.\n  -t TYPE, --type TYPE  Type of unique identifier: `accession` or `biosample`.\n                        The `biosample` option fetches the information of the most\n                        updated accession numbers associated with the BioSample number.\n  -e EMAIL, --email EMAIL\n                        Provide your email address to the NCBI.\n\nOptional:\n  -o OUTPUT, --output OUTPUT\n                        Path to output folder (default current working directory).\n  -s SAVE_AS, --save-as SAVE_AS\n                        Save results as: `csv`, `excel`, or `csv-excel` (default `csv`).\n  --access-biosample-from-accession\n                        If you provide a list of accession numbers, get features of\n                        all related accession numbers that belong to the same BioSample.\n  --gui                 Activate GUI.\n```\n\n## Usage examples\n\n1. The simplest command. The output is in the current working directoy.\n\n```bash\nfetch_features -i path/to/list.txt -t accession -e email@address.com\n```\n\n2. In this example, the output is in your Documents.\n\n```bash\nfetch_features -i path/to/list.txt -t accession -e email@address.com -o ~/Documents\n```\n\n3. If you prefer the GUI version.\n\n```bash\nfetch_features --gui\n```\n\n<p align='center'>\n  <img src=https://github.com/ivanmugu/fetch_features/blob/main/images/fetch_features_gui.png />\n</p>\n",
    "bugtrack_url": null,
    "license": "BSD 3-Clause License",
    "summary": "Fetch features from a list of accession or BioSample numbers.",
    "version": "0.2.9",
    "project_urls": {
        "Homepage": "https://github.com/ivanmugu/fetch_features"
    },
    "split_keywords": [
        "unique identifier",
        "accession number",
        "biosample number",
        "genbank",
        "sequence features"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b6e090d49908b1c064eeff4942335c62622de9e3575fbe2ec4ce4dcf0f33fa20",
                "md5": "03e6a7c00573183a369d70422dc1a920",
                "sha256": "aeed919b31f928cf06f54f578ee12c70a594d5895fa2379e11ab911b91d5ccae"
            },
            "downloads": -1,
            "filename": "fetch_features-0.2.9-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "03e6a7c00573183a369d70422dc1a920",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 22466,
            "upload_time": "2023-07-04T22:00:20",
            "upload_time_iso_8601": "2023-07-04T22:00:20.224164Z",
            "url": "https://files.pythonhosted.org/packages/b6/e0/90d49908b1c064eeff4942335c62622de9e3575fbe2ec4ce4dcf0f33fa20/fetch_features-0.2.9-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2bdbd2f3d4dd1076587fd8a2c1136606c571f8464e926d9f492e4aaa2987859e",
                "md5": "bff5e5e90c353625fd9eaf1e9e7870b9",
                "sha256": "acb50c9de499d960a3bc9f9621439f6628fc8f45a623f6ea84f6f2c8ff5adbe8"
            },
            "downloads": -1,
            "filename": "fetch_features-0.2.9.tar.gz",
            "has_sig": false,
            "md5_digest": "bff5e5e90c353625fd9eaf1e9e7870b9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 362991,
            "upload_time": "2023-07-04T22:00:21",
            "upload_time_iso_8601": "2023-07-04T22:00:21.985691Z",
            "url": "https://files.pythonhosted.org/packages/2b/db/d2f3d4dd1076587fd8a2c1136606c571f8464e926d9f492e4aaa2987859e/fetch_features-0.2.9.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-04 22:00:21",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ivanmugu",
    "github_project": "fetch_features",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "fetch-features"
}
        
Elapsed time: 0.08900s