Skip to content

Commit

Permalink
Not sure why load_all() is failing
Browse files Browse the repository at this point in the history
  • Loading branch information
cansavvy committed Oct 28, 2024
1 parent 2bfe6ee commit 4c8a2ad
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
8 changes: 2 additions & 6 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,8 @@ Imports:
tibble,
fastmap (>= 1.2.0),
BiocManager,
Suggests:
testthat (>= 3.0.0),
roxygen2,
Remotes:
Rhtslib=bioc::3.3/Rhtslib,
Rsamtools=bioc::3.3/Rsamtools,
Suggests: testthat (>= 3.0.0), roxygen2,
Remotes: Rhtslib=bioc::3.3/Rhtslib, Rsamtools=bioc::3.3/Rsamtools, Rbowtie2=bioc::3.3/Rbowtie2
Config/testthat/edition: 3
Encoding: UTF-8
RoxygenNote: 7.3.2
Expand Down
5 changes: 3 additions & 2 deletions R/alignment.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
#' @param time TRUE/FALSE you want the duration this takes to run printed out
#' @param save_logs TRUE/FALSE you want the logs? They will be saved as the sample name
#' @param overwrite TRUE/FALSE should existing bam files of the same name be overwritten?
#' @importFrom furrr future_pmap future_map8p
#' @importFrom purrr reduce
#' @importFrom furrr future_pmap future_map
#' @importFrom tidyr pivot_longer
#' @importFrom Rbowtie2 bowtie2_samtools bowtie2_build
#' @import dplyr
#' @importFrom tibble rownames_to_column
#' @export
Expand Down
5 changes: 3 additions & 2 deletions R/get_stats.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#' @param output_dir a file path to where you'd like the stats to be saved to. By default its "stats" folder. This folder will be
#' created if it doesn't exist.
#' @param time TRUE/FALSE you want the duration this takes to run printed out
#' @importFrom furrr future_pmap future_map
#' @importFrom purrr reduce
#' @importFrom furrr future_map
#' @importFrom Rsamtools quickBamFlagSummary
#' @import dplyr
#' @importFrom tibble rownames_to_column
#' @export
Expand Down Expand Up @@ -51,6 +51,7 @@ get_stats <- function(bam_dir, sample_names, output_dir = "stats", time = FALSE)
})

if (time) message(paste0("Done(", signif(as.numeric(difftime(Sys.time(), timing, units = "mins")), 2), "m elapsed).\n"))

# Return as a list of two data frames
message("Stats saved to", output_dir)
}
1 change: 0 additions & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ utils::globalVariables(c(
"rname", ".")
)


#' Returns file paths to example data for package
#' @description This function loads and returns file paths to example data for the packagae. Which dataset is returned must be specified
#' @param which_data options are "bam" or "fastq"; specifies which example dataset should be returned
Expand Down

0 comments on commit 4c8a2ad

Please sign in to comment.