GetSequenceNow: Function to get the sequence of a gene in fasta format

Description Usage Arguments Value Examples

View source: R/GetSequenceNow.R

Description

Function to get the sequence of a gene in fasta format

Usage

1
2
GetSequenceNow(gen_name = NULL, dl_folder, gen_id, fasta_name,
  protein = FALSE)

Arguments

gen_name

Name of the genome/folder. Has to be the same as in MakeGenPlot

dl_folder

Path to the the download folder. Has to be the same as in MakeGenPlot

gen_id

Name of the wanted gene (The gene name of a gene in a plot of MakeGenPlot when show_gen_id = TRUE)

fasta_name

The first line in the fasta file "> gen_id, strand = ... , fasta_name"

protein

Logical. To get the protein sequence instead of the nucleotide sequence: protein = TRUE

Value

A fasta file with the sequence of the given gene.

Examples

1
2
3
4
5
GetSequenceNow(gen_name = "Flavobacterium_ir1",
               dl_folder = "C:/Users/Downloads",
               gen_id = "B4N84_RS04735",
               fasta_name = "Bladibladibla",
               protein = TRUE)

uashogeschoolutrecht/scPlot documentation built on Nov. 23, 2019, 11:27 a.m.