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
73cdf25b
Commit
73cdf25b
authored
Sep 05, 2019
by
Amine GHOZLANE
Browse files
Check numeric values in biom sample_metadata
parent
b4721dac
Pipeline
#14361
passed with stages
in 98 minutes and 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Rfunctions/Data_Management.R
View file @
73cdf25b
...
...
@@ -538,7 +538,11 @@ GetDataFromBIOM <-function(dataBIOM)
if
(
!
is.null
(
target
))
{
# Convert from list to dataframe
target
=
as.data.frame
(
target
)
target
=
as.data.frame
(
target
)
# Check if numeric variable in the biom metadata
for
(
i
in
seq
(
1
,
dim
(
target
)[
2
])){
if
(
TRUE
%in%!
is.na
(
as.numeric
(
target
[,
i
])))
target
[,
i
]
=
as.numeric
(
target
[,
i
])
}
target
$
SampleID
=
rownames
(
target
)
target
=
subset
(
target
,
select
=
c
(
dim
(
target
)[
2
],
seq
(
1
,
dim
(
target
)[
2
]
-1
)))
}
...
...
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