comparison bdss_client.Rmd @ 13:03893b1ee3ef 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 14:04:57 -0400
parents bfc6133f3a2b
children c0b8476fbc85
comparison
equal deleted inserted replaced
12:bfc6133f3a2b 13:03893b1ee3ef
37 # download and extract reads 37 # download and extract reads
38 urls = strsplit(gsub(',', ' ', 'URLS'), ' ')[[1]] 38 urls = strsplit(gsub(',', ' ', 'URLS'), ' ')[[1]]
39 urls = urls[urls != ''] 39 urls = urls[urls != '']
40 # loop through SRA accessions to download and extract reads. 40 # loop through SRA accessions to download and extract reads.
41 for(url in urls) { 41 for(url in urls) {
42 bdss_command = paste0('/tool_deps/_conda/bin/bdss transfer -u ', url) 42 bdss_command = paste0('cd ./read_files_directory && /tool_deps/_conda/bin/bdss transfer -u ', url)
43 system(bdss_command) 43 system(bdss_command)
44 } 44 }
45 move_files_command = 'find . -type f -print0 | xargs -0 mv -t ./read_files_directory'
46 system(move_files_command)
47 ``` 45 ```
48 46
49 * `fastq-dump` command 47 * `fastq-dump` command
50 ```{r} 48 ```{r}
51 print(command) 49 print(command)