View source: R/sequence_parsing.R
protein_from_sequence | R Documentation |
Translate protein sequences from a corresponding fasta sequences, given start, end and strand. Ideal for getting all protein sequences within a gggenesdf if the fasta sequences from the gff3 file has been extracted.
protein_from_sequence(fasta_sequence, start, end, strand)
fasta_sequence |
String of the fasta sequence |
start |
Integer of the start position of the feature to be translated in the fasta_sequence |
end |
Integer of the end position of the feature to be translated in the fasta_sequence |
strand |
Orientation of the feature to be translated ("+", or "-") |
Protein sequence
protein_from_sequence(List of fasta_sequence, start, end, strand)
#Particularly useful if wanting to get all the protein sequences in one/several gff3 files for comparison, e.g. running CDhit:
#E.g. Taking a bunch of gff files in a directory:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.