Skip to content

Commit

Permalink
Fixed the bug in the filter cells based on genes
Browse files Browse the repository at this point in the history
  • Loading branch information
dyxmvp committed Mar 1, 2019
1 parent 29b75f8 commit e9d4e7e
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions inst/shiny/quick_look.R
Original file line number Diff line number Diff line change
Expand Up @@ -333,23 +333,24 @@ upload_dges_filter <- function(sample_file){
colnames(a) <- colnames(df)[acols]
b <- as.data.frame(df[,bcols])
colnames(b) <- colnames(df)[bcols]

if(keep_filter == 1){
df <- a
}
else{
df <- b
}


}

output_dir <- file.path(dirname(sample_list_filter[1]), "dges_filtered")
dir.create(output_dir)
output_file <- file.path(output_dir, paste0(sample_name, "_filtered", ".dge.txt"))

if(keep_filter == 1){

write.table(a, output_file, append = FALSE, sep = "\t", dec = ".",
row.names = TRUE, col.names = TRUE)
}
else{

write.table(b, output_file, append = FALSE, sep = "\t", dec = ".",
row.names = TRUE, col.names = TRUE)
}

write.table(df, output_file, append = FALSE, sep = "\t", dec = ".",
row.names = TRUE, col.names = TRUE)

R.utils::gzip(output_file)
}

Expand Down

0 comments on commit e9d4e7e

Please sign in to comment.