Last data update: 2014.03.03

R: Rewrite result from SeqFeatRs assoctuple
rewritetupleR Documentation

Rewrite result from SeqFeatRs assoctuple

Description

Function to reqrite output from SeqFeatRs assoctuple into an usable form for SeqFeatRs tartan.

Usage

rewritetuple(path_to_file_assoctuple_csv_result = NULL, save_name_csv, 
first_position, second_position, value_position, separator, threshold)

Arguments

path_to_file_assoctuple_csv_result

csv file with results from SeqFeatRs assoctuple function. For reference see example file.

save_name_csv

name of file to which results are saved in csv format.

first_position

column position of first sequence position.

second_position

column position of second sequence position.

value_position

column position of p-value.

separator

separator of csv input file (usually ";", ",", "\t").

threshold

p-value threshold, below which data is to be included in result.

Details

Extracts the two sequence positions and p-value if it is below the threshold and generates output csv file for SeqFeatRs tartan with these values.

Author(s)

Bettina Budeus

See Also

assoctuple

Examples

#Input file
assoctuple_result <- system.file("extdata", "assoctuple_result.csv", package="SeqFeatR")

#Usage
rewritetuple(
	path_to_file_assoctuple_csv_result=assoctuple_result, 
	save_name_csv="rewritetuple_result.csv", 
	first_position=3, 
	second_position=4, 
	value_position=10, 
	separator="\t", 
	threshold=0.1)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(SeqFeatR)
Error in library(SeqFeatR) : there is no package called 'SeqFeatR'
Execution halted