<jupyter_start><jupyter_text>UniProt DemoThis demo shows how to create and query a UniProt dataset.![UniPort](http://www.uniprot.org/images/logos/uniprot-rgb-optimized.svg) Binder can't fetch FTP, this filter will only work locally Imports<jupyter_code>from pyspark import SQLContext
from pyspark.sql import SparkSession
from mmtfPyspark.datasets import uniProt<jupyter_output><empty_output><jupyter_text>Configure Spark<jupyter_code>spark = SparkSession.builder.appName("UniProtDemo").getOrCreate()<jupyter_output><empty_output><jupyter_text>Get UniProt Datasets<jupyter_code>ds = uniProt.get_dataset(uniProt.SWISS_PROT)<jupyter_output><empty_output><jupyter_text>Display UniProt Dataset<jupyter_code>ds.show(20, False)<jupyter_output>+---+----------------+----------+------------------------------------------+-------------------------------------+---------+----------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------[...]<jupyter_text>Terminate Spark<jupyter_code>spark.stop()<jupyter_output><empty_output>
StarcoderdataJupyterStructuredCleanDedup