addListNameToReads: Prepend name attribute of a list to DNAStringSet

Description Usage Arguments Value See Also Examples

View source: R/hiReadsProcessor.R

Description

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

Usage

1
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

1
2
3
4
5
6
7
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)

hiReadsProcessor documentation built on Nov. 8, 2020, 5:43 p.m.