Skip to content

Commit

Permalink
update Deseq_Report.Rmd.in to fix error:
Browse files Browse the repository at this point in the history
Error in `if (annotGene != "None") ...`:
! the condition has length > 1
  • Loading branch information
alexg9010 committed May 8, 2024
1 parent 050b132 commit 59388b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/Deseq_Report.Rmd.in
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ if(filterUP(DE, 0, 0.1) > 0) {

geneOrPeakUp <- with(
DE[!is.na(DE$padj) & DE$padj < 0.1 & DE$log2FoldChange > 0, ],
if(annotGene != "None") unique(unlist(strsplit(annotGene,":")))
if(any(annotGene != "None")) unique(unlist(strsplit(annotGene,":")))
else sprintf("%s:%s:%s",seqnames,start,end))
} else {
geneOrPeakUp <- ""
Expand Down

0 comments on commit 59388b1

Please sign in to comment.