Learn R Programming

ior (version 1.1.2)

Rfasta.next: demonstrate a small footprint fasta I/O approach in R

Description

demonstrate a small footprint fasta I/O approach in R

Usage

Rfasta.next(fn)

Arguments

fn
a connection with mode "r"

Value

    Examples

    Run this code
    fn = connFasta(system.file("extdata/rs_chLG1.fas", package="ior"))
    Rfasta.next(fn)
    unix.time(for(i in 1:10000) Rfasta.next(fn))
    close(fn)
    fn = fasta.open(system.file("extdata/rs_chLG1.fas", package="ior"))
    unix.time(for(i in 1:10000) fasta.next(fn))

    Run the code above in your browser using DataLab