Skip to content

Commit

Permalink
Fix R CMD check
Browse files Browse the repository at this point in the history
  • Loading branch information
grst committed Jan 22, 2024
1 parent e8f6a5f commit 7cfb03c
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
25 changes: 23 additions & 2 deletions R/personalis.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ read_personalis <- function(pathlist) {
#

#' Read in gene expression data from personalis folders
#' @param sample_list A vector of paths to personalis folders
#' @param sample_paths A vector of paths to personalis folders
#' @return SummarizedExperiment
#' @export
read_personalis_gene_expression <- function(sample_paths) {
Expand Down Expand Up @@ -95,8 +95,28 @@ read_personalis_gene_expression_sample <- function(sample_folder) {
# -------------------- SMALL VARIANTS --------------------
#

#' Read in small variant data from personalis folders
#' Read in small variant data from personalis folder
#' We only read in the "Preferred Transcript" report here:
#'
#' Preferred Transcript: The RefSeq accession.version for the transcript used for variant analysis.
#' Personalis uses a curated list of transcripts, which is based on the number of
#' times a transcript (accession.version) is referred to in COSMIC. If not present in
#' COSMIC, the default transcript would be the one corresponding to the longest CDS.
#' (source: Personalis Analysis_Pipeline_Documentation)
#'
#' We also do not read the `cancer_clinical_research`, the `cancer_research` and the `lowpupulationfreq` reports,
#' because they are subsets of the full report.
#'
#' In addition, Personalis also provides raw VCF files with all (unfiltered) variants. We currently don't
#' read them in because without additional filtering they are not very useful. If you need this level of information,
#' feel free to start from the raw vcf files or even run your own variant calling based on the FASTQ files.
#'
#' @param sample_paths A vector of paths to personalis folders
#' @param sample_type Can be one or multiple of of 'tumor', 'normal', or 'somatic'.
#' 'tumor' refers to tumor sample vs. genome reference (i.e. somatic+germline mutations),
#' 'normal' refers to normal sample vs. genome reference (i.e. germline mutations) and
#' 'somatic' refers to tumor vs. normal (i.e. somatic mutations only).
#' @param modality modality from which the variants were called. Can be either 'DNA' or 'RNA'
#' @return SummarizedExperiment
#' @importFrom dplyr select
#' @importFrom purrr map
Expand Down Expand Up @@ -252,6 +272,7 @@ read_personalis_somatic_variants_summary_statistics <- function(sample_folder, m

#' Read Personalis CNV data for a list of samples
#' @return SummarizedExperiment
#' @param sample_paths List of directories with Personalis samples
#' @importFrom purrr map
#' @export
read_personalis_cnv_reports <- function(sample_paths) {
Expand Down
3 changes: 3 additions & 0 deletions man/read_personalis_cnv_reports.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/read_personalis_gene_expression.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 22 additions & 2 deletions man/read_personalis_small_variant_reports.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7cfb03c

Please sign in to comment.