Skip to content

Instantly share code, notes, and snippets.

View kjczarne's full-sized avatar

Chris kjczarne

  • KisoJi Biotech
  • Waterloo, ON
View GitHub Profile
@kjczarne
kjczarne / toml.json
Created January 30, 2024 20:45
NutritionVerse Metadata Snippets
{
// Place your snippets for toml here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",

Meshlab

Meshlab -> an open-source tool which lets you work with 3D meshes and models

[!danger] Deep sigh. As far as I'm aware, there is no way to undo in Meshlab, which means you should never overwrite your original files if you want to prevent information loss. Also whenever you can use the preview option in all filters and transforms before you hit Apply.

![[meshlab-interface.png]]

Installation

@kjczarne
kjczarne / sc_gpt.md
Created August 30, 2023 01:56
scGPT Cell Annotation Task Tutorial

Reproduced from the scGPT Cell Annotation tutorial. I just needed this consolidated into one file and saved as a gist. The code is an exact copy from the tutorial and the only modifications are in the paths to suit my setup.

To fine-tune scGPT for the Cell Annotation task, run the code snippet below. You can run it in VSCode with the notebook mode on, or directly from the command line.

Before you run:

  • Put the MS dataset under data/ms
  • Put the pre-trained model weights under save/scGPT_human
@kjczarne
kjczarne / sonar_quality_gate_watchdog.py
Last active February 17, 2021 15:57
SonarQube Quality Gate Watchdog
import json, requests, argparse, os, warnings, sys, pprint
class DefaultParser(argparse.ArgumentParser):
def error(self, message):
sys.stderr.write(f'error: {message}\n')
self.print_help()
sys.exit(2)
@kjczarne
kjczarne / FParsec Debugging and Testing.md
Created January 15, 2021 13:52
FParsec Debugging and Testing

FParsec Debugging and Testing Tools

Testing

Test parser and print parsing result to STDOUT:

let testPrint p str =
    printfn "Input: %s" str
    match run p str with