tumourkit.preprocessing.remove_uncertain.process_gson

tumourkit.preprocessing.remove_uncertain.process_gson(gson: List[Dict[str, Any]]) List[Dict[str, Any]]

Filters out uncertain classifications from a list of GeoJSON dictionaries.

Given a list of GeoJSON dictionaries, this function filters out the GeoJSON objects that have an uncertain classification. The uncertain classification is determined based on the ‘name’ property under the ‘classification’ key in the GeoJSON dictionary.

Parameters:

gson (List[Dict[str, Any]]) – The list of GeoJSON dictionaries.

Returns:

The filtered list of GeoJSON dictionaries without uncertain classifications.

Return type:

List[Dict[str, Any]]