Skip to content

Using reference

Dave Lawrence edited this page Nov 21, 2022 · 1 revision

To create a reference object, pass the name from a section in the pyreference_config_file.

Remember you can create multiple instances

from pyreference import Reference
reference_37 = Reference("GRCh37")
reference_38 = Reference("GRCh38")


In [9]: reference_37.get_gene_by_name("GATA2").iv
Out[9]: <GenomicInterval object '3', [128198264,128212044), strand '-'>

In [10]: reference_38.get_gene_by_name("GATA2").iv
Out[10]: <GenomicInterval object '3', [128479421,128493201), strand '-'>
Clone this wiki locally