loadBAM {ASpli} | R Documentation

## Load BAM files

### Description

Load BAM files into R session using a targets specification.

### Usage

     loadBAM(targets, cores)

### Arguments

`targets` | A data frame containing sample, bam and experimental factors columns
`cores` | Number of processors to use

### Value

A list of GAlignments. Each element of the list correspond to a samples BAM file.

### Author(s)

Estefania Mancini, Marcelo Yanovsky, Ariel Chernomoretz

### Examples

      # Define bam files, sample names and experimental factors for targets.
      bamFileNames <- c( "A_C_0.bam", "A_C_1.bam", "A_C_2.bam",
                         "A_D_0.bam", "A_D_1.bam", "A_D_2.bam" )

      targets <- data.frame(
                   row.names = paste0('Sample_',c(1:6)),
                   bam = system.file( 'extdata', bamFileNames, package="ASpli" ),
                   factor1 = c( 'C','C','C','D','D','D') )

      # Load reads from bam files
      bams <- loadBAM( targets )

[Package ASpli version 1.10.0 Index]