Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Amine GHOZLANE
shaman
Commits
1b6cc94e
Commit
1b6cc94e
authored
Sep 26, 2017
by
Amine GHOZLANE
Browse files
Change from copy to move
parent
5a3c68ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
server.R
View file @
1b6cc94e
...
...
@@ -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
)}
})
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment