I'm trying to retrieve exon ranges for a gene from GenBank format
efetch -id NG_007086.2 -format gb -mode xml -db nucleotide | xtract -pattern GBFeature -match GBFeature_key: exon -first GBFeature_location
but it's giving me error message saying
ERROR: Unexpected 'exon' argument after 'GBFeature_key', I tried to play around with
GBFeature_key: exon, but couldn't get it right.
I followed their tutorial demo: https://ftp.ncbi.nlm.nih.gov/pub/education/public_webinars/2016/06Jun29_Exons/Gene_Exon_Demos.txt
Any help would be greatly appreciated