extractFasta: This function extract the sequences of a specific genome from...

Description Usage Arguments Value Examples

View source: R/extractGenome.R

Description

This function extract the sequences of a specific genome from a mulitple fasta file

Usage

1

Arguments

lines

a vector that contains lines of an extended.fasta file

genome

the name of the genome, that should be extracted

Value

the vector, which contains the sequences of the interested genome

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Create pseudo extended fasta file
fasta <- c(
    ">1001705at2759|HUMAN@9606@3|Q15291|1",
    "MNLELLESFGQNYPEEADGTLDCISMALTCTFNRWGT",
    ">1489230at2759|ARATH@3702@2|3702_0:005bc2|1",
    "MAGRATIPARNSALIAMIADEDTVVGFLMAGVGNVDIRRKTNYLIVDS"
)
## Extract extended fasta of HUMAN@96063
newFasta <- extractFasta(fasta, "HUMAN@9606@3")
print(newFasta)

giangnguyen0709/fCAT documentation built on Feb. 10, 2021, 4:31 a.m.