Skip to content

Commit

Permalink
include lowercase bases
Browse files Browse the repository at this point in the history
  • Loading branch information
timoast committed Jun 14, 2024
1 parent f229f7c commit 9910fcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/footprinting.R
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ InsertionBias.ChromatinAssay <- function(
sequences <- as.vector(x = Biostrings::getSeq(x = genome, insertions))
seq.freq <- table(sequences)
# remove sequences containing non-ATCG characters
keep.seq <- !grepl(pattern = "[^ATCG]", x = names(x = seq.freq))
keep.seq <- !grepl(pattern = "[^ATCGatcg]", x = names(x = seq.freq))
insertion_hex_freq <- as.matrix(x = seq.freq[keep.seq])
genome_freq <- Biostrings::oligonucleotideFrequency(
x = Biostrings::getSeq(x = genome, chr.use),
Expand Down

0 comments on commit 9910fcb

Please sign in to comment.