Debian Codegraph @

bsmp2info

raw
1 #!/bin/bash
2
3 # Public domain notice for all NCBI EDirect scripts is located at:
4 # https://www.ncbi.nlm.nih.gov/books/NBK179288/#chapter6.Public_Domain_Notice
5
6 # efetch -db biosample -id SAMN38051082 -format docsum | bsmp2info
7
8 xtract -rec BioSampleInfo -pattern DocumentSummary \
9 -wrp Accession -element Accession \
10 -wrp Title -element DocumentSummary/Title \
11 -wrp Link -sep "|" -numeric Links/Link \
12 -group Attribute -if @harmonized_name \
13 -TAG -lower @harmonized_name -wrp "&TAG" -element Attribute |
14 transmute -format