Comments (4)
Hi @bsb2014 - The code for handling iupac bases in protein translation is here:
GFF3toolkit/gff3tool/bin/gff3_to_fasta.py
Line 57 in 9b36c5c
Basically, we build an array of all possible codon combinations of ATGC in line 56; then add all known codons with iupac bases to that array in line 57. Line 58 defines an array with the amino acid symbols (in matched order to the array of codons), then line 59 combines the 2 arrays into a dictionary.
Hth, let us know if you have any questions!
from gff3toolkit.
Is it possible to add a function to translate codons with iupac bases to "-"? Thanks
from gff3toolkit.
Do you mean IUPAC symbols that code for multiple bases (e.g. R stands for G or A)? Unfortunately we don't have capacity to develop new features for this package. Perhaps you could change symbols that code for multiple bases to N's in your nucleotide sequence, if you have valid reasons to do this. I wouldn't change the nucleotide sequence or protein translation without a really good reason, though.
from gff3toolkit.
As for my case, the IUPAC bases (e.g. R) in the fasta means sequencing errors or heterozygous regions. I would like to label the amino acids if they were translated from these IUPAC bases. Thanks
from gff3toolkit.
Related Issues (20)
- gff3_fix - problem with split function HOT 1
- Pip install HOT 3
- Add Support for GZIP/BGZIP Compressed Files HOT 3
- gff3_fix error HOT 9
- can't install HOT 9
- gff3_merge user-defined file option does not work in python 3
- gff3_merge iteritems error HOT 3
- Anaconda have something wrong when runing example script HOT 2
- Update error handling in gff3_QC HOT 4
- ValueError: max() arg is an empty sequence HOT 3
- gff3_fix error HOT 5
- removing models from a list HOT 2
- inquiry about "gff3_to_fasta -st user_defined -u mRNA CDS" HOT 5
- Error when running gff3_ID_generator.py HOT 4
- SeqID does not end with a number. HOT 6
- KeyError: 'replace' HOT 6
- Error in gff3_fix HOT 1
- Problem with "gff3_ID_generator.py" HOT 8
- Program gff3_sort encountered an error.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gff3toolkit.