Skip to content

Commit cfc60f0

Browse files
authored
Update 6_Metastatic_gene_expression.py
1 parent 40de363 commit cfc60f0

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

pages/6_Metastatic_gene_expression.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ def create_footer():
7070
plot_options = ['Boxplot','Violin plot','Dot plot']
7171
gene = st.text_input('Enter gene symbol').upper().strip(' ')
7272
# Open files to identify location of the genes
73-
experimental_pm_file = open('../../Data/Raw/HPA_evidence_pm.csv','r')
73+
experimental_pm_file = open('Data/HPA_evidence_pm.csv','r')
7474
for line in experimental_pm_file:
7575
experimental_pm_genes = line.split(',')
76-
no_membrane = open('../../Data/Processed/no_membrane_genes.csv','r')
76+
no_membrane = open('Data/no_membrane_genes.csv','r')
7777
for line in no_membrane:
7878
no_membrane_genes = line.split(',')
7979
# Identify if indicated gene is present in the data
80-
data = pd.read_csv('../../Data/Processed/log2FC_expression_all_genes.csv')
80+
data = pd.read_csv('Data/log2FC_expression_all_genes.csv')
8181
if gene == '':
8282
st.error('Introduce gene symbol. You can try FGFR1')
8383
if 'MORF' not in gene:
@@ -200,7 +200,7 @@ def plot_significance(tumor,y,bottom,top,K_pvalue):
200200
if st.button(f'Create {plot}'):
201201
if gene != '' and gene in data['gene'].values:
202202
# Identify GTEx tissue sample corresponding to control group of tumor
203-
with open('../../Data/Processed/SKCM_all_genes.pkl', 'rb') as archivo:
203+
with open('Data/SKCM_all_genes.pkl', 'rb') as archivo:
204204
SKCM = pickle.load(archivo)
205205
# Get requested information
206206
groups = [] # Gruops of tumor (Metastatic, Primary or Control)
@@ -260,3 +260,4 @@ def plot_significance(tumor,y,bottom,top,K_pvalue):
260260
st.error('No gene symbol was introduced')
261261

262262
create_footer()
263+

0 commit comments

Comments
 (0)