Skip to content

Commit

Permalink
Remove call to deprecated from_csv()
Browse files Browse the repository at this point in the history
  • Loading branch information
justaddcoffee committed May 13, 2020
1 parent 9e9105d commit 9b39bcc
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,16 @@ def __init__(self, input_dir: str, output_dir: str):
self.edges_file = 'merged-kg_edges.tsv'

def run(self):
# generate list of SARS-CoV-2 proteins
# extract TSV files
tsv_tarfile = os.path.join(self.input_dir, 'kg-covid-19.tar.gz')
tar = tarfile.open(tsv_tarfile, "r:gz")
tar.extractall()
tar.close()

nodes_df = pd.DataFrame.from_csv(os.path.join(self.input_dir, self.nodes_file),
# generate list of SARS-CoV-2 proteins
nodes_df = pd.read_csv(os.path.join(self.input_dir, self.nodes_file),
sep='\t')
edges_df = pd.DataFrame.from_csv(os.path.join(self.input_dir, self.edges_file),
edges_df = pd.read_csv(os.path.join(self.input_dir, self.edges_file),
sep='\t')
# generate list of proteins that interact with SARS-CoV-2 according to IntAct
pass

0 comments on commit 9b39bcc

Please sign in to comment.