Skip to content

Commit

Permalink
fix #445
Browse files Browse the repository at this point in the history
  • Loading branch information
ShixiangWang committed Dec 5, 2023
1 parent 1593f0b commit 313abe2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ get_sig_db("latest_RNA-SBS_GRCh37")
get_sig_db("latest_SV_GRCh38")
```

- Fixed a bug in generating matrix for variation categories with strand bias due to problematic counting. (#445)

# sigminer 2.2.2

- Updated pkg doc following the new CRAN feature (thanks to K from the CRAN team).
Expand Down
2 changes: 1 addition & 1 deletion R/generate_matrices.R
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ records_to_matrix <- function(dt, samp_col, component_col, add_trans_bias = FALS
loc_dt$MutIndex <- 1:nrow(loc_dt)

m_dt <- data.table::foverlaps(loc_dt, transcript_dt, type = "any")[
, .(MatchCount = .N, strand = paste0(unique(strand), collapse = "/")),
, .(MatchCount = length(unique(strand)), strand = paste0(unique(strand), collapse = "/")),
by = list(MutIndex)
]

Expand Down
2 changes: 1 addition & 1 deletion R/read_vcf.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#' @testexamples
#' expect_is(maf, "MAF")
read_vcf <- function(vcfs, samples = NULL,
genome_build = c("hg19", "hg38", "mm10", "mm9", "ce11"),
genome_build = c("hg19", "hg38", "T2T", "mm10", "mm9", "ce11"),
keep_only_pass = FALSE, verbose = TRUE) {
genome_build <- match.arg(genome_build)
vcfs_name <- vcfs
Expand Down

0 comments on commit 313abe2

Please sign in to comment.