class_docstr: An object that represents a location in the genome.
  
  Parameters
  ----------
  contig : :class:`str`
      Chromosome identifier.
  position : :obj:`int`
      Chromosomal position (1-indexed).
  reference_genome : :class:`str` or :class:`.ReferenceGenome`
      Reference genome to use.
  
  Note
  ----
  This object refers to the Python value returned by taking or collecting
  Hail expressions, e.g. ``mt.locus.take(5)``. This is rare; it is much
  more common to manipulate the :class:`.LocusExpression` object, which is
  constructed using the following functions:
  
   - :func:`.locus`
   - :func:`.parse_locus`
   - :func:`.locus_from_global_position`
class_docstr_tok: ["An","object","that","represents","a","location","in","the","genome",".","Parameters","--","--","--","--","--","contig",":",":","class",":","`","str","`","Chromosome","identifier",".","position",":",":","obj",":","`","int","`","Chromosomal","position","(","1-indexed",")",".","reference_genome",":",":","class",":","`","str","`","or",":","class",":","`",".ReferenceGenome","`","Reference","genome","to","use",".","Note","--","--","This","object","refers","to","the","Python","value","returned","by","taking","or","collecting","Hail","expressions",",","e.g",".","``","mt.locus.take","(","5",")","``",".","This","is","rare",";","it","is","much","more","common","to","manipulate","the",":","class",":","`",".LocusExpression","`","object",",","which","is","constructed","using","the","following","functions",":","-",":","func",":","`",".locus","`","-",":","func",":","`",".parse_locus","`","-",":","func",":","`",".locus_from_global_position","`"]
docstr: Reference genome.
  
  :return: :class:`.ReferenceGenome`
docstr_tok: ["Reference","genome",".",":","return",":",":","class",":","`",".ReferenceGenome","`"]
code: def reference_genome(self):
      """Reference genome.
  
      :return: :class:`.ReferenceGenome`
      """
      return self._rg
  
file_path: hail/hail/python/hail/genetics/locus.py
imports: from typing import Union
  import hail
  from hail.genetics.reference_genome import reference_genome_type, ReferenceGenome
  from hail.typecheck import typecheck_method
label_desc: Use image node_id 9 for calling the Locus obj's underlying member method code with example usage: obj.reference_genome() and returns: self