In [1]:
# Init the magic
from magic.config import conf
from magic.app import App
In [2]:
# Configuration
input_file = "input/test/test_annovar.hg19.tsv"
conf.add_field("Chr")
conf.add_field("Start")
conf.add_field("End")
Execute the parser command with the configuration obtained from fields specified above.
In [3]:
# Do it
data = App(input_file, conf).run()
The result is an array with all rows parsed. This print is limited to the first 4 elements.
In [4]:
# DEBUG
print(data[:4])