Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Feel free to join the next
Helmholtz Hacky Hour #26
on Wednesday, April 21, 2021 from 2PM to 3PM!
Open sidebar
UMBSysBio
CMP
Commits
64b2097b
Commit
64b2097b
authored
Feb 18, 2020
by
Florian Centler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update AnnotationCombine.r
parent
36b31899
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
AnnotationCombine.r
AnnotationCombine.r
+12
-0
No files found.
AnnotationCombine.r
View file @
64b2097b
...
...
@@ -59,3 +59,15 @@ myTable <- table(data$Species, data$Level1, useNA="always")
#colnames(myTable)[ncol(myTable)] <- "unclassified"
write.table
(
myTable
,
"myTable_sampleID_taxa-vs-fct.txt"
,
sep
=
"\t"
)
# Visualization starts here ...
plotData
<-
as.data.frame.matrix
(
myTable
)
rownames
(
plotData
)[
nrow
(
plotData
)]
<-
"unclassified"
colnames
(
plotData
)[
ncol
(
plotData
)]
<-
"unclassified"
colFunc
<-
colorRampPalette
(
c
(
"white"
,
"steelblue"
))
#heatmap(as.matrix(plotData), Rowv=NA, Colv=NA, col=colFunc(256), scale="none")
#heatmap(as.matrix(plotData), col=colFunc(256), scale="row")
heatmap
(
as.matrix
(
plotData
),
Rowv
=
NA
,
Colv
=
NA
,
col
=
colFunc
(
256
),
scale
=
"row"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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