getNameField: Get Namefield From Read Annotation

Description Usage Arguments Examples

View source: R/getNameField.R

Description

This function extract keywords from read annotation.

Usage

1
2
3
4
5
6
7
getNameField(object, split = NULL)

## S3 method for class 'SeqFasta'
getNameField(object, split = "=| |[|]")

## S3 method for class 'SeqFastq'
getNameField(object, split = "=| |[|]")

Arguments

object

class 'SeqFastq'/'SeqFasta' object

split

characters to split the annotation line

Examples

1
2
3
file = system.file('data/ref.fa', package = 'seqtools')
fasta = read.fasta(file)
getNameField(fasta[[1]])

jerry955071/seqtools documentation built on Jan. 10, 2021, 4:41 p.m.