createGranges {DEScan2} | R Documentation |
a simplified wrapper function to create a GRanges object.
createGranges(chrSeqInfo, starts, widths, mcolname = NULL, mcolvalues = NULL)
chrSeqInfo |
a seqinfo object. |
starts |
the start ranges. |
widths |
the width of each range. |
mcolname |
the name for the mcol attribute. |
mcolvalues |
the values for the mcol attribute. |
a GRanges object.
chrSeqInfo <- GenomeInfoDb::Seqinfo(genome="mm9")["chr1"] starts=sample(seq_len(100), 10) widths=starts+10; mcolname <- "z-score"; mcolvalues <- sample(seq_len(100), 10) chrGR <- createGranges(chrSeqInfo=chrSeqInfo, starts=starts, widths=widths, mcolname=mcolname, mcolvalues=mcolvalues)