Skip to content

Commit

Permalink
minor correction on report
Browse files Browse the repository at this point in the history
  • Loading branch information
wbaopaul committed Jul 16, 2020
1 parent 0e75c94 commit 0ff2dbd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scripts/runCicero.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ curr_dir=`dirname $0`

${R_PATH}/Rscript --vanilla ${curr_dir}/src/runCicero.R $seuratObj_file $output_dir $TSS $CHROM_SIZE_FILE

echo "Differential analysis done!"
echo "runCicero done!"
9 changes: 5 additions & 4 deletions scripts/src/scATAC-pro_report.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -391,14 +391,15 @@ if(file.exists(seurat_file)){
go_file = paste0(down.dir, '/enrichedGO_differential_accessible_features_', group1,
'_vs_', group2, '.xlsx')
if(file.exists(go_file)){
#library(xlsx)
cls = 1:length(unique(ss$active_clusters))
if(grepl(group1, pattern = 'one')){
tmp = list()
for(i in 1:length(cls)) tmp[[i]] = xlsx::read.xlsx(go_file, i)
wb <- xlsx::loadWorkbook(go_file)
sheets = xlsx::getSheets(wb)
for(i in names(sheets)) tmp[[i]] = xlsx::read.xlsx(go_file, sheetName = i)
ll = sapply(tmp, nrow)
go_res = tmp[[which.max(ll)]]
group.sele = cls[which.max(ll)]
group.sele = names(sheets)[which.max(ll)]
group.sele = gsub('cluster', '', group.sele)
}else{
go_res1 = xlsx::read.xlsx(go_file, sheetName = paste0('cluster', group1))
go_res2 = xlsx::read.xlsx(go_file, sheetName = paste0('cluster', group2))
Expand Down

0 comments on commit 0ff2dbd

Please sign in to comment.