Skip to content

Instantly share code, notes, and snippets.

Avatar

Isaac Virshup ivirshup

View GitHub Profile
@ivirshup
ivirshup / jsscatter-citeseq.ipynb
Created May 24, 2022
jupyter-scatter + citeseq example
View jsscatter-citeseq.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ivirshup
ivirshup / dependents.ipynb
Created May 11, 2022
Dependents of scverse packages
View dependents.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ivirshup
ivirshup / Full log
Created Jul 6, 2021
pynndescent 0.5.3 traceback
View Full log
This file has been truncated, but you can view the full file.
2021-07-06T06:22:38.2855413Z ##[section]Starting: PyTest
2021-07-06T06:22:38.2865170Z ==============================================================================
2021-07-06T06:22:38.2865487Z Task : Command line
2021-07-06T06:22:38.2866717Z Description : Run a command line script using Bash on Linux and macOS and cmd.exe on Windows
2021-07-06T06:22:38.2867060Z Version : 2.182.0
2021-07-06T06:22:38.2867287Z Author : Microsoft Corporation
2021-07-06T06:22:38.2867638Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/command-line
2021-07-06T06:22:38.2868015Z ==============================================================================
2021-07-06T06:22:39.2961314Z Generating script.
@ivirshup
ivirshup / example.py
Created Mar 7, 2021
tsne_nearest_neighbor_method
View example.py
import scanpy as sc
import numpy as np
from matplotlib import pyplot as plt
from openTSNE import TSNE
from itertools import product
pbmc = sc.datasets.pbmc3k_processed()
RANDOM_STATE = 1291321
keys = []
View gist:3985cdbb9a838f3948d5ee5aaf0bf8e3
Sampling process 44517 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling csgo_osx64 (pid 44517) every 1 millisecond
Process: csgo_osx64 [44517]
Path: /Users/USER/Library/Application Support/Steam/*/csgo_osx64
Load Address: 0x10f2e9000
Identifier: csgo_osx64
Version: ???
Code Type: X86-64
Parent Process: bash [44514]
@ivirshup
ivirshup / log.txt
Created Feb 3, 2021
scanorama error log
View log.txt
2021-02-03T05:26:14.6653679Z ##[section]Starting: PyTest Python36
2021-02-03T05:26:14.9395796Z ##[section]Starting: Initialize job
2021-02-03T05:26:14.9397123Z Agent name: 'Azure Pipelines 4'
2021-02-03T05:26:14.9397517Z Agent machine name: 'fv-az315-103'
2021-02-03T05:26:14.9397757Z Current agent version: '2.181.1'
2021-02-03T05:26:14.9441788Z ##[group]Operating System
2021-02-03T05:26:14.9442012Z Ubuntu
2021-02-03T05:26:14.9442183Z 18.04.5
2021-02-03T05:26:14.9442318Z LTS
2021-02-03T05:26:14.9442484Z ##[endgroup]
@ivirshup
ivirshup / norm_results.py
Created Jan 5, 2021
glm-pca, normalization factor results
View norm_results.py
import scanpy as sc, numpy as np
from matplotlib import pyplot as plt
from sklearn.utils import sparsefuncs
def norm_frac(adata):
sparsefuncs.inplace_row_scale(adata.X, 1 / adata.X.sum(axis=1).A1)
return adata
def norm_cpm(adata):
sparsefuncs.inplace_row_scale(adata.X, 1_000_000 / adata.X.sum(axis=1).A1)
@ivirshup
ivirshup / nytimes_election_data.py
Created Nov 6, 2020
Accessing nytimes election data for procrastination purposes
View nytimes_election_data.py
import requests
import pandas as pd
def fetch_state_results(state: str) -> dict:
r = requests.get(f"https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/{state}/president.json")
return r.json()["data"]
def _process_records(input: "list[dict]") -> pd.DataFrame:
@ivirshup
ivirshup / systeminfo.txt
Created Aug 10, 2020
steam system info
View systeminfo.txt
Computer Information:
Manufacturer: Apple
Model: MacBookPro16,1
Form Factor: Laptop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
CPU Family: 0x6
@ivirshup
ivirshup / pytest-output.txt
Created Aug 5, 2020
diffxpy test failures
View pytest-output.txt
===================================================== test session starts =====================================================
platform darwin -- Python 3.8.5, pytest-5.4.3, py-1.9.0, pluggy-0.13.1
rootdir: /Users/isaac/github/diffxpy
plugins: cov-2.10.0
collected 68 items
diffxpy/unit_test/test_acc_glm_all_numpy_temp.py F [ 1%]
diffxpy/unit_test/test_backends.py .FF [ 5%]
diffxpy/unit_test/test_constrained.py FFF [ 10%]
diffxpy/unit_test/test_continuous_de.py .F [ 13%]