Yes it works. Thank you so much!
• 0 views
•
link
I have a gff file containing genes predicted by AUGUSTUS, the file already containing CDS, exons, and protein sequences. I need to extract protein sequence from the file using bash.
Oh, I see. Strange, and more complicated output. Not impossible though. I'm assuming you want the hash (#) and space removed from the beginning of each protein sequence as well.
Let me know if this does the trick for you:
awk '/# protein sequence/{a=1}/# Evidence/{a=0}a' Genes.gff | sed 's/# //'
Yes it works. Thank you so much!
Log in to answer this question.
You can use awk. Replace 1 with the column number where your sequences are.
I am a beginner I don't understand why there is a sequence already in the gff format. however, I need to extract the sequence itself to map it You can check a screenshot https://drive.google.com/file/d/1OEw1g0Ayjr7a7yOyPVG0Fsz7rdjmDEPu/view?usp=sharing
Please do not post the images of the data instead of posting data.