prepare_solo_samples: Title

Description Usage Arguments Value Examples

View source: R/prepare_solo_samples.R

Description

Reads in the sample file names for the directory or directories, for scRNA samples. Requires paired end reads.

Usage

1
prepare_solo_samples(path = path, patt)

Arguments

path

List of full paths to directory or directories containing the raw reads data

patt

List of suffix patterns for the raw reads data for forward and reverse reads

Value

Dataframe with sorted file paths and sample names

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
reads.path <- c("/Path to reads 1",
                "/Path to reads 2")

# Standard suffixes for reads files for forward and reverse files
reads.patt.1 <- "*_R1_001.fastq.gz$"
reads.patt.2 <- "*_R2_001.fastq.gz$"

sample.dataframe <- prepare_solo_samples(reads.path, c(reads.patt.1,reads.patt.2))

mate1 <- as.character(sample.dataframe$reads.path.1)
mate2 <- as.character(sample.dataframe$reads.path.2)

sample.names <- as.character(sample.dataframe$sample.names)

GrahamHamilton/pipelineTools documentation built on June 19, 2021, 1:08 p.m.