# Path: alfpy/utils/seqrecords.py
# class SeqRecords:
#     def __init__(self, id_list=None, seq_list=None):
#     def add(self, seqid, seq):
#     def fasta(self, wrap=70):
#     def length_list(self):
#     def __iter__(self):
#     def __len__(self):
#     def __repr__(self):
# def read_fasta(handle):
# def main():
# 
# Path: alfpy/version.py



import hashlib
import os
import subprocess
from alfpy.utils import seqrecords
from alfpy import __version__



ALPHABET_DNA = 'ATGC'
ALPHABET_PEP = 'ACDEFGHIKLMNPRSTQWVY'


def get_test_data(filename):
    filepath = os.path.join(os.path.dirname(__file__), 'data', filename)
    return filepath


def calc_md5(obj):
    return hashlib.md5(str(obj).encode("utf-8")).hexdigest()


def runscript(scriptname, args):
    cmd = [scriptname]
    for arg in args:
        cmd.append(arg)
    p = subprocess.Popen(cmd, stdout=subprocess.PIPE,
                         stderr=subprocess.PIPE,

# Path: alfpy/utils/seqrecords.py
# class SeqRecords:
#     def __init__(self, id_list=None, seq_list=None):
#     def add(self, seqid, seq):
#     def fasta(self, wrap=70):
#     def length_list(self):
#     def __iter__(self):
#     def __len__(self):
#     def __repr__(self):
# def read_fasta(handle):
# def main():
# 
# Path: alfpy/version.py



# Path: tests/utils.py
import hashlib
import os
import subprocess
from alfpy.utils import seqrecords
from alfpy import __version__




ALPHABET_DNA = 'ATGC'
ALPHABET_PEP = 'ACDEFGHIKLMNPRSTQWVY'


def get_test_data(filename):
    filepath = os.path.join(os.path.dirname(__file__), 'data', filename)
    return filepath


def calc_md5(obj):
    return hashlib.md5(str(obj).encode("utf-8")).hexdigest()


def runscript(scriptname, args):
    cmd = [scriptname]
    for arg in args:
        cmd.append(arg)
    p = subprocess.Popen(cmd, stdout=subprocess.PIPE,
                         stderr=subprocess.PIPE,

                         universal_newlines=True)