Skip to content

Commit

Permalink
v.1.0.3
Browse files Browse the repository at this point in the history
DFI Summary - fixed
  • Loading branch information
psalguerog committed Aug 3, 2020
1 parent 90fef57 commit 5e55a6b
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions scripts/DFI_BarPlot.R
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,13 @@ if(!length(which(featuresUsed == FALSE))==0)

dfi_results = data.frame()
for(feature in unique(dfi_matrix$Feature)){
newRow = data.frame(Feature=feature,
TotalCount=nrow(dfi_matrix[dfi_matrix$Feature==feature,]),
DFICount=nrow(dfi_matrix[dfi_matrix$Feature==feature & dfi_matrix$DFI == "DFI",]),
TotalAnnot=sum(dfi_total_count[dfi_total_count$Feature==feature,]$Total),
Level=ifelse(feature %in% lstTrans, "Transcript","Protein"),
Time="0")
newRow = data.frame(
Feature=feature,
TotalCount=nrow(dfi_matrix[dfi_matrix$Feature==feature,]),
DFICount=nrow(dfi_matrix[dfi_matrix$Feature==feature & dfi_matrix$DFI == "DFI",]),
TotalAnnot=sum(dfi_total_count[dfi_total_count$Feature==feature,]$Total),
Level=ifelse(feature %in% unlist(lstTrans), "Transcript","Protein"),
Time="0")
dfi_results = rbind(dfi_results,newRow)
}

Expand Down Expand Up @@ -188,7 +189,7 @@ for(feature in unique(res_genes$Feature)){
TotalCount=nrow(res_genes[res_genes$Feature==feature,]),
DFICount=nrow(res_genes[res_genes$Feature==feature & res_genes$DFI == "DFI",]),
TotalAnnot=sum(dfi_total_count[dfi_total_count$Feature==feature,]$ByGenes),
Level=ifelse(feature %in% lstTrans, "Transcript","Protein"),
Level=ifelse(feature %in% unlist(lstTrans), "Transcript","Protein"),
Time="0")
dfi_results = rbind(dfi_results,newRow)
}
Expand Down

0 comments on commit 5e55a6b

Please sign in to comment.