miSRA


NamemiSRA JSON
Version 0.0.3 PyPI version JSON
download
home_page
SummaryA command-line interface to the miSRA API. It allow to remotely query over 90,000 miRNA-seq samples from the Sequence Read Archive
upload_time2023-07-13 10:31:50
maintainer
docs_urlNone
author
requires_python>=3.7.0
license
keywords
VCS
bugtrack_url
requirements requests
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # miSRA
a command line tool to remotely query over 90,000 miRNA-seq samples from the Sequence Read Archive.  
For more info, please visit the [GitHub repository](https://github.com/bioinfoUGR/miSRA).

## Dependencies
miSRA requires Python >= 3.7 and the python package *requests* (automatically installed by *pip*)

## How to install
### (*optional but recommended*) Create a virtual environment and activate it

    python3 -m venv env
    source env/bin/activate

### Install with *pip* (recommended)

    pip3 install miSRA
    # to test that it worked
    miSRA --help



## Run miSRA:

    miSRA --config your_config.json
An example [*config.json*](https://github.com/bioinfoUGR/miSRA/tree/master/src/example_configs/miSRA_example_config.json) could include the following parameters (for a detailed explanation of the different query modes, [see **miSRA modes** ](##miSRA-modes)):
    
    {
        "mode":"mirna",  # There are different modes to query miSRA (mirna, lib and spike). The mode mirna performs alignments to miRNA annotations using sRNAbench
        
        # mirna mode requires 2 miRNA annotation files, one for mature miRNAs and one for hairpins
        "mature":"mature_hsa.fa", # path to mature miRNA annotations in fasta format
        "hairpin":"hairpin_hsa.fa", # path to hairpin miRNA annotations in fasta format
        
        # you can specify which samples you want to profile either by specifying comma-separated SRA study or experiment accessions
        "studies":"SRP225193", # profile all samples from this study
        # "experiments":"SRX2349199,SRX2349197,SRX546025,SRX546026", # this would include these experiments
        
        "localOut":"RNAatlas", # local folder where the results will be downloaded to
        "mm": "1", # number of mismatches (optional)
        "alignType":"v" # bowtie alignment type (optional)
    }

One could also download information about the database content. The following command will generate a file in the 
current working directory including the number of available samples and studies per species.

    miSRA --db-stat

To obtain all samples and studies available for a specific species, you can do:

    miSRA --taxonID TAXON_ID
    ## Where TAXON_ID is NCBI's taxonID. For instance, for human:
    miSRA --taxonID 9606

## miSRA modes:
There are 3 main modes to query samples in miSRA:
* **miRNA**: mature and hairpin miRNA sequences are used for profiling
* **library**: long reference sequences are used for profiling and mappings of reads to these sequences will be reported
* **spike**: short reference sequences are provided and only exact matches will be reported

For more info, please visit the [GitHub repository](https://github.com/bioinfoUGR/miSRA) or the tool [manual](https://github.com/bioinfoUGR/miSRA/blob/main/manual.pdf). 

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "miSRA",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "",
    "author_email": "Michael Hackenberg <hackenberg@go.ugr.es>, Ernesto Aparicio <eaparicioeaparicio@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/e6/2a/d5068ec4cd8a5721be420de8fb3565de1b2e3862f98cf55e193c8e28f89c/misra-0.0.3.tar.gz",
    "platform": null,
    "description": "# miSRA\na command line tool to remotely query over 90,000 miRNA-seq samples from the Sequence Read Archive.  \nFor more info, please visit the [GitHub repository](https://github.com/bioinfoUGR/miSRA).\n\n## Dependencies\nmiSRA requires Python >= 3.7 and the python package *requests* (automatically installed by *pip*)\n\n## How to install\n### (*optional but recommended*) Create a virtual environment and activate it\n\n    python3 -m venv env\n    source env/bin/activate\n\n### Install with *pip* (recommended)\n\n    pip3 install miSRA\n    # to test that it worked\n    miSRA --help\n\n\n\n## Run miSRA:\n\n    miSRA --config your_config.json\nAn example [*config.json*](https://github.com/bioinfoUGR/miSRA/tree/master/src/example_configs/miSRA_example_config.json) could include the following parameters (for a detailed explanation of the different query modes, [see **miSRA modes** ](##miSRA-modes)):\n    \n    {\n        \"mode\":\"mirna\",  # There are different modes to query miSRA (mirna, lib and spike). The mode mirna performs alignments to miRNA annotations using sRNAbench\n        \n        # mirna mode requires 2 miRNA annotation files, one for mature miRNAs and one for hairpins\n        \"mature\":\"mature_hsa.fa\", # path to mature miRNA annotations in fasta format\n        \"hairpin\":\"hairpin_hsa.fa\", # path to hairpin miRNA annotations in fasta format\n        \n        # you can specify which samples you want to profile either by specifying comma-separated SRA study or experiment accessions\n        \"studies\":\"SRP225193\", # profile all samples from this study\n        # \"experiments\":\"SRX2349199,SRX2349197,SRX546025,SRX546026\", # this would include these experiments\n        \n        \"localOut\":\"RNAatlas\", # local folder where the results will be downloaded to\n        \"mm\": \"1\", # number of mismatches (optional)\n        \"alignType\":\"v\" # bowtie alignment type (optional)\n    }\n\nOne could also download information about the database content. The following command will generate a file in the \ncurrent working directory including the number of available samples and studies per species.\n\n    miSRA --db-stat\n\nTo obtain all samples and studies available for a specific species, you can do:\n\n    miSRA --taxonID TAXON_ID\n    ## Where TAXON_ID is NCBI's taxonID. For instance, for human:\n    miSRA --taxonID 9606\n\n## miSRA modes:\nThere are 3 main modes to query samples in miSRA:\n* **miRNA**: mature and hairpin miRNA sequences are used for profiling\n* **library**: long reference sequences are used for profiling and mappings of reads to these sequences will be reported\n* **spike**: short reference sequences are provided and only exact matches will be reported\n\nFor more info, please visit the [GitHub repository](https://github.com/bioinfoUGR/miSRA) or the tool [manual](https://github.com/bioinfoUGR/miSRA/blob/main/manual.pdf). \n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A command-line interface to the miSRA API. It allow to remotely query over 90,000 miRNA-seq samples from the Sequence Read Archive",
    "version": "0.0.3",
    "project_urls": {
        "Bug Tracker": "https://github.com/bioinfoUGR/miSRA/issues",
        "Homepage": "https://github.com/bioinfoUGR/miSRA"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ae280c9c9220ef6e3df9723c238da56737632003d1ece76736696f4fab5bc745",
                "md5": "6956e9a884f113ddac35bf4d611826ce",
                "sha256": "1e48ba33d807c5128c39c2cdbf5bfa4268458fef5a5161483da61d509343d633"
            },
            "downloads": -1,
            "filename": "misra-0.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6956e9a884f113ddac35bf4d611826ce",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7.0",
            "size": 9604,
            "upload_time": "2023-07-13T10:31:48",
            "upload_time_iso_8601": "2023-07-13T10:31:48.956575Z",
            "url": "https://files.pythonhosted.org/packages/ae/28/0c9c9220ef6e3df9723c238da56737632003d1ece76736696f4fab5bc745/misra-0.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e62ad5068ec4cd8a5721be420de8fb3565de1b2e3862f98cf55e193c8e28f89c",
                "md5": "e89f161dc6252c601c3bf1b34f6569af",
                "sha256": "9a3f40ecf23e1ad92b6591fe4a96ed6fd70a018c0e5ec2ce51b2c3a7a0e00edc"
            },
            "downloads": -1,
            "filename": "misra-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "e89f161dc6252c601c3bf1b34f6569af",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7.0",
            "size": 8130,
            "upload_time": "2023-07-13T10:31:50",
            "upload_time_iso_8601": "2023-07-13T10:31:50.789593Z",
            "url": "https://files.pythonhosted.org/packages/e6/2a/d5068ec4cd8a5721be420de8fb3565de1b2e3862f98cf55e193c8e28f89c/misra-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-13 10:31:50",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "bioinfoUGR",
    "github_project": "miSRA",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "requests",
            "specs": []
        }
    ],
    "lcname": "misra"
}
        
Elapsed time: 0.20568s