Mercurial > repos > mingchen0919 > rmarkdown_bdss_client
diff bdss_client_sra_se.Rmd @ 7:efb1938c3020 draft
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_bdss_client commit ea6df97960569d247d64be1549aa90768c9786f4-dirty
author | mingchen0919 |
---|---|
date | Wed, 11 Oct 2017 13:21:54 -0400 |
parents | c707a4178832 |
children | fe5f30584308 |
line wrap: on
line diff
--- a/bdss_client_sra_se.Rmd Wed Oct 11 11:49:19 2017 -0400 +++ b/bdss_client_sra_se.Rmd Wed Oct 11 13:21:54 2017 -0400 @@ -42,7 +42,8 @@ ## if SRA_BOOLEAN is TRUE, download .sra file and then convert it to fastq/fasta if (SRA_BOOLEAN) { # build URL from SRA accession - url = paste0('ftp://ftp.ncbi.nlm.nih.gov/sra/sra-instant/reads/ByRun/sra/SRR/', + url = paste0('ftp://ftp.ncbi.nlm.nih.gov/sra/sra-instant/reads/ByRun/sra/', + substr(id, 1, 3), '/', substr(id, 1, 6), '/', id, '/', id, '.sra') # download sra file with bdss bdss_command = paste0('/tool_deps/_conda/bin/bdss transfer -u ', url)