Skip to content

Commit

Permalink
only show sex mismatch table when having a mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
AtaJadidAhari committed Oct 11, 2024
1 parent 8910cdc commit 9c33fb1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drop/modules/aberrant-expression-pipeline/Counting/Summary.R
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,9 @@ if(isEmpty(sex_idx)){
labs(color = 'Sex', shape = 'Predicted sex', alpha = 'Matches sex')
plot(g)

DT::datatable(sex_dt[match_sex == F], caption = 'Sex mismatches')
if(sex_dt[match_sex == F, .N] > 0){
DT::datatable(sex_dt[match_sex == F], caption = 'Sex mismatches')
}
} else {
g <- ggplot(sex_dt, aes(XIST+1, UTY+1)) + geom_point(aes(col = SEX)) +
scale_x_log10(limits = c(1,NA)) + scale_y_log10(limits = c(1,NA)) +
Expand Down

0 comments on commit 9c33fb1

Please sign in to comment.