Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
GEN=$1
SYS=$GEN.sys
REF=$GEN.ref
grep ^H $GEN | cut -f3- | perl -ple 's{(\S)-(\S)}{$1 ##AT##-##AT## $2}g' > $SYS
grep ^T $GEN | cut -f2- | perl -ple 's{(\S)-(\S)}{$1 ##AT##-##AT## $2}g' > $REF
python score.py --sys $SYS --ref $REF
#!/usr/bin/env python
import argparse
import gzip
import json
import requests
from io import BytesIO, StringIO
from urllib.parse import urlencode