View source: R/ChIPseqSpikeInFree.R
ReadMeta | R Documentation |
This function allows you to load metadat to a R data.frame and return the object. In addtion, it validates meta_info format and adds a COLOR column if it's undefined.
ReadMeta(metaFile = "sample_meta.txt")
metaFile |
a metadata file name; the file must have three columns: ID (bam filename without full path), ANTIBODY and GROUP. the COLOR column is optional and will be used for plotting purpose. |
A data.frame of metaFile
## 1. load an example of metadata file metaFile <- system.file("extdata", "sample_meta.txt", package = "ChIPseqSpikeInFree") meta <- ReadMeta(metaFile) head(meta, n = 1) meta # ID ANTIBODY GROUP COLOR # H3K27me3-NSH.K27M.A.bam H3K27me3-NSH.K27M.A.bam H3K27me3 K27M green # H3K27me3-NSH.K27M.B.bam H3K27me3-NSH.K27M.B.bam H3K27me3 K27M green # H3K27me3-NSH.K27M.C.bam H3K27me3-NSH.K27M.C.bam H3K27me3 K27M green # H3K27me3-NSH.WT.D.bam H3K27me3-NSH.WT.D.bam H3K27me3 WT grey # H3K27me3-NSH.WT.E.bam H3K27me3-NSH.WT.E.bam H3K27me3 WT grey # H3K27me3-NSH.WT.F.bam H3K27me3-NSH.WT.F.bam H3K27me3 WT grey
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.