Skip to content

Instantly share code, notes, and snippets.

@mr-eyes
mr-eyes / prefetch_clustering.py
Created July 23, 2022 10:22
Clustering prefetch comparisons
import retworkx as rx
from tqdm import tqdm
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--csv', type=str, required=True, help="pairwise csv file")
parser.add_argument('--cutoff', type=int, required=True,
help="clustering threshold (0:100)")
parser.add_argument('--mode', type=str, required=True, choices=['ani', 'cont'],
#! /usr/bin/env python
import sourmash
if __name__ == "__main__":
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("-k", "--ksize", type=int, default=51)

Make a new volume from the EC2 GUI.

Format the new volume

sudo mkfs -t ext4 /dev/xvdg

Mount the new volume

sudo mount /dev/xvdg /mnt2/