.TH EFILTER 1 2021-01-20 NCBI "NCBI Entrez Direct User's Manual" NCBI "NCBI Entrez Direct User's Manual" .SH NAME efilter \- filter and/or sort NCBI Entrez search results .SH SYNOPSIS \fBefilter\fP (\fBefetch \-filter\fP) [\|\fB\-help\fP\|] [\|\fB\-q\fP\|[\|\fBuery\fP\|] \fIstr\fP\|] [\|\fB\-sort\fP\ \fIfield\fP\|] [\|\fB\-days\fP\ \fIN\fP\|] [\|\fB\-datetype\fP\ \fIfield\fP\|] [\|\fB\-mindate\fP\ \fIdate\fP\|] [\|\fB\-maxdate\fP\ \fIdate\fP\|] [\|\fB\-field\ \fIfield\fP\|] [\|\fB\-pairs\ \fIfield\fP\|] [\|\fB\-spell\fP\|] [\|\fB\-pub\fP\ \fItype\fP\|] [\|\fB\-journal\fP\ \fIname\fP\|] [\|\fB\-released\fP\ \fIwhen\fP\|] [\|\fB\-country\fP\ \fIname\fP\|] [\|\fB\-feature\fP\ \fItype\fP\|] [\|\fB\-location\fP\ \fItype\fP\|] [\|\fB\-molecule\fP\ \fItype\fP\|] [\|\fB\-organism\fP\ \fItype\fP\|] [\|\fB\-source\fP\ \fItype\fP\|] [\|\fB\-division\fP\ \fIcode\fP\|] [\|\fB\-status\ alive\fP\|] [\|\fB\-type\fP\ \fItype\fP\|] [\|\fB\-class\fP\ \fIclass\fP\|] [\|\fB\-kind\ pathway\fP\|] [\|\fB\-pathway\fP\ \fItype\fP\|] .SH DESCRIPTION \fBefilter\fP filters and/or sorts results from a previous \fBedirect\fP(1) search. It has two implementations: a shell implementation on top of \fBnquire\fP(1) and a historical Perl implementation that amounts to running \fBedirect \-filter\fP, enabled by setting the environment variable \fBUSE_NEW_EDIRECT\fP to a false value as described in the \fBENVIRONMENT\fP section. Some options are implementation\-specific, as detailed below. .SH OPTIONS .SS Query Specification .TP \fB\-q\fP\ \fIstr\fP \fB(Perl implementation only)\fP .PD 0 .TP \fB\-query\fP\ \fIstr\fP Limit results to those matching the given query string. .PD .SS Document Order .TP \fB\-sort\fP\ \fIfield\fP \fB(Perl implementation only)\fP Sort results by the given field. .SS Date Constraint .TP \fB\-days\fP\ \fIN\fP Keep only results from the past \fIN\fP days. .TP \fB\-datetype\fP\ \fIfield\fP Which date field (in abbreviated form) to consider. .TP \fB\-mindate\fP\ \fIdate\fP Start of date range. .TP \fB\-maxdate\fP\ \fIdate\fP End of date range. .SS Limit by Field .TP \fB\-field\fP\ \fIfield\fP \fB(Perl implementation only)\fP Query words individually in field. .TP \fB\-pairs\fP\ \fIfield\fP \fB(Perl implementation only)\fP Query overlapping word pairs. .SS Spell Check .TP \fB\-spell\fP \fB(Perl implementation only)\fP Correct misspellings in query. .SS Publication Filters .TP \fB\-pub\fP\ \fItype\fP .BR abstract , .BR clinical , .BR english , .BR free , .BR historical , .BR journal , .BR preprint , .BR review , .BR structured . .TP \fB\-journal\fP\ \fIname\fP .BR pnas , \fB"j bacteriol"\fP, ... .TP \fB\-released\fP\ \fIwhen\fP .BR last_week , .BR last_month , .BR last_year , .BR prev_years . .SS Sequence Filters .TP \fB\-country\fP\ \fIname\fP .BR usa:minnesota , .BR united_kingdom , .BR \(dqpacific\ ocean\(dq , \&... .TP \fB\-feature\fP\ \fItype\fP .BR gene , .BR mrna , .BR cds , .BR mat_peptide , \&... .TP \fB\-location\fP\ \fItype\fP .BR mitochondrion , .BR chloroplast , .BR plasmid , .BR plastid . .TP \fB\-molecule\fP\ \fItype\fP .BR genomic , .BR mrna , .BR trna , .BR rrna , .BR ncrna . .TP \fB\-organism\fP\ \fItype\fP .BR animals , .BR archaea , .BR bacteria , .BR eukaryotes , .BR fungi , .BR human , .BR insects , .BR mammals , .BR plants , .BR prokaryotes , .BR protists , .BR rodents , .BR viruses , \&... .TP \fB\-source\fP\ \fItype\fP .BR genbank , .BR insd , .BR pdb , .BR pir , .BR refseq , .BR swissprot , .BR tpa .TP \fB\-division\fP\ \fIcode\fP \fB(shell implementation only)\fP Three\-letter GenBank division code: .BR bct , .BR con , .BR env , .BR est , .BR gss , .BR htc , .BR htg , .BR inv , .BR mam , .BR pat , .BR phg , .BR pln , .BR pri , .BR rod , .BR sts , .BR syn , .BR una , .BR vrl ", or" .BR vrt . .SS Gene Filters .TP \fB\-status\ alive\fP .TP \fB\-type\fP\ \fItype\fP .BR coding , .BR pseudo . .SS SNP Filters .TP \fB\-class\fP\ \fIclass\fP .BR acceptor , .BR donor , .BR coding , .BR frameshift , .BR indel , .BR intron , .BR missense , .BR nonsense , .BR synonymous . .SS Biosystems Filters .TP \fB\-kind\ pathway\fP .TP \fB\-pathway\fP\ \fItype\fP .BR reactome , .BR wikipathways . .SS Miscellaneous Arguments .TP \fB\-help\fP Print usage information. .SH ENVIRONMENT .TP .B USE_NEW_EDIRECT Whether to use the current shell implementation or revert to the historical Perl implementation. Canonical true values are \fB1\fP, \fBon\fP (case\-insensitive), \fBtrue\fP (case\-insensitive), and \fByes\fP (case\-insensitive); canonical false values are \fB0\fP, \fBoff\fP (case\-insensitive), \fBfalse\fP (case\-insensitive), and \fBno\fP (case\-insensitive). .SH SEE ALSO .BR edirect (1), .BR esearch (1), .BR nquire (1), .BR exclude\-uid\-lists (1).