Commit 1b6cc94e authored by Amine  GHOZLANE's avatar Amine GHOZLANE
Browse files

Change from copy to move

parent 5a3c68ab
......@@ -781,13 +781,13 @@ shinyServer(function(input, output,session) {
if(dir.exists(pathToR2)){file.remove(list.files(pathToR2,full.names =TRUE))} else dir.create(pathToR2)
for(i in values$R1fastQ){
ind=which(i==values$paths_fastq_tmp[,"name"])[1]
file.copy(from=values$paths_fastq_tmp[,"datapath"][ind], to=paste(tmp,"Masque_files_R1",i,sep= .Platform$file.sep))
file.rename(from=values$paths_fastq_tmp[,"datapath"][ind], to=paste(tmp,"Masque_files_R1",i,sep= .Platform$file.sep))
cmp = cmp +1
incProgress(cmp/nfiles, detail = "Forward fastq files...")
}
for(i in values$R2fastQ){
ind=which(i==values$paths_fastq_tmp[,"name"])[1]
file.copy(from=values$paths_fastq_tmp[,"datapath"][ind], to=paste(tmp,"Masque_files_R2",i,sep= .Platform$file.sep))
file.rename(from=values$paths_fastq_tmp[,"datapath"][ind], to=paste(tmp,"Masque_files_R2",i,sep= .Platform$file.sep))
cmp = cmp +1
incProgress(cmp/nfiles, detail = "Reverse fastq files...")
}
......@@ -806,7 +806,7 @@ shinyServer(function(input, output,session) {
for(i in values$fastq_names_only){
ind=which(i==values$paths_fastq_tmp[,"name"])[1]
file.copy(from=values$paths_fastq_tmp[,"datapath"][ind], to=paste(tmp,"Masque_files",i,sep= .Platform$file.sep));cmp = cmp +1;incProgress(cmp/nfiles)}
file.rename(from=values$paths_fastq_tmp[,"datapath"][ind], to=paste(tmp,"Masque_files",i,sep= .Platform$file.sep));cmp = cmp +1;incProgress(cmp/nfiles)}
})
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment