# Init the magic
from magic.config import conf
from magic.app import App

"""
Explanation: Parsing ANNOVAR
A new approach @CINECA

Using mETL package
Configuration file is in YAML format through python library
End of explanation
"""


# Configuration
input_file = "input/test/test_annovar.hg19.tsv"
conf.add_field("Chr")
conf.add_field("Start")
conf.add_field("End")

"""
Explanation: Define what you need
End of explanation
"""


# Do it
data = App(input_file, conf).run()

"""
Explanation: Run!
Execute the parser command with the configuration obtained from fields specified above.
End of explanation
"""


# DEBUG
print(data[:4])

"""
Explanation: The result is an array with all rows parsed.
This print is limited to the first 4 elements.
End of explanation
"""


