ns.read.table: Read sequence from a tab separated file

Description Usage Arguments Details Value Note Author(s) References Examples

Description

Read a tab separated file and put the read sequences in a character vector.

Usage

1
  ns.read.table(ffile,name.col = 1,seq.col=2,header=FALSE)

Arguments

ffile

A character vector containing filename to read

seq.col

The column number of the table containing the sequence

name.col

The column number of the table containing an identifier of the sequence. If the value 0 is given. Then no identifiers are assigned

header

Flag if the first line of the file contains a header. The content of the header is ignored.

Details

The function reads a tab separated file in which one of the columns

Value

The function returns a character vector containing the sequences. The names of the sequences are the set if the name.col to the column number containing the names.

Note

No error checking is done currently so beware.

Author(s)

Wim de Leeuw (w.c.deLeeuw@uva.nl)

References

Examples

1
2
3
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

UvA-MAD/SeqLibR documentation built on May 9, 2019, 9:40 p.m.