Skip to content

Commit

Permalink
additional renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
kriemo committed Aug 21, 2023
1 parent 98b06a3 commit 7b0a72f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions R/calc_AEI.R
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ calc_AEI <- function(bamfiles,
res <- list()
for(i in seq_along(bamfiles)) {
bam_fn <- bamfiles[i]
aei <- .AEI_per_bam(bam_fn = bam_fn, fasta_fn = fasta, chroms = chroms,
aei <- .AEI_per_bam(bam_fn = bam_fn, fasta = fasta, chroms = chroms,
alu_ranges = alu_ranges, snps = snps, param = param,
genes_gr = genes_gr, verbose = verbose, BPPARAM = BPPARAM)
res[[path(bam_fn)]] <- aei
Expand All @@ -186,7 +186,7 @@ calc_AEI <- function(bamfiles,
}


.AEI_per_bam <- function(bam_fn, fasta_fn, chroms, alu_ranges, snps, param,
.AEI_per_bam <- function(bam_fn, fasta, chroms, alu_ranges, snps, param,
genes_gr, verbose,
BPPARAM = BiocParallel::SerialParam()) {

Expand All @@ -195,7 +195,7 @@ calc_AEI <- function(bamfiles,
chroms,
MoreArgs = list(
bam_fn = bam_fn,
fasta_fn = fasta_fn,
fasta = fasta,
alu_sites = alu_ranges,
param = param,
snp_gr = NULL,
Expand All @@ -214,7 +214,7 @@ calc_AEI <- function(bamfiles,
snps,
MoreArgs = list(
bam_fn = bam_fn,
fasta_fn = fasta_fn,
fasta = fasta,
alu_sites = alu_ranges,
param = param,
genes_gr = genes_gr,
Expand Down Expand Up @@ -257,7 +257,7 @@ calc_AEI <- function(bamfiles,
list(AEI = aei_summary, AEI_per_chrom = aei_per_chrom)
}

.calc_AEI_per_chrom <- function(bam_fn, fasta_fn, alu_sites, chrom, param,
.calc_AEI_per_chrom <- function(bam_fn, fasta, alu_sites, chrom, param,
snp_gr, genes_gr, verbose) {
if (verbose) {
start <- Sys.time()
Expand All @@ -267,7 +267,7 @@ calc_AEI <- function(bamfiles,
param@only_keep_variants <- FALSE

plp <- pileup_sites(bam_fn,
fasta = fasta_fn,
fasta = fasta,
sites = alu_sites,
chroms = chrom,
param = param
Expand Down

0 comments on commit 7b0a72f

Please sign in to comment.