Description Usage Arguments Value See Also Examples
This function take as input a vector containing a series of well ID and output of list of WellSample
objects corresponding to each well.
1 2 | initsWellSamples(WellSamples_list, BAMprefix = NULL, BAMsuffix = NULL,
unexists.action = "unexists.fail")
|
unexists.action |
Define the action to perform when a bam file do not exists. Can be one of the following:
The default value is set at unexists.fail |
wellSamples_list |
a vector of well ID. |
Bamprefix |
a character string representing a prefix to add to the well ID to match the bam file name in the system file. Should contains the directories making path to the file. Putting the absolute path to the file is recommaeded. default value : empty string. |
Bamsuffix |
a character string representing a suffix to add after the well_ID in order to match the Bam file name on the file system. This suffux should not include the extemsion '.bam'. Defaults value : empty string |
A list of objects of class WellSample
1 2 3 4 5 6 7 8 9 10 11 | wellsID_file=system.file('extdata','wells_id_tissue.txt',package='DigitalPicoTools')
wellsID_list<-unlist(read.table(wellsID_file))
WellSample_list=initsWellSamples(wellsID_list,
BAMprefix=paste(path.package('DigitalPicoTools'),'extdata/',sep='/'))
print(WellSample_list[3])
# An S4 object of class WellSample
#
# Well_ID : L006
# Well_Number : 3
# BAMfilename : extdata/L006.bam
#
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.