View source: R/cohortAnalyseBatch.R
| mergeBatches | R Documentation | 
Merges data from several batches for cohort analysis
mergeBatches(paths, targetMetaDataFile, targetRdirectory, cpus = 1)
paths | 
 data.frame: One row for each batch to be merged.  | 
targetMetaDataFile | 
 character: Path to where the merged metaData will be stored. This also affect where a downstream cohort analysis is stored.  | 
targetRdirectory | 
 character: Path to where the Rdata will be stored.  | 
This function merges the data from multiple batches, setting them up for a joint cohort analysis. Note that this is only for the purpose of a downstream cohort analysis. The output R directory cannot be run as a batch Rdirectory.
## Not run: 
paths = data.frame('metaDataFile' = c('~/superFreq/myFirstBatch/metaData.txt', '~/superFreq/mySecondBatch/metaData.txt'),
           'Rdirectory'= c('~/superFreq/myFirstBatch/R', '~/superFreq/myFirstBatch/R'))
targetMetaDataFile = '~/superFreq/mergedAnalysis/metaData.txt'
targetRdirectory = '~/superFreq/mergedAnalysis/R'
mergeBatches(paths, targetMetaDataFile, targetRdirectory)
outputDirectories = list('Rdirectory'=targetRdirectory)
cohortAnalyseBatch(targetMetaDataFile, outputDirectories, cpus=6, genome='hg19')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.