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
319523d6
Commit
319523d6
authored
Sep 05, 2019
by
Amine GHOZLANE
Browse files
Fix strange random
parent
bf389c01
Pipeline
#14323
passed with stages
in 95 minutes and 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
server.R
View file @
319523d6
...
@@ -2112,7 +2112,9 @@ shinyServer(function(input, output,session) {
...
@@ -2112,7 +2112,9 @@ shinyServer(function(input, output,session) {
fakeCondition
=
c
(
"Samples"
,
"Samples"
,
"fakeCondition"
)
fakeCondition
=
c
(
"Samples"
,
"Samples"
,
"fakeCondition"
)
samples
=
colnames
(
CT
)
samples
=
colnames
(
CT
)
samples
=
gsub
(
pattern
=
"-"
,
replacement
=
"."
,
as.character
(
samples
))
samples
=
gsub
(
pattern
=
"-"
,
replacement
=
"."
,
as.character
(
samples
))
condition
=
sample
(
c
(
"A"
,
"B"
),
length
(
samples
),
replace
=
T
)
# random is disappointing
#condition = sample(c("A", "B"), length(samples), replace =T)
condition
=
c
(
rep
(
"A"
,
round
(
length
(
samples
)
/
2
,
0
)),
rep
(
"B"
,
length
(
samples
)
-
round
(
length
(
samples
)
/
2
,
0
)))
target
=
data.frame
(
samples
,
samples
,
condition
,
row.names
=
samples
)
target
=
data.frame
(
samples
,
samples
,
condition
,
row.names
=
samples
)
colnames
(
target
)
=
fakeCondition
colnames
(
target
)
=
fakeCondition
values
$
TargetWorking
=
target
values
$
TargetWorking
=
target
...
...
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