Learn R Programming

hiReadsProcessor (version 1.8.2)

addListNameToReads: Prepend name attribute of a list to DNAStringSet

Description

Given a named listed DNAStringSet object returned from extractSeqs, the function prepends the sample name to read names.

Usage

addListNameToReads(dnaSet, flatten = FALSE)

Arguments

dnaSet
output from extractSeqs
flatten
should the output be unlisted? Default is FALSE.

Value

  • listed DNAStringSet with the names attribute prepended with the name of the list. If flatten is TRUE, then a DNAStringSet object

See Also

extractFeature, extractSeqs, getSectorsForSamples, write.listedDNAStringSet

Examples

Run this code
load(file.path(system.file("data", package = "hiReadsProcessor"),
"FLX_seqProps.RData"))
samples <- c('Roth-MLV3p-CD4TMLVWell6-Tsp509I',
'Roth-MLV3p-CD4TMLVWell6-MseI', 'Roth-MLV3p-CD4TMLVwell5-MuA')
seqs <- extractSeqs(seqProps, sector='2', samplename=samples,
feature="genomic")
addListNameToReads(seqs, TRUE)

Run the code above in your browser using DataLab