Skip to content

Commit ed585c5

Browse files
committed
update makeGRangesListFromCopyNumber example
1 parent 014a2cf commit ed585c5

2 files changed

Lines changed: 14 additions & 20 deletions

File tree

R/makeGRangesListFromCopyNumber.R

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,15 @@
2727
#'
2828
#' fname <- gdcdata(manif$id)
2929
#'
30-
#' barcode <- UUIDtoBarcode(names(fname), from_type = "file_id")
31-
#' barcode <- barcode[["associated_entities.entity_submitter_id"]]
30+
#' UUIDtoBarcode(names(fname), from_type = "file_id")
3231
#'
33-
#' cndata <- read.delim(fname[[1L]], nrows = 10L)
34-
#'
35-
#' cngrl <- makeGRangesListFromCopyNumber(cndata, split.field = "GDC_Aliquot",
36-
#' keep.extra.columns = TRUE)
37-
#'
38-
#' names(cngrl) <- barcode
39-
#' GenomeInfoDb::genome(cngrl) <- extractBuild(fname[[1L]])
40-
#' cngrl
32+
#' cndata <- read.delim(fname[[1L]])
4133
#'
34+
#' makeGRangesListFromCopyNumber(
35+
#' df = cndata,
36+
#' split.field = "GDC_Aliquot_ID",
37+
#' keep.extra.columns = TRUE
38+
#' )
4239
#' @export makeGRangesListFromCopyNumber
4340
makeGRangesListFromCopyNumber <-
4441
function(df, split.field, names.field = "Hugo_Symbol", ...) {

man/makeGRangesListFromCopyNumber.Rd

Lines changed: 7 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)