Skip to content

Commit 458989a

Browse files
fixed filename issue
1 parent 7b34df0 commit 458989a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

build/novartispdx/02-omics-novartispdx.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ def map_transcriptomics_novPDX(transcriptomics_data, improve_id_data, entrez_dat
167167
entrez_data = pd.read_csv(entrez_data)
168168

169169
# melt dataframe so that there is gene name and improve_sample_id per row
170-
rnaseq_df = rnaseq_df.rename(columns={'Sample':'stable_id'})
171-
rnaseq_df.to_csv("/tmp/counts_for_tpm_conversion.tsv", sep='\t')
170+
transcriptomics_data = transcriptomics_data.rename(columns={'Sample':'stable_id'})
171+
transcriptomics_data.to_csv("/tmp/counts_for_tpm_conversion.tsv", sep='\t')
172172

173173
# run tpmFromCounts.py to convert counts to tpm
174174
os.system("python3 tpmFromCounts.py --counts /tmp/counts_for_tpm_conversion.tsv --genome_build https://ftp.ncbi.nlm.nih.gov/genomes/all/GCF/000/001/405/GCF_000001405.13_GRCh37/GCF_000001405.13_GRCh37_genomic.gtf.gz --gene_col stable_id --exclude_col stable_id --out_file /tmp/transcriptomics_tpm.tsv")

0 commit comments

Comments
 (0)