<jupyter_start><jupyter_text>Feature-Based LocationsFeature-based locations are VRS Locations that are defined by reference to certain landmarks or features. The currently supported Feature-Based Locations are ChromosomeLocation and GeneLocation classes.<jupyter_code>from ga4gh.vrs import models
from ga4gh.core import ga4gh_identify, ga4gh_serialize<jupyter_output><empty_output><jupyter_text>ChromosomeLocation<jupyter_code>cbl1 = models.ChromosomeLocation(species_id="taxonomy:9606", 
                                 chr="11", 
                                 interval=models.CytobandInterval(start="q22.2", end="q22.3")
                                )
cbl1.as_dict()<jupyter_output><empty_output><jupyter_text>Serialization and Identification<jupyter_code>ga4gh_serialize(cbl1)
ga4gh_identify(cbl1)
## Localization
cbl1sl37 = lr.localize_named_feature(cbl1, "GRCh37")
cbl1sl37.as_dict()
cbl1sl38 = lr.localize_named_feature(cbl1, "GRCh38")
cbl1sl38.as_dict()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.08926780341023069, 'fraction_numerical': 0.04012036108324975, 'mean_word_length': 4.8023255813953485, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '422118', 'license': 'Apache-2.0', 'n_tokens_mistral': 356, 'n_tokens_neox': 335, 'n_words': 51, 'path': 'notebooks/Feature Based Locations.ipynb', 'repo_name': 'GenomicMedLab/vrs-python', 'size': '997'}