nloyfer / wgbs_tools

tools for working with Bisulfite Sequencing data while preserving reads intrinsic dependencies
Other
132 stars 35 forks source link

How to open beta file #3

Closed WRui closed 2 years ago

WRui commented 2 years ago

Hi, could you show me how to read the beta file? In addition, what each column means for pat files?

yonniejon commented 2 years ago

It depends what you want to do with the beta file.

If you want to see a visualization then you can try something like: wgbstools vis *.beta -r chr3:119528843-119529245 --heatmap

if you want to open it in python, then something like: np.fromfile(beta_file, dtype=np.uint8).reshape((-1, 2))

you can also use the view command to see it in bed format

See here for an explanation on the beta format: https://github.com/nloyfer/wgbs_tools/blob/master/docs/beta_format.md

yonniejon commented 2 years ago

for Pat file columns see here