Skip to content

Commit ed8c71e

Browse files
authored
Merge pull request #176 from PNNL-CompBio/copy-fix
added fix for copy number
2 parents 95d55f5 + 2bdb911 commit ed8c71e

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

build/broad_sanger/02-broadSangerOmics.R

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,15 @@ sanger_files<-function(fi,value){
105105
rm(exp_file)
106106

107107
print('copy call')
108+
109+
##rename SANGER value
110+
# Amplification -> amp
111+
# Deletion -> deep del
112+
# Loss -> het loss
113+
# Gain -> gain
114+
# Neutral -> diploid
115+
#
116+
res$Sanger=sapply(res$Sanger,function(x) ifelse(x=='Amplification','amp',ifelse(x=='Deletion','deep del',ifelse(x=='Loss','het loss',ifelse(x=='Gain','gain','diploid')))))
108117
##calibrate the copy call
109118
res<-res|> ##deep del < 0.5210507 < het loss < 0.7311832 < diploid < 1.214125 < gain < 1.422233 < amp
110119
dplyr::mutate(IMPROVE=ifelse(copy_number<0.5210507,'deep del',

build/build_all.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def main():
103103

104104
if not os.path.exists('local/'+da+'_drugs.tsv'):
105105
run_cmd([di,'sh','build_drugs.sh',','.join(dflist)],da+' drugs')
106-
dflist = dflist.append('/tmp/'+da+'_drugs.tsv')
106+
dflist.append('/tmp/'+da+'_drugs.tsv')
107107

108108
#### Any new omics files are created here.
109109
## depends on samples!
@@ -127,7 +127,7 @@ def main():
127127
else:
128128
di = da
129129
if not os.path.exists('local/'+da+'_experiments.tsv'):
130-
run_cmd([di,'sh','build_exp.sh','/tmp/'+df+'_samples.csv','/tmp/'+da+'_drugs.tsv'],da+' experiments')
130+
run_cmd([di,'sh','build_exp.sh','/tmp/'+da+'_samples.csv','/tmp/'+da+'_drugs.tsv'],da+' experiments')
131131

132132

133133

0 commit comments

Comments
 (0)