Skip to content

Commit 8ae1b44

Browse files
committed
updates
1 parent 0ca84b1 commit 8ae1b44

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

R/doL0.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ doL0 <- function(stana, species, cl=NULL, doFix=TRUE,
2424
qqcat("Using grouping from the slot\n")
2525
cl <- stana@cl
2626
}
27-
if (target!="snps" & is.null(mat)){
27+
if (target=="genes" & is.null(mat)){
2828
qqcat("If needed, please provide preprocessed matrix of genes to `mat`\n")
2929
filtDf <- stana@genes[[species]]
30+
} else if (target=="ko") {
31+
filtDf <- stana@kos[[species]]
3032
} else if (target=="snps"){
3133
filtDf <- stana@snps[[species]]
3234
if (deleteZeroDepth) {

R/plotCirclize.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ plotCirclize <- function(stana, candSp, genomeId, include_gene=NULL,
7272
info$genome_id <- sapply(strsplit(row.names(info),"\\|"),"[",3)
7373
} else if (stana@type=="InStrain") {
7474
info$genome_id <- info$scaffold
75+
} else {
76+
cat("Assuming SNV info has genome_id column ...\n")
7577
}
7678

7779
qqcat("Genome ID in SNV information:\n")

R/plotKEGGPathway.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ plotKEGGPathway <- function(stana, species, pathway_id,
8282
lfcs[["Sum"]] <- apply(ko_tbl, 1, sum)
8383
} else {
8484
qqcat("@{sp}: @{names(cl)[1]} / @{names(cl)[2]}\n")
85-
lfc[[sp]] <- L2FC(ko_tbl, cl[[1]], cl[[2]])
85+
lfcs[[sp]] <- L2FC(ko_tbl, cl[[1]], cl[[2]])
8686
}
8787
} else {
8888
for (sp in species) {

0 commit comments

Comments
 (0)