#!/usr/bin/env python
# coding=utf-8

import sys
import csv

def iTOLcolours(fi):
    not_seen = set()
    seen = set()
    for row in csv.reader(fi, delimiter=','):
        
        if not row or row[0].startswith('#'):
              
           continue
        #print (row) 
        #elif re.search(',1',row[0]): #pattern, where to search
        if '1' in row:    
            #_id = ','.join(row[0].split(',')[1:])
            not_seen.add(row[0])  
           # print ('added')
    return not_seen    
            

unseenReads = iTOLcolours(sys.stdin)

for row in (unseenReads):
    print (row +',branch,#ef6e05,normal,4')

# csv files no empty lines expected 
# if not row (means if a row is empty) or (logical)    

86b8c117e2999bd8ac883e17344f321c264571c3
<mask token>


def iTOLcolours(fi):
    not_seen = set()
    seen = set()
    for row in csv.reader(fi, delimiter=','):
        if not row or row[0].startswith('#'):
            continue
        if '1' in row:
            not_seen.add(row[0])
    return not_seen


<mask token>

<mask token>


def iTOLcolours(fi):
    not_seen = set()
    seen = set()
    for row in csv.reader(fi, delimiter=','):
        if not row or row[0].startswith('#'):
            continue
        if '1' in row:
            not_seen.add(row[0])
    return not_seen


<mask token>
for row in unseenReads:
    print(row + ',branch,#ef6e05,normal,4')

<mask token>


def iTOLcolours(fi):
    not_seen = set()
    seen = set()
    for row in csv.reader(fi, delimiter=','):
        if not row or row[0].startswith('#'):
            continue
        if '1' in row:
            not_seen.add(row[0])
    return not_seen


unseenReads = iTOLcolours(sys.stdin)
for row in unseenReads:
    print(row + ',branch,#ef6e05,normal,4')

import sys
import csv


def iTOLcolours(fi):
    not_seen = set()
    seen = set()
    for row in csv.reader(fi, delimiter=','):
        if not row or row[0].startswith('#'):
            continue
        if '1' in row:
            not_seen.add(row[0])
    return not_seen


unseenReads = iTOLcolours(sys.stdin)
for row in unseenReads:
    print(row + ',branch,#ef6e05,normal,4')

#!/usr/bin/env python
# coding=utf-8

import sys
import csv

def iTOLcolours(fi):
    not_seen = set()
    seen = set()
    for row in csv.reader(fi, delimiter=','):
        
        if not row or row[0].startswith('#'):
              
           continue
        #print (row) 
        #elif re.search(',1',row[0]): #pattern, where to search
        if '1' in row:    
            #_id = ','.join(row[0].split(',')[1:])
            not_seen.add(row[0])  
           # print ('added')
    return not_seen    
            

unseenReads = iTOLcolours(sys.stdin)

for row in (unseenReads):
    print (row +',branch,#ef6e05,normal,4')

# csv files no empty lines expected 
# if not row (means if a row is empty) or (logical)    
