Hi pysam community,
for row in tbx.fetch("chr1", 1000, 2000, parser=pysam.asBed()):
print("name is", row.name)
In this regard, I am interested to develop a custom parser similar to pysam.asBed().
For example, I would like this parser to only return rows where the "name" field is equal to a certain value. Or it should cast certain columns to integers.
Would you please let me know where I can find the related codes? Or even better, if there is any documentation about this?
Thanks!
Best,
Amin