The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

Type: Package
Title: Import WIG Data into R in Long Format
Version: 0.1.0
Description: Import WIG data into R in long format.
License: MIT + file LICENSE
URL: https://github.com/ramiromagno/wig
BugReports: https://github.com/ramiromagno/wig/issues
Encoding: UTF-8
RoxygenNote: 7.1.2
Imports: dplyr, magrittr, stringr, tibble
Suggests: spelling
Language: en-US
NeedsCompilation: no
Packaged: 2021-10-02 10:57:25 UTC; rmagno
Author: Ramiro Magno ORCID iD [aut, cre]
Maintainer: Ramiro Magno <ramiro.magno@gmail.com>
Repository: CRAN
Date/Publication: 2021-10-04 08:20:02 UTC

Pipe operator

Description

See magrittr::%>% for details.

Usage

lhs %>% rhs

Arguments

lhs

A value or the magrittr placeholder.

rhs

A function call using the magrittr semantics.

Value

The result of calling 'rhs(lhs)'.


Imports a WIG file

Description

import_wig reads a WIG (wiggle) file and expands the data into long format, i.e., the each observation in the returned tibble pertains the position of one single base.

Usage

import_wig(file_path, n = -1L)

Arguments

file_path

A path to a WIG file.

n

The (maximal) number of lines to read. Negative values indicate that one should read up to the end of input on the connection.

Value

A tibble of three variables: chr, chromosome; pos, genomic position; and val, value. Chromosome positions are 1-relative, i.e. the first base is 1, as specified in WIG files.

Examples

# Import a WIG file
wig_file <- system.file(
              "extdata",
              file = 'hg19-pik3ca.wig',
              package = "wig",
              mustWork = TRUE)

import_wig(wig_file)

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.