Debian Codegraph @

README

raw
1 ENTREZ DIRECT: COMMAND LINE ACCESS TO NCBI ENTREZ DATABASES
2
3 Searching, retrieving, and parsing data from NCBI databases through the Unix command line.
4
5 INTRODUCTION
6
7 Entrez Direct (EDirect) provides access to Entrez, the NCBI's suite of interconnected databases, from a Unix terminal window. Search terms are entered as command-line arguments. Individual operations are connected with Unix pipes to construct multi-step queries. Selected records can then be retrieved in a variety of formats.
8
9 PROGRAMMATIC ACCESS
10
11 EDirect connects to Entrez through the Entrez Programming Utilities interface. It supports searching by indexed terms, looking up precomputed neighbors or links, filtering results by date or category, and downloading record summaries or reports.
12
13 Navigation programs (esearch, elink, efilter, and efetch) communicate by means of a small structured message, which can be passed invisibly between operations with a Unix pipe. The message includes the current database, so it does not need to be given as an argument after the first step.
14
15 Accessory programs (nquire, transmute, and xtract) can help eliminate the need for writing custom software to answer ad hoc questions. Queries can move seamlessly between EDirect programs and Unix utilities or scripts to perform actions that cannot be accomplished entirely within Entrez.
16
17 NAVIGATION FUNCTIONS
18
19 Esearch performs a new Entrez search using terms in indexed fields. It requires a -db argument for the database name and uses -query for the search terms. For PubMed, without field qualifiers, the server uses automatic term mapping to compose a search strategy by translating the supplied query:
20
21 esearch -db pubmed -query "selective serotonin reuptake inhibitor"
22
23 Search terms can also be qualified with a bracketed field name to match within the specified index:
24
25 esearch -db nuccore -query "insulin [PROT] AND rodents [ORGN]"
26
27 Elink looks up precomputed neighbors within a database, or finds associated records in other databases, or uses the NIH Open Citation Collection service (PMID 31600197) to follow reference lists:
28
29 elink -related
30
31 elink -target gene
32
33 elink -cited
34
35 elink -cites
36
37 Efilter limits the results of a previous query, with shortcuts that can also be used in esearch:
38
39 efilter -molecule genomic -location chloroplast -country sweden -mindate 1985
40
41 Efetch downloads selected records or reports in a style designated by -format:
42
43 efetch -format abstract
44
45 Individual query commands are connected by a Unix vertical bar pipe symbol:
46
47 esearch -db pubmed -query "tn3 transposition immunity" | efetch -format apa
48
49 The vertical bar also allows query steps to be placed on separate lines:
50
51 esearch -db pubmed -query "raynaud disease AND fish oil" |
52 efetch -format medline
53
54 Each program has a -help command that prints detailed information about available arguments.
55
56 EDirect programs are designed to work on large sets of data. There is no need to use a script to loop over records in small groups, or write code to retry a query after a transient network or server failure, or add a time delay between requests. All of those features are already built into the system.
57
58 ACCESSORY PROGRAMS
59
60 Nquire retrieves data from remote servers with URLs constructed from command line arguments:
61
62 nquire -get https://icite.od.nih.gov api/pubs -pmids 2539356 |
63
64 Transmute converts a concatenated stream of JSON objects or other structured formats into XML:
65
66 transmute -j2x |
67
68 Xtract uses waypoints to navigate complex XML hierarchies, and obtains data values by field name:
69
70 xtract -pattern data -element cited_by |
71
72 The resulting output can be post-processed by Unix utilities or scripts:
73
74 fmt -w 1 | sort -V | uniq
75
76 INSTALLATION
77
78 EDirect consists of a set of scripts and programs that are downloaded to the user's computer. To install the software, open a terminal window and execute one of the following two commands:
79
80 sh -c "$(curl -fsSL https://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/install-edirect.sh)"
81
82 sh -c "$(wget -q https://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/install-edirect.sh -O -)"
83
84 One installation is complete, run the following to set the PATH for the current terminal session:
85
86 export PATH=${HOME}/edirect:${PATH}
87
88 For best performance, obtain an API Key from NCBI, and place the following line in your .bash_profile and .zshrc configuration files:
89
90 export NCBI_API_KEY=unique_api_key
91
92 DISCOVERY BY NAVIGATION
93
94 PubMed related articles are identified by a statistical text retrieval algorithm using the title, abstract, and medical subject headings (MeSH terms). The connections between papers can be used for making discoveries. An example of this is finding the last enzymatic step in the vitamin A biosynthetic pathway.
95
96 Lycopene cyclase in plants converts lycopene into beta-carotene, the immediate biochemical precursor of vitamin A. Beta-Carotene is an essential nutrient, required in the diet of herbivores. This indicates that lycopene cyclase is not present in animals (with a few exceptions caused by horizontal gene transfer), and that the enzyme responsible for converting beta-carotene into vitamin A is not present in plants.
97
98 An initial search on the lycopene cyclase enzyme finds 306 articles. Looking up precomputed neighbors returns 19,146 papers, some of which might be expected to discuss other enzymes in the pathway:
99
100 esearch -db pubmed -query "lycopene cyclase" | elink -related |
101
102 We cannot reliably limit the results to animals in PubMed, but we can for sequence records, which are indexed by the NCBI taxonomy. Linking the publication neighbors to their associated protein records finds 604,878 sequences. Restricting those to mice excludes plants, fungi, and bacteria, which eliminates the earlier enzymes:
103
104 elink -target protein | efilter -organism mouse -source refseq |
105
106 This matches only 32 sequences, which is small enough to examine by retrieving the individual records:
107
108 efetch -format fasta
109
110 As anticipated, the results include the enzyme that splits beta-carotene into two molecules of retinal:
111
112 ...
113 >NP_067461.2 beta,beta-carotene 15,15'-dioxygenase isoform 1 [Mus musculus]
114 MEIIFGQNKKEQLEPVQAKVTGSIPAWLQGTLLRNGPGMHTVGESKYNHWFDGLALLHSFSIRDGEVFYR
115 SKYLQSDTYIANIEANRIVVSEFGTMAYPDPCKNIFSKAFSYLSHTIPDFTDNCLINIMKCGEDFYATTE
116 ...
117
118 A better example used Entrez protein neighbors to instantly rediscover the similarity between a human colon cancer gene and microbial DNA repair genes. Unfortunately, precomputed BLAST links were discontinued due to the exponential growth of the sequence databases.
119
120 XML DATA EXTRACTION
121
122 The ability to obtain Entrez records in structured format, and to easily extract the underlying data, allows the user to ask novel questions that are not addressed by existing analysis software.
123
124 The xtract program uses command-line arguments to direct the conversion of data in eXtensible Markup Language format. It allows record detection, path exploration, element selection, conditional processing, and report formatting to be controlled independently.
125
126 The -pattern command partitions an XML stream by object name into individual records that are processed separately. Within each record, the -element command does an exhaustive, depth-first search to find data content by field name.
127
128 Neither explicit object paths nor complicated path formulas are needed for element identification.
129
130 FORMAT CUSTOMIZATION
131
132 By default, the -pattern argument divides the results into rows, while placement of data into columns is controlled by -element, to create a tab-delimited table.
133
134 Formatting commands allow extensive customization of the output. The line break between -pattern rows is changed with -ret, while the tab character between -element columns is modified by -tab.
135
136 Multiple instances of the same element are distinguished using -sep, which controls their separation independently of the -tab command. The following query:
137
138 efetch -db pubmed -id 6271474,6092233,16589597 -format docsum |
139 xtract -pattern DocumentSummary -sep "|" -element Id PubDate Name
140
141 returns a tab-delimited table with individual author names separated by vertical bars:
142
143 6271474 1981 Casadaban MJ|Chou J|Lemaux P|Tu CP|Cohen SN
144 6092233 1984 Jul-Aug Calderon IL|Contopoulou CR|Mortimer RK
145 16589597 1954 Dec Garber ED
146
147 The -sep value also applies to distinct -element arguments that are grouped with commas. This can be used to keep data from multiple related fields in the same column:
148
149 -sep " " -element Initials,LastName
150
151 The -def command sets a default placeholder to be printed when none of the comma-separated fields in an -element clause are present:
152
153 -def "-" -sep " " -element Year,Month,MedlineDate
154
155 Repackaging commands (-wrp, -enc, and -pkg) wrap extracted data values with bracketed XML tags given only the object name. For example, "-wrp Word" issues the following formatting instructions:
156
157 -pfx "<Word>" -sep "</Word><Word>" -sfx "</Word>"
158
159 It also sets an internal flag to ensure that data values containing encoded ampersands, angle brackets, apostrophes, and quotation marks remain properly encoded inside the new XML.
160
161 ELEMENT VARIANTS
162
163 Derivatives of -element were created to avoid the inconvenience of having to write post-processing scripts to perform trivial modifications or calculations on extracted data. Other variants were added for content normalization, report formatting, or index generation. They are subdivided into several categories. Substitute for -element as needed. A representative selection is shown below:
164
165 Positional: -first, -last, -even, -odd, -backward
166 Numeric: -num, -len, -inc, -dec, -mod, -bin, -hex, -bit, -sqt, -lge, -lg2, -log
167 Statistics: -sum, -acc, -min, -max, -dev, -med, -avg, -geo, -hrm, -rms
168 Character: -upper, -lower, -title, -mirror, -alpha, -alnum
169 Text: -terms, words, -pairs, -letters, -split, -order, -reverse, -prose
170 Sequence: -revcomp, -fasta, -ncbi2na, -cds2prot, -molwt, -pept
171 Citation: -year, -month, -date, -auth, -initials, -page, -author, -journal
172 Other: -doi, -wct, -trim, -pad, -accession, -numeric
173
174 The original -element prefix shortcuts, "#" and "%", are redirected to -num and -len, respectively.
175
176 VALUE SUBSTITUTION
177
178 External values can be inserted by reading a two-column, precomputed file or ad hoc conversion table with -transform, and then requesting a replacement by applying -translate to an element:
179
180 xtract -transform accn-to-uid.txt ... -translate Accession
181
182 xtract -transform <( echo -e "Genomic\t1\nCoding\t2\nProtein\t3\n" ) ...
183
184 PARSING FIELDS
185
186 The -with and -split commands can parse multiple clauses that are packed into a single field:
187
188 -wrp Item -with ";" -split Attributes
189
190 SUBSTRING LIMITS
191
192 A subrange is selected with start and stop positions inside square brackets and separated by a colon. Endpoints for removal of specific prefix and suffix strings are indicated by a vertical bar inside brackets:
193
194 -author Initials[1:1],LastName -prose "Title[phospholipase | rattlesnake]"
195
196 -wrp Tag -element "Item[|=]" -wrp Val -element "Item[=|]"
197
198 LOCAL CONTEXT
199
200 An -element argument can use the parent / child construct to limit selection when items can only be disambiguated by position, not by name. In this case it prevents the display of additional PMIDs that might be present in CommentsCorrections objects deeper in the MedlineCitation container:
201
202 xtract -pattern PubmedArticle -element MedlineCitation/PMID
203
204 EXPLORATION CONTROL
205
206 Exploration commands allow precise control over the order in which XML record contents are examined, by separately presenting each instance of the chosen subregion. This limits what subsequent commands "see" at any one time, allowing related fields in an object to be kept together.
207
208 In contrast to the simpler DocumentSummary format, records retrieved as PubmedArticle XML:
209
210 efetch -db pubmed -id 1413997 -format xml |
211
212 have authors with separate fields for last name and initials:
213
214 <Author>
215 <LastName>Mortimer</LastName>
216 <Initials>RK</Initials>
217 </Author>
218
219 Without being given any guidance about context, an -element command on initials and last names:
220
221 xtract -pattern PubmedArticle -element Initials LastName
222
223 will explore the current record for each argument in turn, printing all initials followed by all last names:
224
225 RK CR JS Mortimer Contopoulou King
226
227 Inserting a -block command adds another exploration layer between -pattern and -element, and redirects data exploration to present the authors one at a time:
228
229 xtract -pattern PubmedArticle -block Author -element Initials LastName
230
231 Each time through the loop, the -element command only sees the current author's values. This restores the correct association of initials and last names in the output:
232
233 RK Mortimer CR Contopoulou JS King
234
235 Grouping the two author subfields with a comma, and adjusting the -sep and -tab values:
236
237 xtract -pattern PubmedArticle -block Author \
238 -sep " " -tab ", " -element Initials,LastName
239
240 produces a more traditional formatting of author names:
241
242 RK Mortimer, CR Contopoulou, JS King
243
244 NESTED EXPLORATION
245
246 Exploration command names (-group, -block, and -subset) are assigned to a precedence hierarchy:
247
248 -pattern > -group > -block > -subset > -element
249
250 and are combined in ranked order to control object iteration at progressively deeper levels in the XML data structure. Each command argument acts as a "nested for-loop" control variable, retaining information about the context, or state of exploration, at its level.
251
252 A nucleotide or protein sequence record can have multiple features. Each feature can have multiple qualifiers. And every qualifier has separate name and value nodes. Exploring this natural data hierarchy, with -pattern for the sequence, -group for the feature, and -block for the qualifier:
253
254 efetch -db nuccore -id NM_021486.4 -format gbc |
255 xtract -pattern INSDSeq -element INSDSeq_accession-version \
256 -group INSDFeature -deq "\n\t" -element INSDFeature_key \
257 -block INSDQualifier -deq "\n\t\t" \
258 -element INSDQualifier_name INSDQualifier_value
259
260 keeps qualifiers, such as gene and product, associated with their parent features, and keeps qualifier names and values together on the same line:
261
262 NM_021486.4
263 source
264 organism Mus musculus
265 mol_type mRNA
266 gene
267 gene Bco1
268 CDS
269 gene Bco1
270 product beta,beta-carotene 15,15'-dioxygenase isoform 1
271 protein_id NP_067461.2
272 translation MEIIFGQNKKEQLEPVQAKVTGSIPAWLQGTLLRNGPGM ...
273 ...
274
275 SAVING DATA IN VARIABLES
276
277 A value can be recorded in a variable and used wherever needed. Variables are created by a hyphen followed by a name consisting of a string of capital letters or digits (e.g., -KEY). Saved values are retrieved by placing an ampersand before the variable name (e.g., "&KEY") in an -element statement:
278
279 efetch -db nuccore -id NM_021486.4 -format gbc |
280 xtract -pattern INSDSeq -element INSDSeq_accession-version \
281 -group INSDFeature -KEY INSDFeature_key \
282 -block INSDQualifier -deq "\n\t" \
283 -element "&KEY" INSDQualifier_name INSDQualifier_value
284
285 This prints the feature key on each line before the qualifier name and value, even though the feature key is now outside of the visibility scope (which is the current qualifier):
286
287 NM_021486.4
288 source organism Mus musculus
289 source mol_type mRNA
290 gene gene Bco1
291 CDS gene Bco1
292 CDS product beta,beta-carotene 15,15'-dioxygenase isoform 1
293 CDS protein_id NP_067461.2
294 CDS translation MEIIFGQNKKEQLEPVQAKVTGSIPAWLQGTLLRNGPGM ...
295 ...
296
297 Variables can be (re)initialized with an explicit literal value inside parentheses. A variable can also save the modified data resulting from an -element variant operation. This can allow multiple sequential transitions within a single xtract command:
298
299 -COM "(, )" -END -sum "Start,Length" -MID -avg "Start,&END"
300
301 CONDITIONAL EXECUTION
302
303 Conditional processing commands (-if and -unless) restrict object exploration by data content. They check to see if the named field is within the scope, and may be used in conjunction with string, numeric, or object constraints to require an additional match by value. Use -and and -or to build compound tests, and -select to remove records that do not satisfy the condition. For example:
304
305 esearch -db pubmed -query "Havran W [AUTH]" | efetch -format xml |
306 xtract -pattern PubmedArticle -select Language -equals eng |
307 xtract -pattern PubmedArticle \
308 -block Author -if LastName -is-not Havran \
309 -sep ", " -tab "\n" -author LastName,Initials[1:1] |
310 sort-uniq-count-rank
311
312 limits the results to papers written in English and prints a table of the most frequent collaborators, using a range to keep only the first initial so that variants like "Berg, C" and "Berg, CM" are combined:
313
314 35 Witherden, D
315 15 Boismenu, R
316 12 Jameson, J
317 10 Allison, J
318 10 Fitch, F
319 ...
320
321 Numeric constraints can compare the integer values of two fields. This can be used to find genes that are encoded on the minus strand of a particular chromosome:
322
323 -if ChrLoc -equals X -and ChrStart -gt ChrStop
324
325 Object constraints will compare the string values of two named fields, and can look for internal inconsistencies between fields whose contents should (in most cases) be identical:
326
327 -if Chromosome -differs-from ChrLoc
328
329 The -position command restricts presentation of objects by relative location or index number:
330
331 -block Author -position last -sep ", " -element Lastname,Initials
332
333 The -else command can run an alternative -element or -lbl instruction if the condition is not satisfied:
334
335 -if ChrStart -gt ChrStop -lbl "minus strand" -else -lbl "plus strand"
336
337 GENERATING ATTRIBUTES
338
339 Additional commands (-tag, -att, -atr, -cls, -slf, and -end) allow generation of XML tags with attributes. The following will produce regular and self-closing XML objects, respectively:
340
341 -tag Item -att type journal -cls -element Source -end Item
342
343 <Item type="journal">J Bacteriol</Item>
344
345 -tag Item -att type journal -atr name Source -slf
346
347 <Item type="journal" name="J Bacteriol" />
348
349 XML NAMESPACES
350
351 Namespace prefixes are followed by a colon, while a leading colon matches any prefix:
352
353 nquire -url http://webservice.wikipathways.org getPathway -pwId WP455 |
354 xtract -pattern "ns1:getPathwayResponse" -decode ":gpml" |
355
356 The embedded Graphical Pathway Markup Language object can then be processed:
357
358 xtract -pattern Pathway -block Xref \
359 -if @Database -equals "Entrez Gene" \
360 -tab "\n" -element @ID
361
362 AUTOMATIC FORMAT CONVERSION
363
364 Xtract can now detect and convert input data in JSON, text ASN.1, and GenBank/GenPept flatfile formats. Explicit transmute or shortcut commands are only needed for inspecting the intermediate XML or for overriding the default conversion settings.
365
366 MULTI-STEP TRANSFORMATIONS
367
368 Although xtract provides -element derivatives to do simple data manipulation, more complex tasks may be broken up into a series of simpler transformations, also known as "processing chains".
369
370 BioSample document summaries:
371
372 efetch -db biosample -id SAMN38051082 -format docsum |
373
374 store preferred qualifier names in a "harmonized_name" XML attribute:
375
376 <Attribute harmonized_name="strain">BALB/c</Attribute>
377 <Attribute harmonized_name="isolate">Mtb infected Spleen MZB-2</Attribute>
378 <Attribute harmonized_name="geo_loc_name">Singapore</Attribute>
379
380 Piping the data to the first xtract command, and using the "@" sign to select the attribute:
381
382 xtract -rec BioSampleInfo -pattern DocumentSummary \
383 -wrp Accession -element Accession \
384 -group Attribute -if @harmonized_name \
385 -TAG -lower @harmonized_name -wrp "&TAG" -element Attribute |
386
387 generates an intermediate form, with XML tag names taken from the original XML attributes:
388
389 <BioSampleInfo>
390 <Accession>SAMN38051082</Accession>
391 <strain>BALB/c</strain>
392 <isolate>Mtb infected Spleen MZB-2</isolate>
393 <geo_loc_name>Singapore</geo_loc_name>
394 ...
395
396 Desired fields can then be selected by name in the second xtract command:
397
398 xtract -pattern BioSampleInfo -def "-" -first Accession \
399 geo_loc_name strain isolate
400
401 BIOLOGICAL DATA IN ENTREZ
402
403 EDirect provides additional functions, scripts, and exploration constructs to simplify the extraction of complex data obtained from the interconnected Entrez biological databases.
404
405 SEQUENCE QUALIFIERS
406
407 The NCBI data model for sequence records (PMID 11449725) is based on the central dogma of molecular biology. Sequences, including genomic DNA, messenger RNAs, and protein products, are "instantiated" with the actual sequence letters, and are assigned accession numbers for reference.
408
409 Features contain information about the biology of a region, including the transformations involved in gene expression. Qualifiers store specific details about a feature (e.g., name of the gene, genetic code used for protein translation, accession of the product sequence, cross-references to external databases).
410
411 A gene feature indicates the location of a heritable region of nucleic acid that confers a measurable phenotype. An mRNA feature on genomic DNA represents the exonic and untranslated regions that remain after message transcription and intron splicing. A coding region (CDS) feature has a product reference to the translated protein sequence record.
412
413 As a convenience for exploring sequence records, the xtract -insd helper function generates the appropriate nested extraction commands from feature and qualifier names on the command line. (Two computed qualifiers, feat_location and sub_sequence, are also supported.)
414
415 SNAIL VENOM PEPTIDE SEQUENCES
416
417 A search for cone snail venom mature peptides:
418
419 esearch -db protein -query "conotoxin" -feature mat_peptide |
420 efetch -format gpc |
421 xtract -insd complete mat_peptide "%peptide" product mol_wt peptide |
422 grep -i conotoxin | sort-table -u -k 2,2n
423
424 uses the -insd function to print the accession number, mature peptide length, product name, calculated molecular weight, and amino acid sequence for a sample of neurotoxic peptides::
425
426 ADB43131.1 15 conotoxin Cal 1b 1708 LCCKRHHGCHPCGRT
427 ADB43128.1 16 conotoxin Cal 5.1 1829 DPAPCCQHPIETCCRR
428 AIC77105.1 17 conotoxin Lt1.4 1705 GCCSHPACDVNNPDICG
429 ADB43129.1 18 conotoxin Cal 5.2 2008 MIQRSQCCAVKKNCCHVG
430 ADD97803.1 20 conotoxin Cal 1.2 2206 AGCCPTIMYKTGACRTNRCR
431 AIC77085.1 21 conotoxin Bt14.8 2574 NECDNCMRSFCSMIYEKCRLK
432 ADB43125.1 22 conotoxin Cal 14.2 2157 GCPADCPNTCDSSNKCSPGFPG
433 ...
434
435 SNP-MODIFIED PRODUCT PAIRS
436
437 Single nucleotide polymorphisms can represent different substitutions at the same position, but variation records do not explicitly match a specific CDS modification to its altered protein product:
438
439 efetch -db snp -id 11549407 -format docsum |
440
441 The hgvs2spdi script converts 1-based HGVS data ("NM_000518.5:c.118C>T") into 0-based SPDI format ("NM_000518.5:167:C:T"). For SNPs on cDNA transcripts the position is CDS-relative, and the script retrieves the GenBank record in order to calculate the absolute sequence offset:
442
443 snp2hgvs | hgvs2spdi | spdi2tbl |
444
445 The normalized results are saved in a tab-delimited data table:
446
447 rs11549407 NC_000011.10 5226773 G A Genomic Substitution HBB
448 rs11549407 NM_000518.5 167 C T Coding Substitution HBB
449 rs11549407 NP_000509.1 39 Q * Protein Termination HBB
450 rs11549407 NP_000509.1 39 Q E Protein Missense HBB
451 ...
452
453 A final step then translates the coding region locations (after nucleotide substitution), and sorts them with protein sequences (after residue replacement):
454
455 tbl2prod
456
457 to produce adjacent matching CDS/protein pairs:
458
459 rs11549407 NM_000518.5:167:C:T MVHLTPEEKSAVTALWGKVNVDEVGGEALGRLLVVYPWT*R ...
460 rs11549407 NP_000509.1:39:Q:* MVHLTPEEKSAVTALWGKVNVDEVGGEALGRLLVVYPWT*R ...
461 rs11549407 NM_000518.5:167:C:G MVHLTPEEKSAVTALWGKVNVDEVGGEALGRLLVVYPWTER ...
462 rs11549407 NP_000509.1:39:Q:E MVHLTPEEKSAVTALWGKVNVDEVGGEALGRLLVVYPWTER ...
463 rs11549407 NM_000518.5:167:C:A MVHLTPEEKSAVTALWGKVNVDEVGGEALGRLLVVYPWTKR ...
464 rs11549407 NP_000509.1:39:Q:K MVHLTPEEKSAVTALWGKVNVDEVGGEALGRLLVVYPWTKR ...
465 ...
466
467 GENES IN A REGION
468
469 Records for protein-coding genes on the human X chromosome are retrieved by running:
470
471 esearch -db gene -query "Homo sapiens [ORGN] AND X [CHR]" |
472 efilter -status alive -type coding | efetch -format docsum |
473
474 Gene names and chromosomal positions are extracted by piping the records to:
475
476 xtract -pattern DocumentSummary -NAME Name -DESC Description \
477 -block GenomicInfoType -if ChrLoc -equals X \
478 -min ChrStart,ChrStop -element "&NAME" "&DESC" |
479
480 The -if statement eliminates coordinates from pseudoautosomal gene copies present on the Y chromosome telomeres. Results can now be sorted by position, and then filtered and partitioned:
481
482 sort-table -k 1,1n | cut -f 2- |
483 grep -v pseudogene | grep -v uncharacterized | grep -v hypothetical |
484 between-two-genes AMER1 FAAH2
485
486 to produce an ordered table of known genes located between two markers flanking the centromere:
487
488 FAAH2 fatty acid amide hydrolase 2
489 SPIN2A spindlin family member 2A
490 ZXDB zinc finger X-linked duplicated B
491 NLRP2B NLR family pyrin domain containing 2B
492 ZXDA zinc finger X-linked duplicated A
493 SPIN4 spindlin family member 4
494 ARHGEF9 Cdc42 guanine nucleotide exchange factor 9
495 AMER1 APC membrane recruitment protein 1
496
497 TAXONOMIC LINEAGE
498
499 To accommodate recursively-defined data, entry to an internal object is blocked when its name matches the current exploration container. The double star / child construct removes the search constraint to recursively visit every object regardless of depth, and can flatten a complex structure into a linear set of elements in a single step:
500
501 efetch -db taxonomy -id 9606 -format xml |
502 xtract -pattern Taxon \
503 -first TaxId -tab "\n" -element ScientificName \
504 -block "**/Taxon" -if Rank -is-not "no rank" -and Rank -excludes "root" \
505 -tab "\n" -element Rank,ScientificName
506
507 This prints all of the individual internal lineage nodes:
508
509 9606 Homo sapiens
510 domain Eukaryota
511 clade Opisthokonta
512 kingdom Metazoa
513 clade Eumetazoa
514 clade Bilateria
515 clade Deuterostomia
516 phylum Chordata
517 subphylum Craniata
518 clade Vertebrata
519 ...
520
521 SEQUENCE ANALYSIS
522
523 EDirect sequence processing functions are provided by the transmute program. They can handle huge sequences as strings, without requiring any special coding techniques or custom data structures.
524
525 For example, the nucleotide sequence in a GenBank record can be extracted, reverse-complemented, and saved in FASTA format with:
526
527 efetch -db nuccore -id U00096 -format gb |
528 gbf2fsa | transmute -revcomp | transmute -fasta -width 50
529
530 PATTERN SEARCHING
531
532 The pBR322 cloning vector is a circular plasmid with unique restriction sites in two antibiotic resistance genes. The transmute -search function takes a list of sequence patterns with optional labels (such as restriction enzyme names), and uses a finite-state algorithm to simultaneously search for all patterns:
533
534 efetch -db nuccore -id J01749 -format fasta |
535 transmute -search -circular GGATCC:BamHI GAATTC:EcoRI CTGCAG:PstI
536
537 The starting positions and labels for each match are printed in a two-column table:
538
539 374 BamHI
540 3606 PstI
541 4358 EcoRI
542
543 FEATURE LOCATIONS
544
545 A table of coding region locations and gene names can be saved directly as XML with xtract -insdx:
546
547 efetch -db nuccore -id NC_000011 -format gb -style master |
548 xtract -insdx CDS gene feat_location > cds_loc.xml
549
550 The human beta-globin coding region location is retrieved and stored in a Unix shell variable with:
551
552 loc=$( xtract -input cds_loc.xml -pattern Rec \
553 -if gene -equals HBB -element feat_location )
554
555 Location intervals are shown in biological order, where start is greater than stop on the minus strand:
556
557 5227021..5226930,5226799..5226577,5225726..5225598
558
559 SEQUENCE TRANSFORMATIONS
560
561 The repercussions of a genomic SNP can be followed with transmute functions: -replace applies the substitution, -extract uses the location to isolate the altered coding sequence, and -cds2prot translates the modified CDS into protein with the designated genetic code:
562
563 efetch -db nuccore -id NC_000011 -format fasta |
564 transmute -replace -offset 5226773 -delete G -insert A |
565 transmute -extract -1-based "$loc" |
566 transmute -cds2prot -gcode 1 -frame 0 -every -trim
567
568 EXTERNAL DATA INTEGRATION
569
570 The nquire program uses command-line arguments to obtain data from external RESTful, CGI, or FTP servers. (Xtract can read JSON, ASN.1, and GenBank formats directly, but previously-required conversion commands - now for inspecting XML or overriding defaults - are shown below in light text.)
571
572 JSON ARRAYS
573
574 Human beta-globin information from a Scripps Research data integration project (PMID 23175613):
575
576 nquire -get http://mygene.info/v3 gene 3043 | transmute -j2x |
577
578 contains a multi-dimensional JavaScript Object Notation array of exon coordinates:
579
580 "position": [
581 [ 5225463, 5225726 ],
582 [ 5226576, 5226799 ],
583 [ 5226929, 5227071 ]
584 ],
585 "strand": -1,
586
587 Conversion to XML assigns distinct tag names to each level with the "-nest element" default:
588
589 <position>
590 <position_E>5225463</position_E>
591 <position_E>5225726</position_E>
592 </position>
593 ...
594
595 HETEROGENEOUS DATA
596
597 A query for the human green-sensitive opsin gene:
598
599 nquire -get http://mygene.info/v3/gene/2652 | transmute -j2x |
600
601 returns data containing a heterogeneous mixture of objects in the pathway section:
602
603 <pathway>
604 <reactome>
605 <id>R-HSA-162582</id>
606 <name>Signal Transduction</name>
607 </reactome>
608 ...
609 <wikipathways>
610 <id>WP455</id>
611 <name>GPCRs, Class A Rhodopsin-like</name>
612 </wikipathways>
613 </pathway>
614
615 The parent / star construct is used to visit the individual components of a parent object without needing to explicitly specify their names. For printing, the name of a child object is indicated by a question mark:
616
617 xtract -pattern opt -group "pathway/*" \
618 -pfc "\n" -element "?,name,id"
619
620 This displays a table of pathway database references:
621
622 reactome Signal Transduction R-HSA-162582
623 reactome Disease R-HSA-1643685
624 ...
625 reactome Diseases of the neuronal system R-HSA-9675143
626 wikipathways GPCRs, Class A Rhodopsin-like WP455
627
628 TABLES TO XML
629
630 Tab-delimited files are easily converted to XML with transmute -t2x (or tbl2xml):
631
632 nquire -ftp ftp.ncbi.nlm.nih.gov gene/DATA gene_info.gz |
633 gunzip -c | grep -v NEWENTRY | cut -f 2,3 |
634 transmute -t2x -set Set -rec Rec -skip 1 Code Name
635
636 This takes a series of command-line arguments with tag names for wrapping the individual columns, and skips the first line of input, which contains header information, to generate a new XML file:
637
638 <Rec>
639 <Code>1246500</Code>
640 <Name>repA1</Name>
641 </Rec>
642 <Rec>
643 <Code>1246501</Code>
644 <Name>repA2</Name>
645 </Rec>
646 ...
647
648 The tbl2xml -header argument will instead obtain tag names from the first line of the input data.
649
650 Similarly, transmute -c2x (or csv2xml) will convert comma-separated values (CSV) files to XML.
651
652 GENBANK DOWNLOAD
653
654 The most recent GenBank virus release file can also be downloaded from NCBI servers:
655
656 nquire -lst ftp.ncbi.nlm.nih.gov genbank |
657 grep "^gbvrl" | grep ".seq.gz" | sort -V |
658 tail -n 1 | skip-if-file-exists |
659 nquire -dwn ftp.ncbi.nlm.nih.gov genbank
660
661 GenBank flatfile records can be selected by organism name or taxon identifier, or by presence or absence of an arbitrary text string, with transmute -gbf (or filter-genbank).
662
663 While this can be read directly by xtract, explicit conversion to INSDSeq XML with transmute -g2x (or gbf2xml) may be up to three times faster for large sets of records:
664
665 gunzip -c *.seq.gz | filter-genbank -taxid 11292 | gbf2xml |
666
667 The XML can then be piped to xtract -insd to obtain feature location intervals and underlying sequences of individual coding regions:
668
669 xtract -insd CDS gene product feat_location sub_sequence
670
671 LOCAL PUBMED ARCHIVE
672
673 Fetching data from Entrez works well when a few thousand records are needed, but it does not scale for much larger sets of data, where the time it takes to download becomes a limiting factor.
674
675 LOCAL RECORD CACHE
676
677 EDirect can now preload over 38 million live PubMed records onto an inexpensive external 1 TB solid-state drive as individual files for rapid retrieval. For example, PMID 2539356 would be stored at:
678
679 /pubmed/Archive/02/53/93/2539356.xml.gz
680
681 using a hierarchy of folders to organize the data for random access to any record.
682
683 The local archive is a completely self-contained turnkey product, with no need for the user to download, configure, and maintain complicated third-party database software.
684
685 Set an environment variable in your configuration file(s) to reference a section of your external drive:
686
687 export EDIRECT_LOCAL_ARCHIVE=/Volumes/external_drive_name/
688
689 Then run archive-pubmed to download the PubMed release files and distribute each record on the drive. The initial download may take around 6 hours, depending on your network connection speed, with initial archiving taking an additional 2 hours. Subsequent updates are incremental, and should finish in minutes.
690
691 Retrieving over 135,000 compressed PubMed records from the local archive with xfetch:
692
693 esearch -db pubmed -query "PNAS [JOUR]" -pub abstract | xfetch |
694
695 takes about 70 seconds. Retrieving those records from NCBI's network service, with efetch -format xml, would take around 40 minutes.
696
697 Even modest sets of PubMed query results can benefit from using the local cache. A reverse citation lookup on 191 papers:
698
699 esearch -db pubmed -query "Cozzarelli NR [AUTH]" | elink -cited |
700
701 requires 5 seconds to match 9784 subsequent articles. Retrieving them with separate decompression:
702
703 xfetch -stream | gunzip -c |
704
705 takes about one second. Printing the names of all authors in those records:
706
707 xtract -pattern PubmedArticle -block Author \
708 -sep " " -tab "\n" -author LastName,Initials[1:1] |
709
710 allows creation of a frequency table that lists the authors who most often cited the original papers:
711
712 sort-uniq-count-rank
713
714 Fetching from the network service would extend the 6 second running time to over 2 minutes.
715
716 LOCAL SEARCH INDEX
717
718 A similar strategy was used to create a local information retrieval system suitable for large data mining queries. Run archive-pubmed -index to populate retrieval index files from records stored in the local archive. The initial indexing will also take a few hours. Since PubMed updates are released once per day, it may be convenient to schedule reindexing to start in the late evening and run during the night.
719
720 For PubMed titles and primary abstracts, the indexing process deletes hyphens after specific prefixes, removes accents and diacritical marks, splits words at punctuation characters, corrects encoding artifacts, and spells out Greek letters for easier searching on scientific terms. It then prepares inverted indices with term positions, and uses them to build distributed term lists and postings files.
721
722 For example, the term list that includes "cancer" in the title or abstract would be located at:
723
724 /pubmed/Postings/TIAB/c/a/n/c/canc.TIAB.trm
725
726 A query on cancer thus only needs to load a very small subset of the total index. The software supports expression evaluation, wildcard truncation, phrase queries, proximity searches, and partial matches.
727
728 The xinfo, xsearch, xlink, and xfilter scripts provide access to the local search system.
729
730 Names of indexed fields, all terms for a given field, and terms plus record counts, are shown by:
731
732 xinfo -fields
733
734 xinfo -terms SUBH
735
736 xinfo -totals PROP
737
738 Terms are truncated with a trailing asterisk, and can be expanded to show individual postings counts:
739
740 xinfo -count "catabolite repress*"
741
742 xinfo -counts "catabolite repress*"
743
744 Query evaluation includes Boolean operations and parenthetical expressions:
745
746 xsearch -query "(literacy AND numeracy) NOT (adolescent OR child)"
747
748 Adjacent words in title or abstract fields are treated as a contiguous phrase:
749
750 xsearch -query "selective serotonin reuptake inhibitor [TITL]"
751
752 Each plus sign will replace a single word inside a phrase, and runs of tildes indicate the maximum distance between sequential phrases:
753
754 xsearch -query "vitamin c + + common cold"
755
756 xsearch -query "vitamin c ~ ~ common cold"
757
758 Ranked partial term matching is available in any field with -match:
759
760 xsearch -match "tn3 transposition immunity [PAIR]" | just-top-hits 1
761
762 An exact substring match, without special processing of Boolean operators or indexed field names, can be obtained with -title (on the article title) or -exact (on the title or abstract):
763
764 xsearch -title "Genetic Control of Biochemical Reactions in Neurospora."
765
766 MeSH identifier code, MeSH hierarchy key, and year of publication are also indexed, and MESH field queries are supported by internally mapping to the appropriate CODE or TREE entries:
767
768 xsearch -query "C14.907.617.812* [TREE] AND 2015:2019 [YEAR]"
769
770 PMIDs processed through an external source can be reintroduced to a local query pipeline with xfilter:
771
772 ... | xfilter -db pubmed -query "Raynaud Disease [MESH]" |
773
774 DATA ANALYSIS AND VISUALIZATION
775
776 All query commands return a structured message containing the database name and a list of UIDs, which can be piped directly to xfetch to retrieve the uncompressed records. For example:
777
778 xsearch -query "selective serotonin ~ ~ ~ reuptake inhibit*" |
779 xfetch |
780 xtract -pattern PubmedArticle -num AuthorList/Author |
781 sort-uniq-count -n | reorder-columns 2 1 |
782 head -n 25 | align-columns -g 4 -a lr
783
784 performs a proximity search with dynamic wildcard expansion (matching phrases like "selective serotonin and norepinephrine reuptake inhibitors") and fetches 14,978 PubMed records from the local archive. It then counts the number of authors for each paper (a consortium is treated as a single author), printing a frequency table of the number of papers per number of authors.
785
786 The cumulative size of PubMed can be calculated with a running sum of the annual record counts. Exponential growth over time will appear as a roughly linear curve on a semi-logarithmic graph:
787
788 xinfo -db pubmed -totals YEAR | print-columns '$2, $1, total += $1' |
789 print-columns '$1, log($2)/log(10), log($3)/log(10)' |
790 filter-columns '$1 >= 1800 && $1 < YR' | xy-plot annual-and-cumulative.png
791
792 The sharp jump after World War II was caused by several factors, including the release of declassified papers, a policy of expanding biomedical research in postwar America, and the introduction of computers that could keep up with the indexing of articles from a broader range of subjects.
793
794 NATURAL LANGUAGE PROCESSING
795
796 NLM's Biomedical Text Mining Group performs computational analysis to extract chemical, disease, and gene references from article contents (PMID 31114887). NLM indexing of PubMed records assigns Gene Reference into Function (GeneRIF) mappings (PMID 14728215).
797
798 Running archive-nlmnlp -index periodically (monthly) will automatically refresh any out-of-date support files and then index the connections in CHEM, DISZ, GENE, GRIF, GSYN, and PREF fields:
799
800 xinfo -terms DISZ | grep -i Raynaud
801
802 xinfo -counts "Raynaud* [DISZ]"
803
804 xsearch -query "Raynaud Disease [DISZ]"
805
806 FOLLOWING CITATION LINKS
807
808 Running archive-nihocc -index will download the latest NIH Open Citation Collection monthly release and build CITED and CITES indices, the local equivalent of elink -cited and -cites commands.
809
810 Citation links are retrieved by piping one or more PMIDs to xlink -target:
811
812 xsearch -db pubmed -query "Havran W* [AUTH]" |
813 xlink -target CITED |
814
815 This returns PMIDs for 6670 articles that cite the original 97 papers. The results are then restricted to a range of recent years, and those records are fetched. The xtract -histogram shortcut builds a journal frequency table from the subsequent articles:
816
817 xfilter -query "2020:2025 [YEAR]" | xfetch |
818 xtract -pattern PubmedArticle -histogram Journal/ISOAbbreviation |
819 sort-table -nr | head -n 10
820
821 The archive-pid -index command reads the PubMed local archive's incremental inverted index files, and builds a PMCID index that allows xlink to return PubMed Central identifiers from PMIDs.
822
823 ADDITIONAL EXPERIMENTAL ARCHIVES
824
825 New database domains are also easily added, with records obtained from public data resources.
826
827 Running archive-pmc -index downloads PMC release files, and collects primary author names, citation details, section titles, and full-text paragraphs. It then converts them to a more tractable form, and builds an archive from those derived records.
828
829 Similarly, archive-taxonomy -index archives novel records assembled from NCBI taxonomy data tables retrieved from the FTP site.
830
831 A new database is ready for use once its population script has finished all downloading, conversion, validation, caching, indexing, inversion, and postings steps.
832
833 USER-SPECIFIED TERM INDEX
834
835 Running custom-index with a PubMed indexer script and the names of the fields it populates:
836
837 custom-index $( which idx-grant ) GRNT
838
839 integrates user-specified indices into the local search system. The idx-grant script:
840
841 xtract -set IdxDocumentSet -rec IdxDocument -pattern PubmedArticle \
842 -wrp IdxUid -element MedlineCitation/PMID -clr -rst -tab "" \
843 -group PubmedArticle -pkg IdxSearchFields \
844 -block PubmedArticle -wrp GRNT -element Grant/GrantID
845
846 has reusable boilerplate in its first three lines, and indexes PubMed records by Grant Identifier:
847
848 ...
849 <IdxDocument>
850 <IdxUid>2539356</IdxUid>
851 <IdxSearchFields>
852 <GRNT>AI 00468</GRNT>
853 <GRNT>GM 07197</GRNT>
854 <GRNT>GM 29067</GRNT>
855 </IdxSearchFields>
856 </IdxDocument>
857 ...
858
859 SOLID-STATE DRIVE PREPARATION
860
861 To initialize a solid-state drive for hosting the local archive on a Mac, log into an admin account, run Disk Utility, choose View -> Show All Devices, select the top-level external drive, and press the Erase icon. Set the Scheme popup to GUID Partition Map, and APFS will appear as a format choice. Set the Format popup to APFS, enter the desired name for the volume, and click the Erase button.
862
863 To finish the drive configuration, disable Spotlight indexing on the drive with:
864
865 sudo mdutil -i off "${EDIRECT_LOCAL_ARCHIVE}"
866 sudo mdutil -E "${EDIRECT_LOCAL_ARCHIVE}"
867
868 and turn off FSEvents logging with:
869
870 sudo touch "${EDIRECT_LOCAL_ARCHIVE}/.fseventsd/no_log"
871
872 Also exclude the drive from being backed up by Time Machine or scanned by a virus checker.
873
874 Finally, in Apple -> System Settings -> Privacy & Security -> Full Disk Access, turn on the Terminal slide switch.
875
876 PYTHON INTEGRATION
877
878 Controlling EDirect from Python scripts is easily done with assistance from the edirect.py library file, which is included in the EDirect archive.
879
880 At the beginning of your program, import the edirect module with the following commands:
881
882 #!/usr/bin/env python3
883
884 import sys
885 import os
886 import shutil
887
888 sys.path.insert(1, os.path.dirname(shutil.which('xtract')))
889 import edirect
890
891 The first argument to edirect.execute is the Unix command you wish to run. It can be a string:
892
893 ("efetch -db nuccore -id NM_000518.5 -format fasta")
894
895 or a sequence of strings, which allows a variable's value to be substituted for a specific parameter:
896
897 accession = "NM_000518.5"
898 (('efetch', '-db', 'nuccore', '-id', accession, '-format', 'fasta'))
899
900 An optional second argument accepts data to be passed to the Unix command through stdin. Multiple steps are chained together by using the result of the previous command as the data argument in the next command:
901
902 seq = edirect.execute("efetch -db nuccore -id NM_000518.5 -format fasta")
903 sub = edirect.execute("transmute -extract -1-based -loc 51..494", seq)
904 prt = edirect.execute(('transmute', '-cds2prot', '-every', '-trim'), sub)
905
906 Data piped to the script itself is relayed by using "sys.stdin.read()" as the second argument.
907
908 Alternatively, the edirect.pipeline function can execute a string containing several piped commands:
909
910 edirect.pipeline('''efetch -db nuccore -id NM_000518.5 -format gb |
911 xtract -insd CDS gene product feat_location''')
912
913 or can accept a sequence of individual command strings to be piped together for execution:
914
915 edirect.pipeline(('efetch -db protein -id NP_000509.1 -format gp',
916 'xtract -insd Protein mol_wt sub_sequence'))
917
918 An edirect.efetch shortcut that uses named arguments is also available:
919
920 edirect.efetch(db="nuccore", id="NM_000518.5", format="fasta")
921
922 To run a custom shell script, make sure the execute permission bit is set, supply the full execution path, and follow it with any command-line arguments:
923
924 db = "pubmed"
925 res = edirect.execute(("./datefields.sh", db), "")
926
927 PROGRAMMING
928
929 A program written in a compiled language is translated into a computer's native machine instruction code, and will run much faster than an interpreted script. Piping FASTA data to the basecount binary executable (compiled from the basecount.go source code file, below):
930
931 efetch -db nuccore -id J01749,U54469 -format fasta | basecount
932
933 will return rows containing an accession number followed by counts for each base:
934
935 J01749.1 A 983 C 1210 G 1134 T 1034
936 U54469.1 A 849 C 699 G 585 T 748
937
938 Programs in Google's Go language ("golang") start with package main and then import additional software libraries (many included with Go, others residing in commercial repositories like github.com):
939
940 package main
941
942 import (
943 "cmp"
944 "eutils"
945 "fmt"
946 "maps"
947 "os"
948 "slices"
949 )
950
951 Each compiled Go binary has a single main function, which is where program execution begins:
952
953 func main() {
954
955 The fsta variable is assigned to a data channel that streams individual FASTA records one at a time:
956
957 fsta := eutils.FASTAConverter(os.Stdin, false)
958
959 The countLetters subroutine will be called with the identifier and sequence of each FASTA record:
960
961 countLetters := func(id, seq string) {
962
963 An empty counts map is created for each sequence, and its memory is freed when the subroutine exits:
964
965 counts := make(map[rune]int)
966
967 A for loop on the range of the sequence string visits each sequence letter. The map keeps a running count for each base or residue, with "++" incrementing the current value of the letter's map entry:
968
969 for _, base := range seq {
970 counts[base]++
971 }
972
973 A sorted keys array is produced by calling slices.SortedFunc. The alphabetical sort order is determined by the second argument, which is is an anonymous function literal:
974
975 keys := slices.SortedFunc(maps.Keys(counts),
976 func(i, j rune) int { return cmp.Compare(i, j) })
977
978 The sequence identifier is printed in the first column:
979
980 fmt.Fprintf(os.Stdout, "%s", id)
981
982 Iterating over the array prints letters and base counts in alphabetical order, with tabs between columns:
983
984 for _, base := range keys {
985 num := counts[base]
986 fmt.Fprintf(os.Stdout, "\t%c %d", base, num)
987 }
988
989 A newline is printed at the end of the row, and then the subroutine exits, clearing the map and array:
990
991 fmt.Fprintf(os.Stdout, "\n")
992 }
993
994 The remainder of the main function uses a loop to drain the fsta channel, passing the identifier and sequence string of each successive FASTA record to the countLetters function. The main function then ends with a final closing brace:
995
996 for fsa := range fsta {
997 countLetters(fsa.SeqID, fsa.Sequence)
998 }
999 }
1000
1001 Save the following script to a file named build.sh, in the same directory as the basecount.go file. Adjust optional GOOS and GOARCH environment variables to cross-compile for a different platform:
1002
1003 #!/bin/bash
1004
1005 if [ ! -f "go.mod" ]
1006 then
1007 go mod init "$( basename $PWD )"
1008 echo "replace eutils => $HOME/edirect/eutils" >> go.mod
1009 go get eutils
1010 fi
1011 if [ ! -f "go.sum" ]
1012 then
1013 go mod tidy
1014 fi
1015
1016 for fl in *.go
1017 do
1018 env GOOS=darwin GOARCH=arm64 go build -o "${fl%.go}" "$fl"
1019 done
1020
1021 The build script creates module files used to track dependencies and retrieve imported packages. It also computes the path for finding the local eutils helper library included with EDirect. Set the Unix execution permission bit for the build script and compile the program(s) by running:
1022
1023 chmod +x build.sh
1024 ./build.sh
1025
1026 DOCUMENTATION
1027
1028 Documentation for EDirect is on the web at:
1029
1030 http://www.ncbi.nlm.nih.gov/books/NBK179288
1031
1032 Information on how to obtain an API Key is described in this NCBI blogpost:
1033
1034 https://ncbiinsights.ncbi.nlm.nih.gov/2017/11/02/new-api-keys-for-the-e-utilities
1035
1036 Introductions to shell scripting for non-programmers, and to the Go programming language, are at:
1037
1038 https://missing.csail.mit.edu/2020/shell-tools/
1039 https://cacm.acm.org/research/the-go-programming-language-and-environment/
1040
1041 Instructions for downloading and installing the Go compiler are at:
1042
1043 https://golang.org/doc/install#download
1044
1045 To download the free Aspera Connect file transfer client, open the IBM Aspera Connect subsection at:
1046
1047 https://www.ibm.com/products/aspera/downloads#cds
1048
1049 Questions or comments on EDirect may be sent to [email protected].
1050
1051 This research was supported by the Intramural Research Program of the National Library of Medicine at the NIH.