rkimoakbioinformatics / oakvar

Genomic variant analysis platform
Other
32 stars 8 forks source link

fixed read_crv issue where polars was reading from previously opened … #53

Closed sinmojito closed 1 year ago

sinmojito commented 1 year ago

I was trying to use the read_crv(fpath) function while trying to construct the SPDI converter - but it ended up giving this error. This is due to f=open(fpath) being open as it is being passed to df. The code closes it and gives the expected output. Both outputs are from a Python test script with read_crv from inout.py v2.9.36 being tested and giving the error, while the below script change in PR#53 gives the second output. The test file used is exampleinput.crv.

rkimoakbioinformatics commented 1 year ago

Thanks for catching it.