Skip to content

Instantly share code, notes, and snippets.

View bguo068's full-sized avatar

Bing Guo bguo068

  • University of Maryland School of Medicine
  • MD, USA
View GitHub Profile
@bguo068
bguo068 / biosample2srr.md
Created August 11, 2023 17:27
obtain SRA run IDs from BioSample IDs via
  1. Install Entrez Direct command line tool. See instructions here https://www.ncbi.nlm.nih.gov/books/NBK179288/
  2. Make a list of BioSample IDs, one line per sample
  3. Run the efetch, elink and xtract tools to fetch the SRA run IDs
cat biosample_ids.txt | while read SAMPLE ; do 
  SRR=`elink -db Biosample -id $SAMPLE -target sra \
    | efetch -format docsum \
    | xtract -pattern Runs -element Run@acc \
    | tr '\n' ','`
 echo $SAMPLE $SRR; 
@bguo068
bguo068 / gist:7fa07e0110509330ee7e5f731dab4af9
Created August 20, 2020 14:58
YouCompleter Format command in C code does not work according to shiftwidth and expandtab settings
```
1: clangd_stderr8rnarj3t.log
2: ycm_y148rjcr.log
3: ycmd_49873_stderr_vuhk676v.log
4: ycmd_49873_stdout_nopzxer_.log
```
### 1: clangd_stderr8rnarj3t.log
```
V[10:42:59.405] <<< {"id":7,"jsonrpc":"2.0","method":"textDocument/hover","params":{"position":{"character":2,"line":1},"textDocument":{"uri":"file:///Users/XXXXXX/1.c"}}}