writeHelix: Write out a helix data frame into a text file

Description Usage Arguments Value Author(s) Examples

View source: R/io.R

Description

Write out a helix data frame into a text file into the four-column tab-delimited format with proper header and column names.

Usage

1

Arguments

helix

A helix data frame.

file

A character string pointing to a file path, or a file connection. Defaults to the console.

Value

No value returned, will write to STDOUT or specific file location.

Author(s)

Daniel Lai

Examples

1
2
3
4
5
6
    # Create helix data frame
    helix <- data.frame(2, 8, 3, 0.5)
    helix[2, ] <- c(5, 15, 4, -0.5)
    helix <- as.helix(helix)

    writeHelix(helix)

Example output

Loading required package: Biostrings
Loading required package: BiocGenerics
Loading required package: parallel

Attaching package:BiocGenericsThe following objects are masked frompackage:parallel:

    clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
    clusterExport, clusterMap, parApply, parCapply, parLapply,
    parLapplyLB, parRapply, parSapply, parSapplyLB

The following objects are masked frompackage:stats:

    IQR, mad, sd, var, xtabs

The following objects are masked frompackage:base:

    anyDuplicated, append, as.data.frame, basename, cbind, colnames,
    dirname, do.call, duplicated, eval, evalq, Filter, Find, get, grep,
    grepl, intersect, is.unsorted, lapply, Map, mapply, match, mget,
    order, paste, pmax, pmax.int, pmin, pmin.int, Position, rank,
    rbind, Reduce, rownames, sapply, setdiff, sort, table, tapply,
    union, unique, unsplit, which.max, which.min

Loading required package: S4Vectors
Loading required package: stats4

Attaching package:S4VectorsThe following object is masked frompackage:base:

    expand.grid

Loading required package: IRanges
Loading required package: XVector

Attaching package:BiostringsThe following object is masked frompackage:base:

    strsplit

# 15
i	j	length	value
sh: 1: rm: Permission denied
2	8	3	0.5
5	15	4	-0.5

R4RNA documentation built on Nov. 8, 2020, 5:15 p.m.