writewig: A function to save a list of chromosome-wise x/y data frames...

Description Usage Arguments See Also Examples

Description

Takes a list that contains an $x and $y data.frame for a number of chromosomes and writes it out to a WIG BED style format.

Usage

1
writewig(dat, fname, feature, threshold = 5, zip = F)

Arguments

dat

Chromosome coordinate-value data. dat is a list, each member of a list is a data frame with $x and $y columns containing chromosome positions and associated values. The names of the list elements correspond to the chromosomes.

fname

Filename to which the output should be written

feature

Data description to be incorporated into the WIG header

threshold

Optional threshold to be saved in the WIG file

zip

Wheter to invoke a zip program to compress the file

See Also

~~objects to See Also as help, ~~~

Examples

1
2
3
4
5
## Not run: 
  data <- list("chr1"=data.frame(x=c(100,130,200),y=c(1.2,4.0,2.3)));
  writewig(data,"filename");
  
## End(Not run)

spp documentation built on May 30, 2019, 5:03 p.m.