Skip to content

Commit

Permalink
PSP sites importer: Work only on selected columns (to reduce memory f…
Browse files Browse the repository at this point in the history
…ootprint)
  • Loading branch information
krassowski committed Jan 10, 2018
1 parent 26f7662 commit 80435e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions website/imports/sites/psp.py
Expand Up @@ -187,6 +187,7 @@ def load_kinases(self, kinases_path='Kinase_Substrate_Dataset.gz'):

kinases = read_table(path, converters={'SITE_+/-7_AA': str.upper}, skiprows=3)
kinases = kinases.query('KIN_ORGANISM == "human" and SUB_ORGANISM == "human"')
kinases = kinases[['SUB_ACC_ID', 'SITE_+/-7_AA', 'KINASE']]

kinases = kinases.groupby(['SUB_ACC_ID', 'SITE_+/-7_AA'], sort=False, squeeze=True)

Expand Down

0 comments on commit 80435e7

Please sign in to comment.