PoisonAlien / maftools

Summarize, Analyze and Visualize MAF files from TCGA or in-house studies.
http://bioconductor.org/packages/release/bioc/html/maftools.html
MIT License
443 stars 218 forks source link

Length zero fix #1030

Open eolaniru opened 3 months ago

eolaniru commented 3 months ago

Dear @PoisonAlien, When filtering sample pair at if(nrow(sample_pair) > 0){ unique(unlist(sample_pair[XY_possibly_paired == "Yes", .(X_bam, Y_bam)], use.names = FALSE)) }, the script fails if nrow is of length zero. This PR fixes this.

It also fixes issues described in PR #797

I've tested it on real data but please take a look. Thanks