Skip to content

Instantly share code, notes, and snippets.

View samehkamaleldin's full-sized avatar

Sameh Mohamed samehkamaleldin

View GitHub Profile
from collections import Counter
from typing import Dict
def main():
# ----------------- Configuration ----------------- #
fasta_filepath = "./data/Hsym_primary_v1.0.aa.fasta"
window_size = 16
slide_size = 4
aa_min_occurrences = {'R': 5, 'G': 3}
@samehkamaleldin
samehkamaleldin / .tmux.conf
Created October 13, 2024 22:37
TMUX config
# : << 'EOF'
# https://github.com/gpakosz/.tmux
# (‑●‑●)> dual licensed under the WTFPL v2 license and the MIT license,
# without any warranty.
# Copyright 2012— Gregory Pakosz (@gpakosz).
#
# ------------------------------------------------------------------------------
# /!\ DO NOT EDIT THIS FILE
# instead, override your .local customization file copy, see README.md /!\
# ------------------------------------------------------------------------------
@samehkamaleldin
samehkamaleldin / mocha.omp.toml
Created October 30, 2024 16:23
omp cappuccino
version = 2
console_title_template = '{{ .Shell }} in {{ .PWD }}'
shell_integration = true
[[blocks]]
type = 'prompt'
alignment = 'left'
newline = true
[[blocks.segments]]
@samehkamaleldin
samehkamaleldin / angio_xlsx_aggregation.py
Last active July 28, 2025 19:37
Parse 3mensio xlms
import xml.etree.ElementTree as ET
import re
from pathlib import Path
from typing import Dict, List, Any, Optional
from dataclasses import dataclass, field
import logging
import pandas as pd
from datetime import datetime
# Set up logging
@samehkamaleldin
samehkamaleldin / group_data.py
Created July 21, 2025 20:49
Group case data
#!/usr/bin/env python3
import argparse
import re
import shutil
from pathlib import Path
from typing import Dict, List, Set
DATA_DIRPATH = r"PATH_TO_YOUR_DATA_DIRECTORY" # Replace with your actual data directory path
@samehkamaleldin
samehkamaleldin / xml_cases_merger.py
Created July 30, 2025 22:54
xml_cases_merger.py
import xml.etree.ElementTree as ET
import re
from pathlib import Path
from typing import Dict, List, Any, Optional
from dataclasses import dataclass, field
import logging
import pandas as pd
from datetime import datetime
# Set up logging