Commit 382c637c authored by David Hoksza's avatar David Hoksza
Browse files

minor change in genes overlay generator

parent d74d4f67
import common
import logging
import json
import argparse
from typing import List, Dict, Set
import requests
def get_minerva_format(gene_symbols: List[str]) -> str:
......@@ -11,7 +8,7 @@ def get_minerva_format(gene_symbols: List[str]) -> str:
out += "#NAME=DISEASE ASSOCIATED GENES\n"
out += "Name\tColor\n"
for gs in gene_symbols:
for gs in set(gene_symbols):
out += "{}\t#009E73\n".format(gs)
return out
......@@ -31,4 +28,5 @@ if __name__ == '__main__':
with open(args.file) as f:
gene_symbols = f.read()
print(get_minerva_format(gene_symbols.strip().split(",")))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment