Skip to content

Commit e5cf358

Browse files
committed
updated with synapse login fix
1 parent 64ca580 commit e5cf358

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

build/docker/Dockerfile.pancpdo

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ ENV MPLCONFIGDIR=/app/tmp/matplotlib
1919
RUN mkdir -p /app/tmp/matplotlib
2020

2121
RUN pip install --no-cache-dir -r requirements.txt
22+
2223
VOLUME ['/tmp']

build/pancpdo/02a-getPancPDODataFromSynapse.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,12 @@ def main():
9999
samps = pd.read_csv(args.samples)
100100
genes = pd.read_csv(args.genes)
101101

102-
sc = synapseclient.login(args.token)
102+
print("Logging into synapse")
103+
sc = synapseclient.Synapse()
104+
sc.login(authToken=args.token)
105+
103106
##to double check identifiers, we use transcriptomics data since that determines what samples were sequenced
107+
#update this step isn't needed anymore
104108
trans = pd.read_csv('/tmp/pancpdo_transcriptomics.csv.gz')
105109
tsamps = samps[samps.improve_sample_id.isin(trans.improve_sample_id)]
106110
print(samps.shape)
@@ -162,6 +166,6 @@ def main():
162166
alldats.append(res)
163167
newmut = pd.concat(alldats)
164168
newmut.to_csv("/tmp/pancpdo_mutations.csv.gz",compression='gzip',index=False)
165-
pd.DataFrame(missingsamples).to_csv('missing.csv',index=False,quoting=None,header=False)
169+
#pd.DataFrame(missingsamples).to_csv('missing.csv',index=False,quoting=None,header=False)
166170
if __name__=='__main__':
167171
main()

0 commit comments

Comments
 (0)