Learn R Programming

CancerGram (version 1.0.0)

read_txt: Read sequences from .txt file

Description

Read sequence data in a fasta format saved in text file.

Usage

read_txt(connection)

Arguments

connection

a connection to the text (.txt) file.

Value

a list of sequences.

Details

The input file should contain one or more amino acid sequences separated by empty line(s) in a fasta format.

Examples

Run this code
# NOT RUN {
(sequences <- read_txt(system.file("CancerGram/prots.txt", package = "CancerGram")))
# }

Run the code above in your browser using DataLab