semvec/pypi-packages huggingface dataset:
seealgo 0.2.0
A Python library to visualize a data structure as it changes throughout a function
Requires Python: >=3.7

# seealgo
A Python library to visualize a data structure as it changes throughout a function

[![](https://img.shields.io/badge/License-Apache_2.0-pink.svg)](./LICENSE) 
![](https://img.shields.io/github/issues/sarahtang7/seealgo)
![](https://img.shields.io/codecov/c/github/sarahtang7/seealgo/main?color=lightgreen)
[![CI](https://github.com/sarahtang7/seealgo/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/sarahtang7/seealgo/actions/workflows/main.yml)
[![PyPI](https://img.shields.io/pypi/v/seealgo?color=lightblue)](https://pypi.org/project/seealgo/)
[![Docs](https://img.shields.io/badge/Github-Pages-blue)](https://sarahtang7.github.io/seealgo/)

## Overview
When writing algorithms, I often find that visualizing the data structures are necessary, but it can be difficult and time-consuming to do so. The goal of the seealgo library is to allow users to visualize a given data structure as it changes in a given function.

So far, the seealgo library provides visualization for the following data structures and methods:
- List: `append(value)`, `insert(index, value)`, `remove(value)`, `__setitem__(index, value)`
- Binary Search Tree (provided as a nested dictionary): `insert(child)`, `remove(value)` 
- Set: `add(value)`, `remove(value)`, `clear()`, `update(values)`
- Dictionary (nested and non-nested): `update(iterable)`, `pop(key)`

## Installation
This library requires you to have `graphviz` installed on your system using the [instructions](https://graphviz.org/download/) appropriate for your system, or by using the following command if you are on a macOS device: 
```
brew install graphviz
```
Then, install `seealgo` using the following command:
```
pip install seealgo
```

## Using seealgo
(for examples of all data structures available with seealgo, visit our [GitHub Pages](https://sarahtang7.github.io/seealgo/)!)

This is an example of using the List module to visualize appending 5 to a list:

```python
from seealgo import List

visual_list = List()
test_list = [1, 2, 3, 4]

def append_to_list(input_list):
  input_list.append(5)
  return input_list

visual_list.see(append_to_list, test_list)
```
<img src="./outputFiles/eg_appendlist_before.png" width="400">
<img src="./outputFiles/eg_appendlist_after.png" width="500">


This is an example of using the Tree module to visualize adding a leaf node with value 2 to a binary search tree: 

```python
from seealgo import Tree

visual_tree = Tree()

test_tree = {
    '8': {
        '3': {
            '1': None,
            '6': None
        },
        '10': None
    }
}

def insert_func(init_tree):
    init_tree.add_child(2)
    return init_tree

visual_tree.see(insert_func, test_tree)
```
<img src="./outputFiles/eg_appendtree_before.png" width="250">
<img src="./outputFiles/eg_appendtree_after.png" width="250">
phenopedia-parser 0.0.3
A python package to parse phenopedia data
Requires Python: >=3.8

# PhenopediaParser

A python API for parsing [Phenopedia](https://phgkb.cdc.gov/PHGKB/startPagePhenoPedia.action "Phenopedia's Homepage"). 

"Phenopedia provides a disease-centered view of genetic association studies summarized in the online Human Genome Epidemiology (HuGE) encyclopedia. Users can switch to a gene-centered view (Genopedia) or to other HuGE Tools."


## Getting Started

### Install

```pip install phenopedia_parser```

### Usage

```
from phenopedia_parser import PhenopediaParser

pheno_dataframe = PhenopediaParser.parse(search_term='lung', dataframe=True)
print(pheno_dataframe)
```

### License
MIT License

### Support
[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/julianspaeth)