def get_strands(names, strand_dict):
    """Get list of sequences from list of names."""
    strands = []
    for name in names:
        assert name in strand_dict, 'Strand %s referenced before definition' % name
        strands.append(strand_dict[name])
    return strands
