Skip to content

Commit

Permalink
Merge pull request #55 from mskilab/as.dev
Browse files Browse the repository at this point in the history
save purity ploidy values to a table
  • Loading branch information
zining01 authored Nov 25, 2021
2 parents 8d97476 + 430011b commit 5db9153
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions R/JaBbA.R
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,7 @@ jabba_stub = function(junctions, # path to junction VCF file, dRanger txt file o
jabba.simple.gg.rds.file = paste(outdir, 'jabba.simple.gg.rds', sep = '/')
jabba.simple.vcf.file = paste(outdir, 'jabba.simple.vcf', sep = '/')
jabba.simple.cnv.vcf.file = paste(outdir, 'jabba.simple.cnv.vcf', sep = '/')
purity.ploidy.txt.file = paste(outdir, 'purity.ploidy.txt', sep = '/')
jabba.png.file = paste(outdir, 'jabba.png', sep = '/')
jabba.simple.png.file = paste(outdir, 'jabba.simple.png', sep = '/')
seg.tab.file = paste(outdir, 'jabba.seg', sep = '/')
Expand Down Expand Up @@ -1427,6 +1428,10 @@ jabba_stub = function(junctions, # path to junction VCF file, dRanger txt file o
saveRDS(jabd, jabba.rds.file)
saveRDS(jabd.simple, jabba.simple.rds.file)

purity.ploidy.dt = data.table(purity = jab$purity,
ploidy = jab$ploidy)
fwrite(purity.ploidy.dt, purity.ploidy.txt.file, sep = '\t')

jab.gg = gGnome::gGraph$new(jab = jabd)
tmp.jabd.simple = jabd.simple
values(tmp.jabd.simple$junctions)$cn = NULL
Expand Down

0 comments on commit 5db9153

Please sign in to comment.