Skip to content

Commit

Permalink
Update RNAsummary.R
Browse files Browse the repository at this point in the history
  • Loading branch information
KJeynesCupper authored Feb 20, 2024
1 parent 043d0b3 commit 25f0eef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/RNAsummary.R
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ RNAsummary <- function(data, alpha = 0.1, chimeric = FALSE,
total_rows <- nrow(data)
# Filter the data based on the padjusted value
filtered_data <- data[data$padjusted < alpha, ]

# remove any NA values
filtered_data <- filtered_data[complete.cases(filtered_data$padjusted), ]

# number of rows with positive and negative log2FC
n_up <- sum(filtered_data[, "log2FoldChange"] > 0)
n_down <- sum(filtered_data[, "log2FoldChange"] < 0)
Expand Down

0 comments on commit 25f0eef

Please sign in to comment.