Skip to content

ncezid-biome/ncbi-one-liners

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ncbi-one-liners

A collection of NCBI one-liners

Example input

SAMPLE=PNUSAC017705

Get SRR identifiers from sample names

    echo $SAMPLE | \
      esearch -db biosample -query $SAMPLE | \
      elink --target sra | \
      efetch -format xml | \
      xtract -pattern EXPERIMENT_PACKAGE -element SAMPLE@alias -element RUN@accession -block DESIGN | \
      awk -v ID="$SAMPLE" '{print ID"\t"$0}';

About

A collection of NCBI one-liners

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages