-
Notifications
You must be signed in to change notification settings - Fork 218
add bio gpu demos #509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dcolinmorgan
wants to merge
23
commits into
master
Choose a base branch
from
bio-demos
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
add bio gpu demos #509
Changes from 17 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
d2b9f02
add cpu bio-demos
dcolinmorgan faf1c6b
add gpu bio demos
dcolinmorgan f54f8e8
update metagenomic demo
dcolinmorgan 8407501
updated sc demo for gene name clusters
dcolinmorgan 6605e76
fixed pre-gpu link
dcolinmorgan 9c1b548
add cpu bio-demos
dcolinmorgan 626efa0
add gpu bio demos
dcolinmorgan 299292f
update metagenomic demo
dcolinmorgan 5b97dfe
updated sc demo for gene name clusters
dcolinmorgan 7e499fb
fixed pre-gpu link
dcolinmorgan 4f796d7
Merge branch 'bio-demos' of https://github.com/graphistry/pygraphistr…
dcolinmorgan 11fff49
Merge branch 'master' into bio-demos
dcolinmorgan 609b383
update url and import nrows
dcolinmorgan e3efbc5
ST attempt1
dcolinmorgan 74ebf7c
ST attempt2
dcolinmorgan df92d58
isnt ST req from base
dcolinmorgan 4b45c6a
isnt ST req from base
dcolinmorgan eef1d6d
update links and plots, etc
dcolinmorgan e7f784e
backout ST import try
dcolinmorgan 5adad4b
backout proper
dcolinmorgan 7ad581c
revised demos
dcolinmorgan 0c7ada6
2nd meeting fixes partial, no readme update
dcolinmorgan e75a38c
add biogrid notebook to gallery grid
dcolinmorgan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,7 +39,7 @@ | |
| }, | ||
| { | ||
| "cell_type": "code", | ||
| "execution_count": 2, | ||
| "execution_count": 3, | ||
| "metadata": { | ||
| "scrolled": false | ||
| }, | ||
|
|
@@ -48,26 +48,26 @@ | |
| "name": "stderr", | ||
| "output_type": "stream", | ||
| "text": [ | ||
| "/usr/local/lib/python2.7/site-packages/IPython/core/interactiveshell.py:2717: DtypeWarning: Columns (19,20) have mixed types. Specify dtype option on import or set low_memory=False.\n", | ||
| " interactivity=interactivity, compiler=compiler, result=result)\n" | ||
| "/var/folders/sx/x954rbdd44d932dd0ygfp1qc0000gn/T/ipykernel_51237/4214251102.py:2: DtypeWarning: Columns (19,20) have mixed types. Specify dtype option on import or set low_memory=False.\n", | ||
| " rawdata = pandas.read_table(url1, na_values=['-'], engine='c')#, compression='gzip')\n" | ||
| ] | ||
| }, | ||
| { | ||
| "data": { | ||
| "text/html": [ | ||
| "<div>\n", | ||
| "<style>\n", | ||
| " .dataframe thead tr:only-child th {\n", | ||
| " text-align: right;\n", | ||
| " }\n", | ||
| "\n", | ||
| " .dataframe thead th {\n", | ||
| " text-align: left;\n", | ||
| "<style scoped>\n", | ||
| " .dataframe tbody tr th:only-of-type {\n", | ||
| " vertical-align: middle;\n", | ||
| " }\n", | ||
| "\n", | ||
| " .dataframe tbody tr th {\n", | ||
| " vertical-align: top;\n", | ||
| " }\n", | ||
| "\n", | ||
| " .dataframe thead th {\n", | ||
| " text-align: right;\n", | ||
| " }\n", | ||
| "</style>\n", | ||
| "<table border=\"1\" class=\"dataframe\">\n", | ||
| " <thead>\n", | ||
|
|
@@ -134,14 +134,14 @@ | |
| "2 Wang T (1996) Low Throughput " | ||
| ] | ||
| }, | ||
| "execution_count": 2, | ||
| "execution_count": 3, | ||
| "metadata": {}, | ||
| "output_type": "execute_result" | ||
| } | ||
| ], | ||
| "source": [ | ||
| "url1 = 'https://s3-us-west-1.amazonaws.com/graphistry.demo.data/BIOGRID-ALL-3.3.123.tab2.txt.gz'\n", | ||
| "rawdata = pandas.read_table(url1, na_values=['-'], engine='c', compression='gzip')\n", | ||
| "url1 = 'http://thebiogrid.org/downloads/archives/Release%20Archive/BIOGRID-3.3.123/BIOGRID-ALL-3.3.123.tab2.zip'\n", | ||
|
||
| "rawdata = pandas.read_table(url1, na_values=['-'], engine='c')#, compression='gzip')\n", | ||
| "\n", | ||
| "# If using local data, comment the two lines above and uncomment the line below\n", | ||
| "# pandas.read_table('./data/BIOGRID-ALL-3.3.123.tab2.txt', na_values=['-'], engine='c')\n", | ||
|
|
@@ -162,35 +162,9 @@ | |
| }, | ||
| { | ||
| "cell_type": "code", | ||
| "execution_count": 3, | ||
| "execution_count": null, | ||
| "metadata": {}, | ||
| "outputs": [ | ||
lmeyerov marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| { | ||
| "data": { | ||
| "text/html": [ | ||
| "\n", | ||
| " <iframe id=\"59e1c841-c0e5-4b53-a0f7-29650ec2536f\" src=\"https://hub.graphistry.com/graph/graph.html?dataset=s3://graphistry.data/pygraphistry/50ad94358da9e7cb7924335eb336ce7a/dataset.json&type=jsonMeta&viztoken=081a2c85d68a5d175fdf33fe29297ed6fe724c99&usertag=86f11264-pygraphistry-0.9.63&splashAfter=1554614704&info=true\"\n", | ||
| " allowfullscreen=\"true\" webkitallowfullscreen=\"true\" mozallowfullscreen=\"true\"\n", | ||
| " oallowfullscreen=\"true\" msallowfullscreen=\"true\"\n", | ||
| " style=\"width:100%; height:500px; border: 1px solid #DDD\">\n", | ||
| " </iframe>\n", | ||
| " \n", | ||
| " <script>\n", | ||
| " $(\"#59e1c841-c0e5-4b53-a0f7-29650ec2536f\").bind('mousewheel', function(e) {\n", | ||
| " e.preventDefault();\n", | ||
| " });\n", | ||
| " </script>\n", | ||
| " " | ||
| ], | ||
| "text/plain": [ | ||
| "<IPython.core.display.HTML object>" | ||
| ] | ||
| }, | ||
| "execution_count": 3, | ||
| "metadata": {}, | ||
| "output_type": "execute_result" | ||
| } | ||
| ], | ||
| "outputs": [], | ||
| "source": [ | ||
| "g = graphistry.bind(source=\"BioGRID ID Interactor A\", destination=\"BioGRID ID Interactor B\")\n", | ||
| "g.plot(interactions.sample(10000))" | ||
|
|
@@ -206,7 +180,7 @@ | |
| }, | ||
| { | ||
| "cell_type": "code", | ||
| "execution_count": 4, | ||
| "execution_count": 9, | ||
| "metadata": { | ||
| "scrolled": true | ||
| }, | ||
|
|
@@ -215,18 +189,18 @@ | |
| "data": { | ||
| "text/html": [ | ||
| "<div>\n", | ||
| "<style>\n", | ||
| " .dataframe thead tr:only-child th {\n", | ||
| " text-align: right;\n", | ||
| " }\n", | ||
| "\n", | ||
| " .dataframe thead th {\n", | ||
| " text-align: left;\n", | ||
| "<style scoped>\n", | ||
| " .dataframe tbody tr th:only-of-type {\n", | ||
| " vertical-align: middle;\n", | ||
| " }\n", | ||
| "\n", | ||
| " .dataframe tbody tr th {\n", | ||
| " vertical-align: top;\n", | ||
| " }\n", | ||
| "\n", | ||
| " .dataframe thead th {\n", | ||
| " text-align: right;\n", | ||
| " }\n", | ||
| "</style>\n", | ||
| "<table border=\"1\" class=\"dataframe\">\n", | ||
| " <thead>\n", | ||
|
|
@@ -263,15 +237,15 @@ | |
| "22 3 Arabidopsis thaliana" | ||
| ] | ||
| }, | ||
| "execution_count": 4, | ||
| "execution_count": 9, | ||
| "metadata": {}, | ||
| "output_type": "execute_result" | ||
| } | ||
| ], | ||
| "source": [ | ||
| "# This downloads 170 MB, it might take some time.\n", | ||
| "url2 = 'https://s3-us-west-1.amazonaws.com/graphistry.demo.data/BIOGRID-IDENTIFIERS-3.3.123.tab.txt.gz'\n", | ||
| "raw_proteins = pandas.read_table(url2, na_values=['-'], engine='c', compression='gzip')\n", | ||
| "url2 = 'http://thebiogrid.org/downloads/archives/Release%20Archive/BIOGRID-3.3.123/BIOGRID-IDENTIFIERS-3.3.123.tab.zip'\n", | ||
| "raw_proteins = pandas.read_table(url2, na_values=['-'], skiprows=28)#, engine='c', compression='gzip')\n", | ||
| "\n", | ||
| "# If using local data, comment the two lines above and uncomment the line below\n", | ||
| "# raw_proteins = pandas.read_table('./data/BIOGRID-IDENTIFIERS-3.3.123.tab.txt', na_values=['-'], engine='c')\n", | ||
|
|
@@ -291,7 +265,7 @@ | |
| }, | ||
| { | ||
| "cell_type": "code", | ||
| "execution_count": 5, | ||
| "execution_count": 10, | ||
| "metadata": { | ||
| "scrolled": true | ||
| }, | ||
|
|
@@ -300,18 +274,18 @@ | |
| "data": { | ||
| "text/html": [ | ||
| "<div>\n", | ||
| "<style>\n", | ||
| " .dataframe thead tr:only-child th {\n", | ||
| " text-align: right;\n", | ||
| " }\n", | ||
| "\n", | ||
| " .dataframe thead th {\n", | ||
| " text-align: left;\n", | ||
| "<style scoped>\n", | ||
| " .dataframe tbody tr th:only-of-type {\n", | ||
| " vertical-align: middle;\n", | ||
| " }\n", | ||
| "\n", | ||
| " .dataframe tbody tr th {\n", | ||
| " vertical-align: top;\n", | ||
| " }\n", | ||
| "\n", | ||
| " .dataframe thead th {\n", | ||
| " text-align: right;\n", | ||
| " }\n", | ||
| "</style>\n", | ||
| "<table border=\"1\" class=\"dataframe\">\n", | ||
| " <thead>\n", | ||
|
|
@@ -348,7 +322,7 @@ | |
| "2 106605 ACVR1" | ||
| ] | ||
| }, | ||
| "execution_count": 5, | ||
| "execution_count": 10, | ||
| "metadata": {}, | ||
| "output_type": "execute_result" | ||
| } | ||
|
|
@@ -375,25 +349,25 @@ | |
| }, | ||
| { | ||
| "cell_type": "code", | ||
| "execution_count": 6, | ||
| "execution_count": 11, | ||
| "metadata": {}, | ||
| "outputs": [ | ||
| { | ||
| "data": { | ||
| "text/html": [ | ||
| "<div>\n", | ||
| "<style>\n", | ||
| " .dataframe thead tr:only-child th {\n", | ||
| " text-align: right;\n", | ||
| " }\n", | ||
| "\n", | ||
| " .dataframe thead th {\n", | ||
| " text-align: left;\n", | ||
| "<style scoped>\n", | ||
| " .dataframe tbody tr th:only-of-type {\n", | ||
| " vertical-align: middle;\n", | ||
| " }\n", | ||
| "\n", | ||
| " .dataframe tbody tr th {\n", | ||
| " vertical-align: top;\n", | ||
| " }\n", | ||
| "\n", | ||
| " .dataframe thead th {\n", | ||
| " text-align: right;\n", | ||
| " }\n", | ||
| "</style>\n", | ||
| "<table border=\"1\" class=\"dataframe\">\n", | ||
| " <thead>\n", | ||
|
|
@@ -434,7 +408,7 @@ | |
| "2 106605 ACVR1 Homo sapiens" | ||
| ] | ||
| }, | ||
| "execution_count": 6, | ||
| "execution_count": 11, | ||
| "metadata": {}, | ||
| "output_type": "execute_result" | ||
| } | ||
|
|
@@ -453,7 +427,7 @@ | |
| }, | ||
| { | ||
| "cell_type": "code", | ||
| "execution_count": 7, | ||
| "execution_count": 12, | ||
| "metadata": {}, | ||
| "outputs": [], | ||
| "source": [ | ||
|
|
@@ -470,25 +444,25 @@ | |
| }, | ||
| { | ||
| "cell_type": "code", | ||
| "execution_count": 8, | ||
| "execution_count": 13, | ||
| "metadata": {}, | ||
| "outputs": [ | ||
| { | ||
| "data": { | ||
| "text/html": [ | ||
| "<div>\n", | ||
| "<style>\n", | ||
| " .dataframe thead tr:only-child th {\n", | ||
| " text-align: right;\n", | ||
| " }\n", | ||
| "\n", | ||
| " .dataframe thead th {\n", | ||
| " text-align: left;\n", | ||
| "<style scoped>\n", | ||
| " .dataframe tbody tr th:only-of-type {\n", | ||
| " vertical-align: middle;\n", | ||
| " }\n", | ||
| "\n", | ||
| " .dataframe tbody tr th {\n", | ||
| " vertical-align: top;\n", | ||
| " }\n", | ||
| "\n", | ||
| " .dataframe thead th {\n", | ||
| " text-align: right;\n", | ||
| " }\n", | ||
| "</style>\n", | ||
| "<table border=\"1\" class=\"dataframe\">\n", | ||
| " <thead>\n", | ||
|
|
@@ -538,7 +512,7 @@ | |
| "2 Homo sapiens 0 " | ||
| ] | ||
| }, | ||
| "execution_count": 8, | ||
| "execution_count": 13, | ||
| "metadata": {}, | ||
| "output_type": "execute_result" | ||
| } | ||
|
|
@@ -557,7 +531,7 @@ | |
| }, | ||
| { | ||
| "cell_type": "code", | ||
| "execution_count": 9, | ||
| "execution_count": 14, | ||
| "metadata": { | ||
| "scrolled": true | ||
| }, | ||
|
|
@@ -566,18 +540,18 @@ | |
| "data": { | ||
| "text/html": [ | ||
| "<div>\n", | ||
| "<style>\n", | ||
| " .dataframe thead tr:only-child th {\n", | ||
| " text-align: right;\n", | ||
| " }\n", | ||
| "\n", | ||
| " .dataframe thead th {\n", | ||
| " text-align: left;\n", | ||
| "<style scoped>\n", | ||
| " .dataframe tbody tr th:only-of-type {\n", | ||
| " vertical-align: middle;\n", | ||
| " }\n", | ||
| "\n", | ||
| " .dataframe tbody tr th {\n", | ||
| " vertical-align: top;\n", | ||
| " }\n", | ||
| "\n", | ||
| " .dataframe thead th {\n", | ||
| " text-align: right;\n", | ||
| " }\n", | ||
| "</style>\n", | ||
| "<table border=\"1\" class=\"dataframe\">\n", | ||
| " <thead>\n", | ||
|
|
@@ -649,7 +623,7 @@ | |
| "2 Low Throughput " | ||
| ] | ||
| }, | ||
| "execution_count": 9, | ||
| "execution_count": 14, | ||
| "metadata": {}, | ||
| "output_type": "execute_result" | ||
| } | ||
|
|
@@ -673,44 +647,11 @@ | |
| }, | ||
| { | ||
| "cell_type": "code", | ||
| "execution_count": 10, | ||
| "execution_count": null, | ||
| "metadata": { | ||
| "scrolled": false | ||
| }, | ||
| "outputs": [ | ||
| { | ||
| "name": "stdout", | ||
| "output_type": "stream", | ||
| "text": [ | ||
| "Uploading 7139 kB. This may take a while...\n" | ||
| ] | ||
| }, | ||
| { | ||
| "data": { | ||
| "text/html": [ | ||
lmeyerov marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "\n", | ||
| " <iframe id=\"083451dc-af48-4258-8c35-74f97130ea2e\" src=\"https://hub.graphistry.com/graph/graph.html?dataset=s3://graphistry.data/pygraphistry/7b876012458fc4c83644f88b14f96be5/dataset.json&type=jsonMeta&viztoken=0db9e5e57bbe115a40b64692dd5f2d7a5f2ec4a0&usertag=86f11264-pygraphistry-0.9.63&splashAfter=1554614820&info=true\"\n", | ||
| " allowfullscreen=\"true\" webkitallowfullscreen=\"true\" mozallowfullscreen=\"true\"\n", | ||
| " oallowfullscreen=\"true\" msallowfullscreen=\"true\"\n", | ||
| " style=\"width:100%; height:500px; border: 1px solid #DDD\">\n", | ||
| " </iframe>\n", | ||
| " \n", | ||
| " <script>\n", | ||
| " $(\"#083451dc-af48-4258-8c35-74f97130ea2e\").bind('mousewheel', function(e) {\n", | ||
| " e.preventDefault();\n", | ||
| " });\n", | ||
| " </script>\n", | ||
| " " | ||
| ], | ||
| "text/plain": [ | ||
| "<IPython.core.display.HTML object>" | ||
| ] | ||
| }, | ||
| "execution_count": 10, | ||
| "metadata": {}, | ||
| "output_type": "execute_result" | ||
| } | ||
| ], | ||
| "outputs": [], | ||
| "source": [ | ||
| "# This will upload ~10MB of data, be patient!\n", | ||
| "g2 = g.bind(node='BIOGRID_ID', edge_title='Author', point_title='SYMBOL', point_color='Color')\n", | ||
|
|
@@ -743,7 +684,7 @@ | |
| "name": "python", | ||
| "nbconvert_exporter": "python", | ||
| "pygments_lexer": "ipython3", | ||
| "version": "3.7.11" | ||
| "version": "3.12.2" | ||
| } | ||
| }, | ||
| "nbformat": 4, | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.