Skip to content

Commit f31a8a3

Browse files
fixing issues
1 parent dd23d91 commit f31a8a3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

build/novartispdx/02-omics-novartispdx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def map_copy_number_novPDX(copy_number_data, improve_id_data, entrez_data):
113113
long_cn_df = pd.melt(copy_number_data, id_vars=['Sample'], value_vars=copy_number_data.columns[copy_number_data.columns != 'Sample'])
114114

115115
# get entrez id's from Sample
116-
entrez_cn_df = pd.merge(long_cn_df, entrez_data[['other_id','entrez_id']].drop_duplicates(), how = 'left', left_on= "Sample", right_on= "other_id")
116+
entrez_cn_df = pd.merge(long_cn_df, entrez_data[['other_id','entrez_id']].drop_duplicates(), how = 'inner', left_on= "Sample", right_on= "other_id")
117117

118118
# get copy call from value column (aka copy number)
119119
entrez_cn_df['copy_call'] = [get_copy_call(a) for a in entrez_cn_df['value']]

build/novartispdx/03-drugs-novartispdx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import argparse
55
import os
66
# for testing locally
7-
from utils.pubchem_retrieval import update_dataframe_and_write_tsv
7+
from pubchem_retrieval import update_dataframe_and_write_tsv
88
# for building in docker
99
#from pubchem_retrieval import update_dataframe_and_write_tsv
1010

build/novartispdx/build_drugs.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ trap 'echo "Error on or near line $LINENO while executing: $BASH_COMMAND"; exit
55

66
echo "Running script with token and drugFile $1"
77
# for running locally (from build directory):
8-
python3 -m 03-drugs-novartispdx --token $SYNAPSE_AUTH_TOKEN -d $1 -o /tmp/novartispdx_drugs.tsv
8+
python3 03-drugs-novartispdx.py --token $SYNAPSE_AUTH_TOKEN -d $1 -o /tmp/novartispdx_drugs.tsv
99
#python3 novar
1010
#python3 03-drugs-novartispdx.py --token $SYNAPSE_AUTH_TOKEN -d $1 -o /tmp/novartispdx_drugs.tsv
1111

1212
echo "Running build_drug_desc.py..."
1313
#for running locally:
14-
python3 utils/build_drug_desc.py --drugtable /tmp/novartispdx_drugs.tsv --desctable /tmp/novartispdx_drug_descriptors.tsv.gz
14+
python3 build_drug_desc.py --drugtable /tmp/novartispdx_drugs.tsv --desctable /tmp/novartispdx_drug_descriptors.tsv.gz
1515
#python3 build_drug_desc.py --drugtable /tmp/novartispdx_drugs.tsv --desctable /tmp/novartispdx_drug_descriptors.tsv.gz

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy