-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trans-spliced gene on different sequences #907
Comments
Here's a related issue: #225 |
@gordon wrote… #225 (comment)
NCBI uses the annotation
Could Genometools support this |
For future folk who may stumble on this issue, here's my workaround for now to extract and translate trans-spliced genes that span multiple sequences. I name the sequences # Extract DNA sequences of GFF CDS features from a FASTA file
%.gff.cds.fa: %.gff %.fa
bin/gt-bequeath Name <$< \
| gsed -E 's/Name=([^;]*)/Target=\1 0 0/' \
| gt extractfeat -type CDS -join -coords -target -matchdescstart -retainids -seqid -seqfile $*.fa - \
| gsed -E 's/>(.*target IDs ([^]|]*).*)/>\2_\1/' >$@
# Extract the trans-spliced coding sequences.
%.cds.part.fa: %.cds.fa
seqmagick convert --pattern-include=_part --sort=name-asc --line-wrap=0 $< $@
# Splice the trans-spliced coding sequences.
%.cds.trans.fa: %.cds.part.fa
sed -e 's/_part1//g' -e '/_part[2-9]/d' $< >$@
# Translate protein sequences of GFF CDS features from a FASTA file
%.aa.fa: %.fa
gt seqtranslate -reverse no -fastawidth 0 $< \
| gsed -n '/ (1+)$$/{s/ (1+)$$//;p;n;p;n;n;n;n;}' >$@ For the |
Problem description
Trans-spliced genes on the same sequence work as expected. Trans-spliced genes on different sequences give this error:
A related but different error occurs when multi-features are on separate sequences.
Exact command line call triggering the problem
Example minimal input triggering the problem
What GenomeTools version are you reporting an issue for (as output by
gt -version
)?gt (GenomeTools) 1.5.10
Did you compile GenomeTools from source? If so, please state the
make
parameters used.I installed GenomeTools using brew.
brew install genometools
What operating system (e.g. Ubuntu, Mac OS X), OS version (e.g. 15.10, 10.11) and platform (e.g. x86_64) are you using?
macOS 10.11.6 on x86_64
The text was updated successfully, but these errors were encountered: