readToList: Make a list file from large chromosome Fasta file

Description Usage Arguments Value Examples

View source: R/readToList.R

Description

Make a list file from large chromosome Fasta file

Usage

1
readToList(id = id, text = text, con = con)

Arguments

id

The id list made from subFasID function

text

Large character read in by readLines function from Fasta file

con

A connection object or a character string, the connection must refer to the same Fasta file as text

Value

Chromosome Fasta file in list format.

Examples

1
2
3
4
5
6
data("text")
id <- subFasID(text = text)
fil <- tempfile(fileext = ".data")
write(text,file = fil)
con0 <- file(fil, "r")
tex <- readToList(id,text = text,con = con0)

chromseq documentation built on July 1, 2020, 10:24 p.m.