gonzalobenegas commited on
Commit
aec3818
·
1 Parent(s): 7d14a7e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +42 -6
README.md CHANGED
@@ -5,17 +5,53 @@ license: mit
5
  For more information check out our [paper](https://doi.org/10.1101/2023.10.10.561776) and [repository](https://github.com/songlab-cal/gpn).
6
 
7
  ## Querying specific variants or genes
8
- `scores.tsv.bgz` contains `chrom,pos,ref,alt,score` and is fast to query specific genes or positions.
9
- - Install `tabix`:
 
10
  ```bash
11
  conda install -c bioconda -c conda-forge htslib=1.18
12
  ```
13
- - Query a specific region (e.g. BRCA1), from remote file:
 
 
 
 
 
14
  ```bash
15
  tabix https://huggingface.co/datasets/songlab/gnomad/resolve/main/scores.tsv.bgz 17:43,044,295-43,125,364
16
  ```
17
- - If you want to do many queries you might want to first download the file locally
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
 
19
  ## Large-scale analysis
20
- `test.parquet` contains coordinates, scores, and also allele frequency and consequences.
21
- Can be loaded, e.g., with `pd.read_parquet("test.parquet")`.
 
 
 
 
 
 
 
 
5
  For more information check out our [paper](https://doi.org/10.1101/2023.10.10.561776) and [repository](https://github.com/songlab-cal/gpn).
6
 
7
  ## Querying specific variants or genes
8
+
9
+ - Install `tabix`:
10
+ In your current conda environment (might be slow):
11
  ```bash
12
  conda install -c bioconda -c conda-forge htslib=1.18
13
  ```
14
+ or in a new conda environment:
15
+ ```bash
16
+ conda create -n tabix -c bioconda -c conda-forge htslib=1.18
17
+ conda activate tabix
18
+ ```
19
+ - Query a specific region (e.g. BRCA1), from the remote file:
20
  ```bash
21
  tabix https://huggingface.co/datasets/songlab/gnomad/resolve/main/scores.tsv.bgz 17:43,044,295-43,125,364
22
  ```
23
+ The output has the following columns:
24
+ | chrom | pos | ref | alt | GPN-MSA score |
25
+ and would start like this:
26
+ ```tsv
27
+ 17 43044304 T G -5.10
28
+ 17 43044309 A G -3.27
29
+ 17 43044315 T A -6.84
30
+ 17 43044320 T C -6.19
31
+ 17 43044322 G T -5.29
32
+ 17 43044326 T G -3.22
33
+ 17 43044342 T C -4.10
34
+ 17 43044346 C T -2.06
35
+ 17 43044351 C T -0.33
36
+ 17 43044352 G A 2.05
37
+ ```
38
+ - If you want to do many queries you might want to first download the files locally
39
+ ```bash
40
+ wget https://huggingface.co/datasets/songlab/gnomad/resolve/main/scores.tsv.bgz
41
+ wget https://huggingface.co/datasets/songlab/gnomad/resolve/main/scores.tsv.bgz.tbi
42
+ ```
43
+ and then score:
44
+ ```bash
45
+ tabix scores.tsv.bgz 17:43,044,295-43,125,364
46
+ ```
47
 
48
  ## Large-scale analysis
49
+ `test.parquet` contains coordinates, scores, plus allele frequency and consequences.
50
+ Download:
51
+ ```
52
+ wget https://huggingface.co/datasets/songlab/gnomad/resolve/main/test.parquet
53
+ ```
54
+ Load into a Pandas dataframe:
55
+ ```python
56
+ df = pd.read_parquet("test.parquet")
57
+ ```