nloyfer / wgbs_tools

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

bed2beta error? #81

Closed bresf closed 1 week ago

bresf commented 3 months ago

Hi: wgbstools is a great tool! I noticed that this line of code might have some issues, https://github.com/nloyfer/wgbs_tools/blob/master/src/python/bed2beta.py code: df = pd.read_csv(bed_path, sep='\t', header=header, names=['chr', 'start', 'meth', 'total'], usecols=[0, 1, 3, 4], nrows=nrows) should be: "names=['chr', 'start', 'end', 'meth', 'total']"

thank you

yonniejon commented 1 week ago

Hi, this is not an issue as usecols is set to skip the column at index 2. Thanks!