Your code is work but not gives sequence properties. (ID etc)
• 0 views
•
link
I have protein file in fasta format and I want to find the longest sequence. What should I do? The codes I found did not solve my problem, as they included the nomenclature in the length.
Here is one option using GNU tools only:
grep -v '>' seq.fasta | awk '{print $0"\t"length($0)}' | sort -n -k2 -r
Log in to answer this question.
How to extract the longest isoform from multi fasta file
Thank you for answer but your code is not solve my problem :/
so, show us what you tried, and what failed and why.
I thought I included the code but I'm unpublished, sorry.
The fasta file I have is as follows
I want to find the longest sequence in this file excluding naming. However, when I run the code you have given, it does not give an error and does not give any output.
the code(s) was/were an inspiration. You should understand it and adapt it to your needs.