RGset <- read.450k.exp(base = baseDir, targets = targets)
Then you can simply
RGset=RGset[,-c(1,3,4)]
Which will remove samples 1,3,4 then carry on as normal. The negative sign can be used to drop row or columns in matrices in R.
Rob
--
You received this message because you are subscribed to the Google Groups "Epigenomics forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to epigenomicsfor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> gRatioSet <- mapToGenome(ratioSet, mergeManifest = TRUE) Error in `elementMetadata<-`(`*tmp*`, value = <S4 object of class "DataFrame">) : names of metadata columns cannot be one of "seqnames", "ranges", "strand", "seqlevels", "seqlengths", "isCircular", "start", "end", "width", "element"and this tread helped me, ... i set the mergeManifest to FALSE and it worked...
To unsubscribe from this group and stop receiving emails from it, send an email to epigenomicsforum+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Epigenomics forum" group.
RGset
RGChannelSet (storageMode: lockedEnvironment)
assayData: 622399 features, 85 samples
element names: Green, Red
An object of class 'AnnotatedDataFrame'
sampleNames: 200517420015_R03C01 200517420102_R06C01 ...
200400320002_R04C02 (85 total)
varLabels: Sample_Name Sample_Well ... filenames (13 total)
varMetadata: labelDescription
Annotation
array: IlluminaHumanMethylation450k
annotation: ilmn12.hg19
> detP<-detectionP(RGset)
> failed.01<-detP > 0.01
> failedProbes <-rownames(failed.01)[rowMeans(failed.01)>0.2]
> length(failedProbes)
[1] 352
> failedP<-str_replace_all(failedProbes, "cg", "")
> length(failedP)
[1] 352
> RGset_FX <- RGset[!rownames(RGset)%in% failedP]
> dim(RGset)
Features Samples
622399 85
> dim(RGset_FX)
Features Samples
622397 85