Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
CPM Filtering Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
skchronicles committed Oct 19, 2018
1 parent 8f0f3cc commit 24e8006
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Results-template/Scripts/filtersamples.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ args <- commandArgs(trailingOnly = TRUE)
DIR <- args[1]
G1 <- args[2]
G2 <- args[3]
CPM_CUTOFF <- args[4]
MINSAMPLES <- args[5]
CPM_CUTOFF <- as.numeric(args[4])
MINSAMPLES <- as.numeric(args[5])
SAMPLETABLE <- args[6]
RAWCOUNTSTABLE <- args[7]
FILTEREDRAWCOUNTSTABLE <- args[8]
Expand All @@ -23,7 +23,7 @@ y=y[,-which(names(y) %in% ("symbol"))]
#y=y[,samples]
y=ceiling(y)
#colnames(y)=x1$label
k=rowSums(cpm(y)>CPM_CUTOFF)>MINSAMPLES
k=rowSums(cpm(y)>CPM_CUTOFF)>=MINSAMPLES
# table(k)
y=y[k,]

Expand Down

0 comments on commit 24e8006

Please sign in to comment.