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
#!/usr/bin/env python3 | |
# -*- coding: UTF-8 -*- | |
import sys | |
import argparse | |
import pandas as pd | |
def main(table: str, n_genes: int, target_colname: str) -> None: | |
data = ( | |
pd.read_csv( |
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
#!/usr/bin/env bash | |
set -eo pipefail | |
# echo errors massages and exit. | |
function error (){ | |
echo "ERROR: ${*}" | |
exit 1 | |
} |
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
#!/usr/bin/env python3 | |
import os | |
from sys import argv | |
from collections import OrderedDict | |
from itertools import product | |
from Bio import SeqIO | |
def get_word_dict(word_size: int = 1, recursive = True): | |
"""Get a orderedDict of k-mers with zero values: {"A": 0, "C": 0 ...} |