Team Ai
Datasetpublic

OpenScientificCodeRegistry/Database

Open Scientific Code Registry (OSCR): the authors' scripts The code published by the authors of open-access neuroscience papers, as found and verified by Open Scientific Code Registry (OSCR). Each file is here exactly as it is at the source, at the verified commit, under the license of its repository. 421,275 unique files (3,782 MB of text) from 8,849 repositories, in 24 Parquet block(s). Only files whose repository's license allows redistribution, confirmed by the repository's… See the full description on the dataset page: https://huggingface.co/datasets/OpenScientificCodeRegistry/Database.

sourceHugging Faceotherupdated 2d agoView on Hugging Face
0likes5.6kdownloads
github.com__csh3__stformer.json336 linesDownload Raw Back to ce
1{2 "format": "oscr-script-manifest/1",3 "repository": "github.com/csh3/stformer",4 "url": "https://github.com/csh3/stFormer",5 "host": "github.com",6 "commit": "d69fcfd06fccadaef686ee7c223a8a8079350010",7 "license": "MIT",8 "license_confirmed_by": "license file LICENSE",9 "redistribution": "yes",10 "files": [11  {12   "path": "LICENSE",13   "sha256": "1d6294be174651801578a718b57d8eebab27449b028d84aa96fd6c3ed4bbc99d",14   "language": "License",15   "lines": 21,16   "truncated": false,17   "block": 3,18   "row": 809319  },20  {21   "path": "README.md",22   "sha256": "8c53a70755be84039768bbc10130d417150d9e9aaeb0f34208da53760479c9c6",23   "language": "Text",24   "lines": 41,25   "truncated": false,26   "block": 4,27   "row": 243428  },29  {30   "path": "cases/signaling_ligand_identification/format_sc.ipynb",31   "sha256": "3c6ef3d1af46a93f363dfb2497d8d5e7ab046a3c6413c0eea066d14afca7062a",32   "language": "Jupyter",33   "lines": 143,34   "truncated": false,35   "block": 3,36   "row": 734737  },38  {39   "path": "cases/signaling_ligand_identification/stFormer_insilico_perturbation.ipynb",40   "sha256": "c536d69122c46d4d17da019f8edde5f58e08e41d42eac6614e6a84a8a95350ec",41   "language": "Jupyter",42   "lines": 312,43   "truncated": false,44   "block": 3,45   "row": 761946  },47  {48   "path": "cases/spatial_domain_identification/format_sc.ipynb",49   "sha256": "2e7f484ddc69193ac7ccff470be6a4ffcdd9bccb983e39565e21d5ec06593a34",50   "language": "Jupyter",51   "lines": 124,52   "truncated": false,53   "block": 3,54   "row": 731255  },56  {57   "path": "cases/spatial_domain_identification/stFormer_cell_clustering.ipynb",58   "sha256": "2326d744d5aabf9b1698b157a373ee66fb43281a5e8e9b0ca8b1714a58f4bfac",59   "language": "Jupyter",60   "lines": 264,61   "truncated": false,62   "block": 3,63   "row": 751564  },65  {66   "path": "datasets/deconvolution.py",67   "sha256": "53d1ceac53c153d47bd82968db1a9479f2b5d923a460ba75e51ab2f653b7b806",68   "language": "Python",69   "lines": 166,70   "truncated": false,71   "block": 3,72   "row": 2380673  },74  {75   "path": "datasets/format_sc.ipynb",76   "sha256": "647083ade19b66d0c152384a63049a8a569d2332fd159860fce6f38043251d1a",77   "language": "Jupyter",78   "lines": 175,79   "truncated": false,80   "block": 3,81   "row": 744582  },83  {84   "path": "datasets/format_visium.ipynb",85   "sha256": "afd96f21bef1c246878e689d4155aecf005c6e44453ecf4b8bc2b75148b1040a",86   "language": "Jupyter",87   "lines": 139,88   "truncated": false,89   "block": 3,90   "row": 739591  },92  {93   "path": "datasets/preprocess_rds.ipynb",94   "sha256": "2727b3fb67aa4e28491e6737e9ab6866a2e30e2869fa9e9ab0e6a47f548b83f9",95   "language": "Jupyter",96   "lines": 39,97   "truncated": false,98   "block": 3,99   "row": 7060100  },101  {102   "path": "pretraining/pretraining.py",103   "sha256": "054372f27b6aea4750c71958573c4d377c181aba3667cbf6b317284b53dd700f",104   "language": "Python",105   "lines": 314,106   "truncated": false,107   "block": 3,108   "row": 25797109  },110  {111   "path": "stformer/__init__.py",112   "sha256": "75d4ea5125a168763ae4d1a441d11c7909484c154d78761e1afd248cf80d8a12",113   "language": "Python",114   "lines": 18,115   "truncated": false,116   "block": 3,117   "row": 18496118  },119  {120   "path": "stformer/flash_attention.py",121   "sha256": "ee26de83cdbc6e3a04bc319d878cc2978ba6a4cb5c815299203bb203b06ba6a8",122   "language": "Python",123   "lines": 202,124   "truncated": false,125   "block": 3,126   "row": 25435127  },128  {129   "path": "stformer/loss.py",130   "sha256": "58f6282c8c6b6e7ccfc026f136fddbf85398ae7cf6e9b5fa21815e3475c36ae0",131   "language": "Python",132   "lines": 38,133   "truncated": false,134   "block": 3,135   "row": 19168136  },137  {138   "path": "stformer/model.py",139   "sha256": "962a23c28d10ed9905002d2000e1b3c20ad124c95ef19665816de6e9b46c99c8",140   "language": "Python",141   "lines": 451,142   "truncated": false,143   "block": 3,144   "row": 26944145  },146  {147   "path": "stformer/tokenizer/__init__.py",148   "sha256": "b7d667ac392213b50fe169c329a5684b8ec54ab78b79e5b2fe36a2593daf2c55",149   "language": "Python",150   "lines": 1,151   "truncated": false,152   "block": 3,153   "row": 17372154  },155  {156   "path": "stformer/tokenizer/gene_tokenizer.py",157   "sha256": "0bb0534bb71b0e2c47e3cc46ef1e3fd422ff502f49db7f746f9c96fe3f6c73f6",158   "language": "Python",159   "lines": 742,160   "truncated": false,161   "block": 3,162   "row": 27443163  },164  {165   "path": "tasks/figures/cell_classification/plot.ipynb",166   "sha256": "22fd3f4014f6c00f40234755414c5d524216ae4b73c87f95d5553700dcddb9f3",167   "language": "Jupyter",168   "lines": 182,169   "truncated": false,170   "block": 3,171   "row": 7364172  },173  {174   "path": "tasks/figures/gene_classification/plot_roc.ipynb",175   "sha256": "61439da2bc9855b07b56fbf5fba4936a358a235d85ea17f3825ac053cbb842e6",176   "language": "Jupyter",177   "lines": 112,178   "truncated": false,179   "block": 3,180   "row": 7272181  },182  {183   "path": "tasks/fine-tuning_mse/finetuning_scf.py",184   "sha256": "5e1b8926617309e2e77256c4aad925a72e642059b5cf5b4a472f2fd66a254a35",185   "language": "Python",186   "lines": 253,187   "truncated": false,188   "block": 3,189   "row": 25026190  },191  {192   "path": "tasks/fine-tuning_mse/finetuning_stformer.py",193   "sha256": "0722b581d1467f5e49475ee480ee3dedddc573959f068b5e4594c66cdced23f8",194   "language": "Python",195   "lines": 328,196   "truncated": false,197   "block": 3,198   "row": 25830199  },200  {201   "path": "tasks/scFoundation_cell_classification.ipynb",202   "sha256": "727e17ab56a69280ee4fbd70cb0d705003d7ff4fcebf392f1612ed9cec007f23",203   "language": "Jupyter",204   "lines": 504,205   "truncated": false,206   "block": 3,207   "row": 7711208  },209  {210   "path": "tasks/scFoundation_cell_clustering.ipynb",211   "sha256": "e92c6c638ed1e4985e21f413bc91c6483eded6169cb49dceab6cfb27295c2828",212   "language": "Jupyter",213   "lines": 222,214   "truncated": false,215   "block": 3,216   "row": 7424217  },218  {219   "path": "tasks/scFoundation_gene_classification.ipynb",220   "sha256": "00ec7f0b200503754a35f8e0261bc924b663b2853e6608ba403465455140fc7b",221   "language": "Jupyter",222   "lines": 545,223   "truncated": false,224   "block": 3,225   "row": 7746226  },227  {228   "path": "tasks/scfoundation/load.py",229   "sha256": "2e78d47a1e2787cb4deb4b78eb3bdc3412679435b520908ead18c44982eb5c0a",230   "language": "Python",231   "lines": 200,232   "truncated": false,233   "block": 3,234   "row": 24185235  },236  {237   "path": "tasks/scfoundation/pretrainmodels/__init__.py",238   "sha256": "b91f9193c90e5fae5ec069388b34df0814e9aa6c97481f165e10a87c5dbbbb74",239   "language": "Python",240   "lines": 3,241   "truncated": false,242   "block": 3,243   "row": 17542244  },245  {246   "path": "tasks/scfoundation/pretrainmodels/mae_autobin.py",247   "sha256": "b68161adf0f6b5be8a0353f8d6f3c00519689498e5cf7a62e4e762a67854ca8f",248   "language": "Python",249   "lines": 162,250   "truncated": false,251   "block": 3,252   "row": 23488253  },254  {255   "path": "tasks/scfoundation/pretrainmodels/performer.py",256   "sha256": "de8c13f0d1263534c3105f00a24973d112eb69ce3ec1a7b2522e67fb01ded49e",257   "language": "Python",258   "lines": 638,259   "truncated": false,260   "block": 3,261   "row": 27411262  },263  {264   "path": "tasks/scfoundation/pretrainmodels/pytorchTransformer.py",265   "sha256": "83d0bfad5a500059034355fdf729df39fa91d2089d1c835ee719ac87461ed2a3",266   "language": "Python",267   "lines": 80,268   "truncated": false,269   "block": 3,270   "row": 20737271  },272  {273   "path": "tasks/scfoundation/pretrainmodels/reversible.py",274   "sha256": "bd4673f38bdb15f644167880fce9cd134ab7a337855b9285e048de69a44f1ed4",275   "language": "Python",276   "lines": 200,277   "truncated": false,278   "block": 3,279   "row": 24298280  },281  {282   "path": "tasks/scfoundation/pretrainmodels/select_model.py",283   "sha256": "8eae9694a34d26bbdab86336d18bf24ce90203e1035544a2911d9b104bfafcb7",284   "language": "Python",285   "lines": 61,286   "truncated": false,287   "block": 3,288   "row": 20370289  },290  {291   "path": "tasks/scfoundation/pretrainmodels/transformer.py",292   "sha256": "dfa1b30e6da09bb25f7c1c05c9d5f41a4a26799f8b250b87f0d187c4373b286c",293   "language": "Python",294   "lines": 43,295   "truncated": false,296   "block": 3,297   "row": 19697298  },299  {300   "path": "tasks/stFormer_cell_classification.ipynb",301   "sha256": "b18019a5c2dfef5ab5c36859d33f02fca378a255aabc7d57e99739283e69b884",302   "language": "Jupyter",303   "lines": 572,304   "truncated": false,305   "block": 3,306   "row": 7756307  },308  {309   "path": "tasks/stFormer_cell_clustering.ipynb",310   "sha256": "f376cdb840197b3dc2cf092810b21b1c39da4d454609bf5a794ea0356d72b3e0",311   "language": "Jupyter",312   "lines": 242,313   "truncated": false,314   "block": 3,315   "row": 7490316  },317  {318   "path": "tasks/stFormer_gene_classification.ipynb",319   "sha256": "6c3a91b90e181a6198b1e374aab875ec2f887623b1a5a898dbadf48437706137",320   "language": "Jupyter",321   "lines": 594,322   "truncated": false,323   "block": 3,324   "row": 7775325  },326  {327   "path": "tasks/stFormer_insilico_perturbation.ipynb",328   "sha256": "af91be07b2719ffd6772105482df608481e7ebbb6eb02151907bb56b66f820f7",329   "language": "Jupyter",330   "lines": 468,331   "truncated": false,332   "block": 3,333   "row": 7739334  }335 ]336}