Description Usage Arguments Details Value Author(s) See Also Examples
Function that will add genotypes to an ExpressionSet when given a data file with genotypes in the same format as outputted by http://www.hapmap.org.
1 | addSnpPdata(object, listOfSnps, individualNames="sampleNames")
|
object |
A ProbeLevelSet object or a regular ExpressionSet object (in which case a probeData argument is required). See getLocalProbeIntensities and related functions on how to create a ProbeLevelSet. |
listOfSnps |
A character string giving the path of a file containing SNP data in the same format as used by the export function of www.hapmap.org. |
individualNames |
An optional character string giving the column name of a pData entry that holds the individual names as given in the listOfSnps. This defaults to using the sampleNames, and is useful in cases with replicate or triplicate samples |
A function that takes an ExpressionSet and the path for a SNP-file. The SNP-file should have the same format as files downloaded from http://www.hapmap.org. The function then checks if the sampleNames are present in the SNP-file. If they are, it decorates the ExpressionSet with the SNPs. If the snp name already exists as a column name in the pData, the function tries to merge the new information from listOfSnps with the new. Original NA values are overwritten by new values. Original values that are the same as new values are kept the same. Original values that are not the same as new values are preserved in their original state and a warning is given.
The same ProbeLevelSet or ExpressionSet given as argument, but with the SNP type data added to the pData and with the extra information of the listOfSnps file added to the notes section.
Lasse Folkersen
getLocalProbeIntensities
,plotOnGene
1 2 3 4 5 | ## Not run:
hapmapformatdata<-"~/somefile.txt"
probelevelsetwithsnps<-addSnpPdata(probelevelset,hapmapformatdata)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.