Mercurial > repos > tyty > structurefold
comparison Iterative_mapping/remove_map.py @ 104:60278e5df493 draft
Uploaded
author | tyty |
---|---|
date | Thu, 19 Mar 2015 17:42:48 -0400 |
parents | d56631911cc1 |
children |
comparison
equal
deleted
inserted
replaced
103:51fa1298f55e | 104:60278e5df493 |
---|---|
1 #!/usr/bin/env python | |
2 # -*- coding: utf-8 -*- | |
3 | |
4 import sys | |
5 from read_file import * | |
6 | |
7 | |
8 unmap_file = sys.argv[1] | |
9 map_file = sys.argv[2] | |
10 result_file = sys.argv[3] | |
11 | |
12 | |
13 unmap = read_t_file(unmap_file) | |
14 mapped = read_t_file(map_file) | |
15 h = file(result_file, 'w') | |
16 | |
17 maps = set() | |
18 for i in range(len(mapped)): | |
19 maps.add(mapped[i][0]) | |
20 | |
21 | |
22 for i in range(len(unmap)): | |
23 name = unmap[i][0] | |
24 if name not in maps: | |
25 h.write(name) | |
26 h.write('\n') | |
27 | |
28 | |
29 h.close() |