def domain_concatenated_no4Gor4C(seq,seqs):
    """prevent G^4 and C^4 under concatenation"""
    for altseq in seqs:
        catseq = altseq+seq+altseq
        if 'GGGG' in catseq: 
#             print '|GGGG# seq: %s altseq: %s|' % (seq,altseq)
            return False
        if 'CCCC' in catseq: 
#             print '|CCCC# seq: %s altseq: %s|' % (seq,altseq)
            return False
    return True