Usage of 'xtract'
2
1
Entering edit mode
7.0 years ago
cvjuanjo87 ▴ 10

Hello everyone, I tried to use 'xtract' for converting a xml file of taxonomy data, but i got:

$ efetch -db taxonomy -id 10090 -format xml | xtract -Pattern Taxon -first TaxId ScientificName GenbankCommonName Division

Unable to locate xtract executable. Please execute the following:

ftp-cp ftp.ncbi.nlm.nih.gov /entrez/entrezdirect xtract.Linux.gz gunzip -f xtract.Linux.gz chmod +x xtract.Linux

I tried to do this, but i still the same.

I hope what I have requested is possible.

xtract edirect • 2.8k views
ADD COMMENT
2
Entering edit mode
7.0 years ago
DCGenomics ▴ 330

Try a fresh download of Entrez Direct. The current version has an xtract wrapper that launches the appropriate precompiled binary, in this case xtract.Linux.

Xtract was rewritten two years ago, replacing the original Perl implementation, and now always handles recursive data structures. Thus, the capitalized -Pattern is deprecated in favor of the normal -pattern. Furthermore, by default it will only show the top-level data. Additional exploration with -group or -block can go down one level at a time (e.g., -block /Taxon), or do a recursive exploration of each level for deeply-nested data (e.g., -block */Gene-commentary_accession).

ADD COMMENT
1
Entering edit mode
7.0 years ago
GenoMax 147k

The executable appears to be named xtract.linux. You could try cp -pi xtract.linux xtract and see if that works.

ADD COMMENT

Login before adding your answer.

Traffic: 2431 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6