Skip to content

Instantly share code, notes, and snippets.

View jonasalmeida's full-sized avatar

Jonas Almeida jonasalmeida

View GitHub Profile
row cancer_type patiend_id
1 KIRC TCGA-BP-5195
2 STAD TCGA-D7-8573
3 READ TCGA-EI-7004
4 SKCM TCGA-EB-A82B
5 COAD TCGA-A6-3808
6 OV TCGA-29-1761
7 OV TCGA-24-1616
8 STAD TCGA-IN-A6RO
9 LUAD TCGA-44-8119
@jonasalmeida
jonasalmeida / tcgaPathSchema.json
Last active January 3, 2025 19:07
json schema for processing pathology reports
{
"$id": "https://gist.github.com/jonasalmeida/c551e8c0b5d9a14aeefecd872894904a",
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"Cancer_type": {"type": "string"},
"TNM_stage": {
"type": "object",
"properties": {
"Tumor": {"type": "string"},
{
"embeddings": [
{
"tensorName": "tcgaPathEmbeddings_9523",
"tensorShape": [
9523,
768
],
"tensorPath": "https://dl.dropboxusercontent.com/scl/fi/7x2o8900hw3psxaoql7uj/embeddings_9523.tsv?rlkey=pctxu60c39ygq71jw2yr3e06y&st=kd2tz766&dl=0",
"metadataPath": "https://gist.githubusercontent.com/jonasalmeida/83ebc7506bf52f60d50384f028715b47/raw/14bf85d905403a7ce37cfc5554218ce1eaa37f7d/cancer_type_name_meta.tsv"
@jonasalmeida
jonasalmeida / unitedCellphone.html
Last active November 19, 2021 00:44
United by cellphone, divided by wallet
<a href="https://www.pewresearch.org/fact-tank/2021/07/16/home-broadband-adoption-computer-ownership-vary-by-race-ethnicity-in-the-u-s">
<img src="https://www.pewresearch.org/wp-content/uploads/2021/07/FT_21.07.15_TechRegulation_01.png">
</a>
<a href="https://www.pewresearch.org/fact-tank/2021/06/22/digital-divide-persists-even-as-americans-with-lower-incomes-make-gains-in-tech-adoption">
<img src="https://www.pewresearch.org/wp-content/uploads/2021/06/ft_2021.06.22_digitaldivideincome_01.png">
</a>
@jonasalmeida
jonasalmeida / mortalityStockSources.json
Last active May 27, 2020 13:57
Mortality Stock data sources
{
"https://data.cdc.gov/resource/muzy-jte6.json":{
"name":"Weekly Counts of Deaths by State and Select Causes, 2019-2020",
"type":"socrata",
"description":"Provisional counts of deaths by the week the deaths occurred, by state of occurrence, and by select underlying causes of death for 2019-2020. The dataset also includes weekly provisional counts of death for COVID-19, coded to ICD-10 code U07.1 as an underlying or multiple cause of death."
},
"https://data.cdc.gov/resource/3yf8-kanr.json":{
"name":"Weekly Counts of Deaths by State and Select Causes, 2014-2018",
"type":"socrata",
"description":"Final counts of deaths by the week the deaths occurred, by state of occurrence, and by select causes of death for 2014-2018. Death counts in this dataset were derived from the National Vital Statistics System database that provides the most timely access to the data. Therefore, counts may differ slightly from final data due to differences in processing, recoding, and imputation."
Verifying my Blockstack ID is secured with the address 194cZZBfYZYtuRdnjVbNWnVNkUX6B8xJYL https://explorer.blockstack.org/address/194cZZBfYZYtuRdnjVbNWnVNkUX6B8xJYL
Verifying my Blockstack ID is secured with the address 194cZZBfYZYtuRdnjVbNWnVNkUX6B8xJYL https://explorer.blockstack.org/address/194cZZBfYZYtuRdnjVbNWnVNkUX6B8xJYL
var http = require('http')
var port = process.env.PORT || 1337;
http.createServer(function(req, res) {
res.writeHead(200, {
'Content-Type': 'text/plain',
'Access-Control-Allow-Origin': '*' // CORS
});
if(req.url.match('=')){
var pp=req.url.slice(2).split('=') // parameter array
var parm={}