Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alipirani88 committed Apr 22, 2021
1 parent eee1fb9 commit 34cf55f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions day2_afternoon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,14 @@ annots_mlst = read.table('~/Desktop/micro612/day2pm/kpneumo_mlst.tsv',row.names=
#make sure order of genomes is the same as source annotation
annots_mlst$ST = annots_mlst[row.names(annots),]
#paste together annotations
Row_annotations <- cbind(annots, annots_mlst)
#change from numeric to character, so that heatmap doesn't treat ST as continuous variable
Row_annotations$ST = as.character(Row_annotations$ST)
#paste together annotations
Row_annotations <- cbind(annots, annots_mlst)
# Assign colors to Sequence Types
annoCol <- list(ST=c(“11”=“blue”, “221”=“red”, “230”=“orange”, “258”=“grey”))
#create new heatmap with source and mlst
pheatmap(ariba_full_match,annotation_row = Row_annotations, annotation_colors = annoCol)
Expand Down

0 comments on commit 34cf55f

Please sign in to comment.