Repository navigation
Formatting QTLs into BESD
We use the BESD format for storing QTL data
https://yanglab.westlake.edu.cn/software/smr/#DataManagement
You can find a few different ways to make BESD files from here: https://yanglab.westlake.edu.cn/software/smr/#MakeaBESDfile
The most common is the first one "1. Make a BESD file from eQTL summary data in ESD format"
As an example to create it from a typical csv / tsv format of summary stats (split by CHR sometimes)
Then you need to create this esd files and flist files, they are complimentary summary data
- ProbeID just the unique id for that measrement
- GeneticDistance: generally defaulted to 0. Meant to be distance from probe to gene. Sometimes it's tss (transcript starting site).
You have to create an esd file for every ProbeID, which is just a text file that is a csv / tsv of the summary stats of that specific probe
esd file
Chr SNP Bp A1 A2 Freq Beta se p
9 rs12349815 150048 T A 0.968 0.019 0.016 0.2434
20 rs141129176 62955484 G A 0.89 0.012 0.009 0.2156
......
You have a single flist file, which is additional metadata per probe
Chr ProbeID GeneticDistance ProbeBp Gene Orientation PathOfEsd
9 cg00000658 0 139997924 MAN1B1 - path/my01.esd
20 cg26036652 0 33735834 NA NA path/my02.esd
1 cg00489772 0 3775078 NA NA path/my03.esd
......
There are different options for cis-only and cis and trans data.
For cis-only, we only want the cis area, therefore you run make-besd, so it maintains the sparse format of data. If including trans, there are additional options
smr --eqtl-flist my.flist --make-besd --cis-wind 2000 --trans-wind 1000 --peqtl-trans 5.0e-8 --peqtl-other 1.0e-5 --out mybesd