parallel_read_bams: Read in BAM files in a parallel manner.

Description Usage Arguments Value

View source: R/parallel_read_bams.R

Description

This function simply reads BAM files in using parallel's mclapply and GenomicAlignments readGAlignments. It results in a named list of bam files. By default, this reads all BAMs it can find, if you want to use a subset of BAMs from a folder, you make your own named list of BAM files.

Usage

1
parallel_read_bams(dirWithBams, ncores)

Arguments

dirWithBams

path to a directory with bam files in it, it will only. attempt to read things that end in .bam.

ncores

the number of cores to use, typically 1 per bam.

Value

A list of bams read in using readGAlignments.


shahlab/RiboRet documentation built on Dec. 23, 2021, 1:17 a.m.