up-down regulated using log2FC
I used Data Wrangling in R to write commands to find the number of FC>1 and FC<1.
But R recognizes the column “log2FC” as null.
library(tidyverse) library(lubridate) library(stringr) targets <- read.csv("FilteredGenes(STD-Met-Cin).csv") glimpse(targets) targets <- tibble('log2FC '=targets$log2FC) glimpse(targets) unique(targets$ log2FC) summary (targets) targets<- tibble('log2FC'=targets$ log2FC) Upregulated <- subset(targets, targets$log2FC>1) Downregulated <- subset(targets, targets$log2FC<1) Filtered-target <- subset(targets, targets$log2FC>1) **Error: Must subset rows with a valid subscript vector. *i Logical subscripts must match the size of the indexed input. x Input has size 13796 but subscript `r` has size 0. Run `rlang::last_error()` to see where the error occurred. In addition: Warning message: Unknown or uninitialised column: `log2FC`.***
• 21 views
Read more here: Source link