Skip to content

Instantly share code, notes, and snippets.

View Ge0rges's full-sized avatar
🌍
Worrying about Climate Change.

Georges Kanaan Ge0rges

🌍
Worrying about Climate Change.
View GitHub Profile
@Ge0rges
Ge0rges / gist:594f88f09d17b5d24cc0051f65c491e5
Created March 15, 2024 02:13
Make the MDMParis defense finder models compatible with Anvi'o.
#!/bin/bash
# Set the GitHub repository and destination folder
github_repo="mdmparis/defense-finder-models"
destination_folder="DefenseFinder/"
source_folder="defense-finder-models"
# Function to check if a file exists, and exit with a warning if it does
check_file_exists() {
if [ -e "$1" ]; then
@Ge0rges
Ge0rges / make_defensefinder_hmm.sh
Created November 20, 2023 06:30
Downloads the latest release of Defense Finder HMM models and create an anvio compatible `hmm-source`
#!/bin/bash
# Set the GitHub repository and destination folder
github_repo="mdmparis/defense-finder-models"
destination_folder="DefenseFinder_anvio/"
source_folder="defense-finder-models"
# Function to check if a file exists, and exit with a warning if it does
check_file_exists() {
if [ -e "$1" ]; then
@Ge0rges
Ge0rges / geotag.py
Last active June 5, 2023 14:09
Add GPS data to images from ship GPS data by time matching
"""
Add GPS data to JPG pictures based on the ship.json folder.
"""
import exifread
from gpsexif import setGPS
from os import listdir
from os.path import isfile, join
import json
from datetime import datetime, timedelta