| 1 |
Format Selection |
| 2 |
|
| 3 |
-format Format of record or report |
| 4 |
-mode text, xml, asn, binary, json |
| 5 |
-style master, conwithfeat |
| 6 |
|
| 7 |
Direct Record Selection |
| 8 |
|
| 9 |
-db Database name |
| 10 |
-id Unique identifier or accession number |
| 11 |
-input Read identifier(s) from file instead of stdin |
| 12 |
|
| 13 |
Sequence Range |
| 14 |
|
| 15 |
-seq_start First sequence position to retrieve |
| 16 |
-seq_stop Last sequence position to retrieve |
| 17 |
-strand 1 = forward DNA strand, 2 = reverse complement |
| 18 |
(otherwise strand minus is set if start > stop) |
| 19 |
-forward Force strand 1 |
| 20 |
-revcomp Force strand 2 |
| 21 |
|
| 22 |
Gene Range |
| 23 |
|
| 24 |
-chr_start Sequence range from 0-based coordinates |
| 25 |
-chr_stop in gene docsum GenomicInfoType object |
| 26 |
|
| 27 |
Sequence Flags |
| 28 |
|
| 29 |
-complexity 0 = default, 1 = bioseq, 3 = nuc-prot set |
| 30 |
-extend Extend sequence retrieval in both directions |
| 31 |
-extrafeat Bit flag specifying extra features |
| 32 |
-showgaps Propagate component gaps |
| 33 |
|
| 34 |
Subset Retrieval |
| 35 |
|
| 36 |
-start First record to fetch |
| 37 |
-stop Last record to fetch |
| 38 |
|
| 39 |
Miscellaneous |
| 40 |
|
| 41 |
-raw Skip database-specific XML modifications |
| 42 |
-express Direct sequence retrieval in groups of 5 |
| 43 |
-immediate Express mode on a single record at a time |
| 44 |
|
| 45 |
Format Examples |
| 46 |
|
| 47 |
-db -format -mode Report Type |
| 48 |
___ _______ _____ ___________ |
| 49 |
|
| 50 |
(all) |
| 51 |
docsum DocumentSummarySet XML |
| 52 |
docsum json DocumentSummarySet JSON |
| 53 |
full Same as native except for mesh |
| 54 |
uid Unique Identifier List |
| 55 |
edirect Id fields in ENTREZ_DIRECT message |
| 56 |
url Entrez URL for multiple UIDs |
| 57 |
urls Individual URLs |
| 58 |
xml Same as -format full -mode xml |
| 59 |
|
| 60 |
bioproject |
| 61 |
native BioProject Report |
| 62 |
native xml RecordSet XML |
| 63 |
|
| 64 |
biosample |
| 65 |
native BioSample Report |
| 66 |
native xml BioSampleSet XML |
| 67 |
|
| 68 |
clinvar |
| 69 |
variation Older Format |
| 70 |
variationid Transition Format |
| 71 |
vcv VCV Report |
| 72 |
clinvarset RCV Report |
| 73 |
|
| 74 |
gds |
| 75 |
native xml RecordSet XML |
| 76 |
summary Summary |
| 77 |
|
| 78 |
gene |
| 79 |
full_report Detailed Report |
| 80 |
gene_table Gene Table |
| 81 |
native Gene Report |
| 82 |
native asn Entrezgene ASN.1 |
| 83 |
native xml Entrezgene-Set XML |
| 84 |
tabular Tabular Report |
| 85 |
|
| 86 |
homologene |
| 87 |
alignmentscores Alignment Scores |
| 88 |
fasta FASTA |
| 89 |
homologene Homologene Report |
| 90 |
native Homologene List |
| 91 |
native asn HG-Entry ASN.1 |
| 92 |
native xml Entrez-Homologene-Set XML |
| 93 |
|
| 94 |
mesh |
| 95 |
full Full Record |
| 96 |
native MeSH Report |
| 97 |
native xml RecordSet XML |
| 98 |
|
| 99 |
nlmcatalog |
| 100 |
native Full Record |
| 101 |
native xml NLMCatalogRecordSet XML |
| 102 |
|
| 103 |
pmc |
| 104 |
bioc PubTator Central BioC XML |
| 105 |
medline MEDLINE |
| 106 |
native xml pmc-articleset XML |
| 107 |
|
| 108 |
pubmed |
| 109 |
abstract Abstract |
| 110 |
apa PMID plus APA citation |
| 111 |
bioc PubTator Central BioC XML |
| 112 |
medline MEDLINE |
| 113 |
native asn Pubmed-entry ASN.1 |
| 114 |
native xml PubmedArticleSet XML |
| 115 |
|
| 116 |
(sequences) |
| 117 |
acc Accession Number |
| 118 |
est EST Report |
| 119 |
fasta FASTA |
| 120 |
fasta xml TinySeq XML |
| 121 |
fasta_cds_aa FASTA of CDS Products |
| 122 |
fasta_cds_na FASTA of Coding Regions |
| 123 |
ft Feature Table |
| 124 |
gb GenBank Flatfile |
| 125 |
gb xml GBSet XML |
| 126 |
gbc xml INSDSet XML |
| 127 |
gene_fasta FASTA of Gene |
| 128 |
gp GenPept Flatfile |
| 129 |
gp xml GBSet XML |
| 130 |
gpc xml INSDSet XML |
| 131 |
gss GSS Report |
| 132 |
ipg Identical Protein Report |
| 133 |
ipg xml IPGReportSet XML |
| 134 |
asn Seq-entry ASN.1 |
| 135 |
asn binary Binary Seq-entry ASN.1 |
| 136 |
native text Seq-entry ASN.1 |
| 137 |
native xml Bioseq-set XML |
| 138 |
seqid Seq-id ASN.1 |
| 139 |
|
| 140 |
snp |
| 141 |
json Reference SNP Report |
| 142 |
|
| 143 |
sra |
| 144 |
native xml EXPERIMENT_PACKAGE_SET XML |
| 145 |
runinfo xml SraRunInfo XML |
| 146 |
|
| 147 |
structure |
| 148 |
mmdb Ncbi-mime-asn1 strucseq ASN.1 |
| 149 |
native MMDB Report |
| 150 |
native xml RecordSet XML |
| 151 |
|
| 152 |
taxonomy |
| 153 |
native Taxonomy List |
| 154 |
native xml TaxaSet XML |
| 155 |
|
| 156 |
Examples |
| 157 |
|
| 158 |
efetch -db pubmed -id 6271474,5685784,4882854,6243420 -format xml | |
| 159 |
xtract -pattern PubmedArticle -element MedlineCitation/PMID "#Author" \ |
| 160 |
-block Author -position first -sep " " -element Initials,LastName \ |
| 161 |
-block Article -element ArticleTitle |
| 162 |
|
| 163 |
efetch -db nuccore -id CM000177.6 -format gb -style conwithfeat -showgaps |
| 164 |
|
| 165 |
efetch -db nuccore -id 1121073309 -format gbc -style master |
| 166 |
|
| 167 |
efetch -db nuccore -id JABRPF010000000 -format gb |
| 168 |
|
| 169 |
efetch -db nuccore -id JABRPF010000001 -format gb |
| 170 |
|
| 171 |
efetch -db protein -id 3OQZ_a -format fasta |
| 172 |
|
| 173 |
esearch -db protein -query "conotoxin AND mat_peptide [FKEY]" | |
| 174 |
efetch -format fasta -start 1 -stop 5 |
| 175 |
|
| 176 |
esearch -db protein -query "conotoxin AND mat_peptide [FKEY]" | |
| 177 |
efetch -format gpc | |
| 178 |
xtract -insd complete mat_peptide "%peptide" product mol_wt peptide | |
| 179 |
grep -i conotoxin | sort -t $'\t' -u -k 2,2n | head -n 8 |
| 180 |
|
| 181 |
esearch -db gene -query "DDT [GENE] AND mouse [ORGN]" | |
| 182 |
efetch -format docsum | |
| 183 |
xtract -pattern GenomicInfoType -element ChrAccVer ChrStart ChrStop | |
| 184 |
xargs -n 3 sh -c 'efetch -db nuccore -format gb \ |
| 185 |
-id "$0" -chr_start "$1" -chr_stop "$2"' |
| 186 |
|
| 187 |
efetch -db sra -format docsum -id SRA030738,SRA030736 | |
| 188 |
xtract -pattern DocumentSummary -element Run@acc |