{"id":38544709,"url":"https://github.com/fertiglab/sra-tools-notes","last_synced_at":"2026-01-17T07:17:15.381Z","repository":{"id":72669677,"uuid":"223339948","full_name":"FertigLab/sra-tools-notes","owner":"FertigLab","description":"Some notes on sra-tools usage","archived":false,"fork":false,"pushed_at":"2019-12-02T07:10:24.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-25T15:36:23.625Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FertigLab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-11-22T06:38:19.000Z","updated_at":"2019-12-02T07:10:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"90402eaa-bdb6-41ab-baea-2ae4c052debc","html_url":"https://github.com/FertigLab/sra-tools-notes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FertigLab/sra-tools-notes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FertigLab%2Fsra-tools-notes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FertigLab%2Fsra-tools-notes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FertigLab%2Fsra-tools-notes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FertigLab%2Fsra-tools-notes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FertigLab","download_url":"https://codeload.github.com/FertigLab/sra-tools-notes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FertigLab%2Fsra-tools-notes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28503383,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-17T07:17:15.286Z","updated_at":"2026-01-17T07:17:15.355Z","avatar_url":"https://github.com/FertigLab.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Some notes on sra-tools usage\nIt is an outline of sra-tools usage routine. First, the copmputer (e.g. AWS instance) is to have enough memory (16G? -- maybe, 8G), and to have disk space to keep the raw data for at least one experiment. It could be 250Gish if we plan to work with RNASeq fastq/fasta.\n\n## Installation\nSra-tools as well the aligner or other tools are very convienient to be installed with conda. First, install conda itself. \nThe [conda installation instructions](https://docs.conda.io/projects/conda/en/latest/user-guide/install/linux.html) explains what to do with the [conda installation script](https://docs.conda.io/en/latest/miniconda.html \"Miniconda installtion script\"). To download the script using the command-line, you can use `wget` command in the shell. \n\nConda suggest to modify the shell prompt after installation. I wuold say no and just add conda/bin (usually, it is ~/mniconda3/bin) to path. Now, install [sra-tools](https://anaconda.org/bioconda/sra-tools \"sra-tooks installtion page in conda\"), [salmon](https://anaconda.org/bioconda/salmon \"salmon installtion page in conda\"). etc. You are to do it once for a new user, then sometimes [update conda](https://docs.conda.io/projects/conda/en/latest/commands/update.html) if you like.\n\n[Here are the detailed instruction how to install conda, sra-tools and salmon on aws instance](https://github.com/FertigLab/sra-tools-notes/blob/master/conda-on-aws-stepwise.md).\n\n## dbGaP key and folder\nUsually, the FastQ file is controlled thing and you are to have access. Technically, it means that you have the keyfile from dbGaP. Usually, its name is something like prj_NNNNNNN.ngc. NNNNN is a number of dbGaP -- our is 23539. To start working with the project, say:\n\n`vdb-config --import prj_23539.ngc`\n\nThe command will import the keyfile and it will create the project work folder ~/ncbi/dbGaP-23539 (project number is the dbGaP projret number you work with). It happens only once. All the commands like prefetch, fatq-dump, etc are to be run form this folder. You are not supposed to change the folder name.\n\n## dbGaP accession number\n\nTo download a dbGaP file using sra-tools, you are to know the file's SRR accesion ID. The [Run Selector](https://trace.ncbi.nlm.nih.gov/) website shows the IDs. Go to dbGaP page of the study, e.g. (https://www.ncbi.nlm.nih.gov/projects/gap/cgi-bin/study.cgi?study_id=phs001709.v1.p1), and in the left lower corner of 'Molecular datasets' tab click the 'Run selector' link. Choose the data type (e.g., 'RNA'), etc. Select all the files you need, and then download the text file with the SRR IDs of all the files you need (accesion list). Alternatively, you can download RuniInfoTable that contains a text table, a line per SRR, with SRR's as first field and a lot of other information. \n\n## FastQ \nUsually, we do not need all the fatstq files simultaneously -- so, the best option is to write a script that reads the SRR list, and for each SRR does the foolowing (again, the working folder for all sra-tools is: ~/ncbi/dbGaP-23539).\n\n`cd ~/ncbi/dbGaP-23539`\n\n`prefetch SRR10003688`\n\n`fastq-dump --split-files --outdir \u003cmy-fastq-path\u003e sra/SRR10003688.sra`\n\nNow, go to my-fastq-path and quantify the fatq files. Then, remove them and ~/ncbi/dbGaP-23539/sra/SRR10003688.sra. Here, SRR10003688 is the first SRR from the phs001709.v1.p1 project and it is a templeate for SRR.\n\nGood luck!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffertiglab%2Fsra-tools-notes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffertiglab%2Fsra-tools-notes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffertiglab%2Fsra-tools-notes/lists"}