Seq

Returns nucleotide or amino acid sequence for a provided ensembl ID or gene symbol.

If gene symbols are provided instead of ensembl IDs for nucleotide sequences those symbols will first be matched to an ensembl ID with the same functionality of ggetrs ensembl lookup-symbol.

All returned sequences are guaranteed to be in the same order as provided ids/symbols.

Arguments

NameShortLongDescription
Translate-t--translateReturn the amino acid sequence instead of nucleotide sequence
Species-s--speciesSpecies to specify when not using an Ensembl ID [default: homo_sapiens]
Output-o--outputoptional filepath to write output to [default=stdout]

Command Line Interface

# recover nucleotide sequence for AP2S1 (ENSG00000042753)
ggetrs seq ENSG00000042753

# recover nucleotide sequence for AP2S1
ggetrs seq AP2S1

# recover nucleotide sequence for AP2S1 (ENSG00000042753) and NSD1
ggetrs seq ENSG00000042753 NSD1

# recover amino acid sequence for AP2S1 (ENSG00000042753)
ggetrs seq -t ENSG00000042753

# recover amino acid sequence for AP2S1
ggetrs seq -t AP2S1

# recover amino acid sequences for AP2S1 and NSD1 and RFX3
ggetrs seq -t AP2S1 NSD1 RFX3

Python

import ggetrs

# recover nucleotide sequence for AP2S1 (ENSG00000042753)
ggetrs.seq(["ENSG00000042753"])

# recover nucleotide sequence for AP2S1
ggetrs.seq(["AP2S1"])

# recover nucleotide sequence for AP2S1 (ENSG00000042753) and NSD1
ggetrs.seq(["ENSG00000042753", "NSD1"])

# recover amino acid sequence for AP2S1 (ENSG00000042753)
ggetrs.seq(["ENSG00000042753"], translate=True)

# recover amino acid sequence for AP2S1
ggetrs.seq(["AP2S1"], translate=True)

# recover amino acid sequences for multiple transcripts
ggetrs.seq(["AP2S1", "NSD1", "RFX3"], translate=True)