Skip to content

Commit

Permalink
#1106 delete commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
ntran18 committed Apr 16, 2024
1 parent 9c02aa7 commit 786c18a
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions database/combine_all_genes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@
PROTEIN_GENE_SOURCE = "protein-protein-database/script-results/processed-loader-files/gene.csv"
EXPRESSION_GENE_SOURCE = "expression-database/script-results/processed-expression/genes.csv"

# all_genes = {}
# with open(NETWORK_GENE_SOURCE, 'r') as network_gene_file:
# network_gene_file.readline()
# for line in network_gene_file:
# gene_id, display_gene_id, species, taxon_id, regulator = line.strip().split('\t')
# all_genes[display_gene_id] = gene_id

import csv


Expand All @@ -27,24 +20,6 @@ def read_genes_from_csv(file_path):
row_num += 1
return genes

# # Function to read gene information from a CSV file into a dictionary
# def read_gene_info_from_csv(file_path):
# gene_info = {}
# with open(file_path, 'r') as file:
# reader = csv.reader(file)
# row_num = 0
# for row in reader:
# if row_num != 0:
# r= ','.join(row).split('\t')
# gene_info[r[0]] = {
# 'Display Gene ID': r[1],
# 'Species': r[2],
# 'Taxon': r[3],
# 'Regulator': r[4]
# }
# row_num += 1
# return gene_info

def read_gene_info_from_csv(file_path):
gene_info = {}
with open(file_path, 'r') as file:
Expand Down

0 comments on commit 786c18a

Please sign in to comment.