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
| import dspy | |
| from pydantic import BaseModel, Field | |
| lm = dspy.LM("ollama_chat/deepseek-r1:14b", api_base="http://localhost:11434", api_key="") | |
| dspy.configure(lm=lm) | |
| class Maladie(BaseModel): | |
| """ | |
| Une maladie associé à son contexte. | |
| Si la maladie est dans une négation ou dans un antécédant familliale. |
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
| import rdflib | |
| import polars | |
| # Chargement de la terminologie | |
| g = rdflib.Graph() | |
| g.parse("adicap.rdf") | |
| # Requete SPARQL pour récupérer les variables d'interets | |
| query = """ | |
| PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> |
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
| import rdflib | |
| import polars | |
| # Chargement de la terminologie | |
| g = rdflib.Graph() | |
| g.parse("atc.rdf") | |
| # Requete SPARQL pour récupérer les variables d'interets | |
| query = """ | |
| PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> |
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
| import rdflib | |
| import polars | |
| # Chargement de la terminologie | |
| g = rdflib.Graph() | |
| g.parse("ccam.rdf") | |
| # Requete SPARQL pour récupérer les variables d'interets | |
| query = """ | |
| PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> |
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
| import rdflib | |
| import polars | |
| # Chargement de la terminologie | |
| g = rdflib.Graph() | |
| g.parse("cim10.rdf") | |
| # Requete SPARQL pour récupérer les variables d'interets | |
| query = """ | |
| PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> |
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
| from PySide2.QtWidgets import * | |
| from PySide2.QtCore import * | |
| from PySide2.QtGui import * | |
| import sys | |
| class RangeSlider(QWidget): | |
| def __init__(self, parent=None): | |
| super().__init__(parent) |
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
| theme="onedark" | |
| [editor] | |
| true-color=true | |
| cursorline=true | |
| mouse= true | |
| bufferline="multiple" | |
| [keys.insert] | |
| C-c="normal_mode" |
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
| [[language]] | |
| name = "python" | |
| roots = ["pyproject.toml", "setup.py", "Poetry.lock", ".git"] | |
| language-server = { command = "pyright-langserver", args = ["--stdio"] } | |
| auto-format = true | |
| formatter = {command = 'black', args = ["--quiet", "-"]} | |
| config = "" |
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
| -- MAP KEY | |
| -- CONFIGURATION | |
| vim.opt.number = true | |
| vim.cmd [[colorscheme slate]] |
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
| use vcf::{VCFReader,VCFRecord}; | |
| use std::fs::File; | |
| use std::fs::remove_file; | |
| use std::io::BufReader; | |
| use std::str::from_utf8; | |
| use duckdb::{params, Connection}; |
NewerOlder