Skip to content

Commit 764faaa

Browse files
author
Vicente
committed
prunning fixed
1 parent 2362242 commit 764faaa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drop/modules/mae-pipeline/QC/create_matrix_dna_rna_cor.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ lp <- bplapply(1:N, function(i){
6161
## First, find out the chr style
6262
chrs <- row.names(scanVcfHeader(vcf_file)@header$contig)
6363
seqlevelsStyle(gr_res) <- seqlevelsStyle(chrs)[1]
64-
gr_res <- keepSeqlevels(gr_res, chrs, pruning.mode = 'coarse')
64+
gr_res <- keepSeqlevels(gr_res, intersect(seqnames(gr_res), chrs), pruning.mode = 'coarse')
6565
param <- ScanVcfParam(samples=sample, fixed=NA, info='NT', geno='GT',
6666
trimEmpty=TRUE, which = gr_res)
6767
vcf_sample <- readVcf(vcf_file, param = param, row.names = FALSE)
@@ -107,4 +107,4 @@ mat <- mat[unique(sa[rows_in_group, DNA_ID]),
107107
unique(sa[rows_in_group, RNA_ID]),
108108
drop=FALSE]
109109

110-
saveRDS(mat, snakemake@output$mat_qc)
110+
saveRDS(mat, snakemake@output$mat_qc)

0 commit comments

Comments
 (0)