Read DNAcopy results into GRanges object
Arguments
- fname
The path to a DNAcopy-like file.
- ...
passed to
read_tsv
Value
a GRanges
object
Examples
fname = system.file(package='GenomicDataCommons',
'extdata/dnacopy.tsv.gz')
dnac = readDNAcopy(fname)
#> Rows: 6 Columns: 6
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: "\t"
#> chr (1): Sample
#> dbl (5): Chromosome, Start, End, Num_Probes, Segment_Mean
#>
#> ℹ Use `spec()` to retrieve the full column specification for this data.
#> ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
class(dnac)
#> [1] "GRanges"
#> attr(,"package")
#> [1] "GenomicRanges"
length(dnac)
#> [1] 6