Skip to content

Commit

Permalink
fix attribute to id mapping for format change due to #28
Browse files Browse the repository at this point in the history
  • Loading branch information
kzuberi committed Jul 21, 2015
1 parent d1b948e commit ad2049e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builder/map_attributes_to_ids.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

def main(filename, desc, mapping, output):

desc = pd.read_csv(desc, sep='\t', header=False, na_filter=False, names = ['ATTRIBUTE_ID', 'ATTRIBUTE_SYMBOL', 'DESCRIPTION'])
desc = pd.read_csv(desc, sep='\t', header=False, na_filter=False, names = ['ATTRIBUTE_ID', 'ATTRIBUTE_SYMBOL', 'ATTRIBUTE_NAME', 'DESCRIPTION'])
desc['ATTRIBUTE_SYMBOL'] = desc['ATTRIBUTE_SYMBOL'].str.upper()

symbols = pd.read_csv(mapping, sep='\t', header=None, na_filter=False, names=['NODE_ID', 'GENE_SYMBOL', 'SOURCE'])
Expand Down Expand Up @@ -42,4 +42,4 @@ def main(filename, desc, mapping, output):
parser.add_argument('output', help='output file')

args = parser.parse_args()
main(args.filename, args.desc, args.mapping, args.output)
main(args.filename, args.desc, args.mapping, args.output)

0 comments on commit ad2049e

Please sign in to comment.