Learn R Programming

beadarrayMSV (version 1.0.3)

makeFilenames: Generate filenames reflecting normalizations

Description

Filenames including paths are generated to enable writing a set of "AlleleSetIllumina" data-tables to text-files. These are used subsequently to read specified markers and arrays into the workspace

Usage

makeFilenames(tag, normOpts, path = ".")

modifyExistingFilenames(dataFiles, oldtag, newtag)

Arguments

tag
Character string included in the filenames which is unique to the current analysis
normOpts
List with pre-processing options used (see setNormOptions). Generated filnames will reflect the transformation and channel-normalisation performed on the data
path
Character string with the saving path
dataFiles
Character vector with previous output from makeFilenames
oldtag
Often several rounds of genotype-calling is performed based on the same, pre-processed data. This character string correspond to the unique tag used for the previous run(s).
newtag
A new character string tag to replace oldtag in files other than those pre-processed data-files which remain the same between runs.

Value

  • Character vector with the fields
  • intFileFile name for intensity values
  • thFileFile name for theta values
  • seFileFile name for SE values
  • phFileFile name for phenotype data
  • callFileFile name for call values
  • resFileFile name for feature data such as call statistics
  • genoFileFile name for allele values

Warning

Warnings are issued if existing filenames are used, as this may lead to overwriting of these files in subsequent steps (no files are overwritten by the functions themselves)

Details

These files generate file names used for reading and writing between text files and workspace. When different runs of genotype calling is performed using the same, pre-processed data, modifyExistingFilenames updates only the elements which change with the new genotyping.

See Also

writeAlleleSet, createAlleleSetFromFiles, createMultiSetFromFiles, translateThetaFromFiles

Examples

Run this code
#Create names
normOpts <- setNormOptions()
tag <- '1'
dataFiles <- makeFilenames(tag,normOpts)
print(dataFiles)

#Make new names for subsequent, alternate genotype calling runs
dataFiles <- modifyExistingFilenames(dataFiles,tag,'2')

Run the code above in your browser using DataLab