Mercurial > repos > mingchen0919 > rmarkdown_collection_builder
comparison collection_list_paired.Rmd @ 8:f555686ca340 draft default tip
planemo upload for repository https://github.com/statonlab/docker-GRReport/tree/master/my_tools/rmarkdown_collection_builder commit 88ca36a41aa577ba888cee39cf81b176bf7e68db-dirty
author | mingchen0919 |
---|---|
date | Tue, 26 Sep 2017 16:22:18 -0400 |
parents | a0c8b2b25774 |
children |
comparison
equal
deleted
inserted
replaced
7:abf9cbd7578f | 8:f555686ca340 |
---|---|
38 # copy files to forward_files_directory. | 38 # copy files to forward_files_directory. |
39 file.copy(from_files, './forward_files_directory') | 39 file.copy(from_files, './forward_files_directory') |
40 # get original file names | 40 # get original file names |
41 original_files = list.files('./forward_files_directory') | 41 original_files = list.files('./forward_files_directory') |
42 # create new files names from original file names | 42 # create new files names from original file names |
43 new_files = gsub('\\.dat', '_forward\\.FORMAT', original_files) | |
44 new_files = paste0('input', 1:length(original_files), '_forward.FORMAT') | 43 new_files = paste0('input', 1:length(original_files), '_forward.FORMAT') |
45 new_files | |
46 # rename files | 44 # rename files |
47 file.copy(paste0('./forward_files_directory/', original_files), | 45 file.copy(paste0('./forward_files_directory/', original_files), |
48 paste0('./files_directory/', new_files)) | 46 paste0('./files_directory/', new_files)) |
49 ``` | 47 ``` |
50 | 48 |
58 # copy files to reverse_files_directory. | 56 # copy files to reverse_files_directory. |
59 file.copy(from_files, './reverse_files_directory') | 57 file.copy(from_files, './reverse_files_directory') |
60 # get original file names | 58 # get original file names |
61 original_files = list.files('./reverse_files_directory') | 59 original_files = list.files('./reverse_files_directory') |
62 # create new files names from original file names | 60 # create new files names from original file names |
63 new_files = gsub('\\.dat', '_reverse\\.FORMAT', original_files) | |
64 new_files = paste0('input', 1:length(original_files), '_reverse.FORMAT') | 61 new_files = paste0('input', 1:length(original_files), '_reverse.FORMAT') |
65 new_files | |
66 # rename files | 62 # rename files |
67 file.copy(paste0('./reverse_files_directory/', original_files), | 63 file.copy(paste0('./reverse_files_directory/', original_files), |
68 paste0('./files_directory/', new_files)) | 64 paste0('./files_directory/', new_files)) |
69 ``` | 65 ``` |