Hi Pierre, thank you so much! This xlst seems like a promising tool. Please help me understand a few queries:
a) "using XSLT , assuming it's mRNA, 5'->3', with the correct annotation. I'm extracting the position of the left and right CDS:"
I have never actually given thought to, whether mRNA 5' -> 3' or vice versa. I thought the file from which the UTRs are to be extracted are well annotated with all necessary information. Do I need to be careful when extracting such info from entrez?
b) I ran your script and it worked like charm, however, could you please help me understand briefly what is the script "transform.xls" doing? It will help me to have a clear idea.
c) Please let me know how you got the refseqids for this search here:
$ wget -q -O - "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=nucleotide&id=`NM_007299.3`&id=**NR_027676.1**&id=**NM_007299.3**&id=`NM_007298.3`&retmode=xml" | xsltproc --novalid transform.xsl - | fold -w 60
d) After I have got the 5' and 3' UTRs, I need to extract the SNPs and their positions,could you please share how this could be done using xslt?
Thanks much!
Isn't this question same as SNPs; entrez utilities ?
Not exactly, because in that I had no idea of the approach. Here, I have found a way, but having errors and missing features to get the SNPs.
If you put the code in a file, make it executable and run it, it produces a result.
truncated for brevity.
You will need to change your query (e.g.
-query "BRCA") to get what you need.Thanks! but when I run I keep getting this error above
Unrecognized argument '-if' No -element before 'INSDFeature_key' Unrecognized argument '-equals' No -element before 'CDS'*
Are you using the
bashshell? If not, issue the commandbashand then run the file at the new system prompt that should show up.OK, Thanks. I will try and update here.
I have it on good information that if you update your implementation of eutils, this should work fine.