Skip to content

Commit 413ef9a

Browse files
authored
Prepare release 1.6.0
Release 1.6.0
2 parents 9f554d7 + 46b13be commit 413ef9a

File tree

19 files changed

+57
-164
lines changed

19 files changed

+57
-164
lines changed

Diff for: drop-boxes/register-wf-16staxonomicprofiling/register-16staxonomic-dropbox.py

+2-8
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,12 @@ def process(transaction):
5656
space = nameSplit[0]
5757
project = pPattern.findall(nameSplit[1])[0]
5858
experiment_id = ePattern.findall(nameSplit[2])[0]
59-
#sample_id = experiment_id+'.'
6059
sampleCode = nameSplit[-1]
60+
sample_id = "/"+space+"/"+sampleCode
6161
if not experiment_id:
6262
print "The identifier matching the pattern Q\w{4}E\[0-9]+ was not found in the fileName "+name
6363

64-
ss = transaction.getSearchService()
65-
66-
sc = SearchCriteria()
67-
sc.addMatchClause(SearchCriteria.MatchClause.createAttributeMatch(SearchCriteria.MatchClauseAttribute.CODE, sampleCode))
68-
foundSamples = ss.searchForSamples(sc)
69-
samplehit = foundSamples[0]
70-
sample = transaction.getSampleForUpdate(samplehit.getSampleIdentifier())
64+
sample = transaction.getSampleForUpdate(sample_id)
7165

7266
experiment = transaction.getExperimentForUpdate("/"+space+"/"+project+"/"+experiment_id)
7367
experiment.setPropertyValue("Q_WF_STATUS", "FINISHED")

Diff for: drop-boxes/register-wf-epitopeprediction/register-epitopeprediction.py

+5-9
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,14 @@ def process(transaction):
3434
project = pPattern.findall(nameSplit[1])[0]
3535
experiment_id = ePattern.findall(nameSplit[2])[0]
3636
sampleCode = nameSplit[-1]
37+
sample_id = "/"+space+"/"+sampleCode
38+
3739
if not experiment_id:
3840
print "The identifier matching the pattern Q\w{4}E\[0-9]+ was not found in the fileName "+name
3941

40-
ss = transaction.getSearchService()
41-
42-
sc = SearchCriteria()
43-
sc.addMatchClause(SearchCriteria.MatchClause.createAttributeMatch(SearchCriteria.MatchClauseAttribute.CODE, sampleCode))
44-
foundSamples = ss.searchForSamples(sc)
45-
samplehit = foundSamples[0]
46-
sample = transaction.getSampleForUpdate(samplehit.getSampleIdentifier())
47-
48-
parents = samplehit.getParentSampleIdentifiers()
42+
sample = transaction.getSampleForUpdate(sample_id)
43+
44+
parents = sample.getParentSampleIdentifiers()
4945
parentcodes = []
5046
for parent in parents:
5147
parentcodes.append(parent.split("/")[-1])

Diff for: drop-boxes/register-wf-hlatyping/register-hlatyping.py

+3-8
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,13 @@ def process(transaction):
5757
project = pPattern.findall(name)[0]
5858
experiment_id = ePattern.findall(name)[0]
5959
sampleCode = nameSplit[-1]
60+
sample_id = "/"+space+"/"+sampleCode
6061
if not experiment_id:
6162
print "The identifier matching the pattern Q\w{4}E\[0-9]+ was not found in the fileName "+name
6263

63-
ss = transaction.getSearchService()
64+
sample = transaction.getSampleForUpdate(sample_id)
6465

65-
sc = SearchCriteria()
66-
sc.addMatchClause(SearchCriteria.MatchClause.createAttributeMatch(SearchCriteria.MatchClauseAttribute.CODE, sampleCode))
67-
foundSamples = ss.searchForSamples(sc)
68-
samplehit = foundSamples[0]
69-
sample = transaction.getSampleForUpdate(samplehit.getSampleIdentifier())
70-
71-
parents = samplehit.getParentSampleIdentifiers()
66+
parents = sample.getParentSampleIdentifiers()
7267
parentcodes = []
7368
for parent in parents:
7469
parentcodes.append(parent.split("/")[-1])

Diff for: drop-boxes/register-wf-individualizedproteome/register-individualizedproteome-dropbox.py

+4-10
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,14 @@ def process(transaction):
4141
space = nameSplit[0]
4242
project = pPattern.findall(nameSplit[1])[0]
4343
experiment_id = ePattern.findall(nameSplit[2])[0]
44-
#sample_id = experiment_id+'.'
4544
sampleCode = nameSplit[-1]
45+
sample_id = "/"+space+"/"+sampleCode
46+
4647
if not experiment_id:
4748
print "The identifier matching the pattern Q\w{4}E\[0-9]+ was not found in the fileName "+name
4849

49-
ss = transaction.getSearchService()
50-
51-
sc = SearchCriteria()
52-
sc.addMatchClause(SearchCriteria.MatchClause.createAttributeMatch(SearchCriteria.MatchClauseAttribute.CODE, sampleCode))
53-
foundSamples = ss.searchForSamples(sc)
54-
samplehit = foundSamples[0]
55-
sample = transaction.getSampleForUpdate(samplehit.getSampleIdentifier())
56-
57-
parents = samplehit.getParentSampleIdentifiers()
50+
sample = transaction.getSampleForUpdate(sample_id)
51+
parents = sample.getParentSampleIdentifiers()
5852
parentcodes = []
5953
for parent in parents:
6054
parentcodes.append(parent.split("/")[-1])

Diff for: drop-boxes/register-wf-ligandomicsid/register-ligandomicsid-dropbox.py

+2-9
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,12 @@ def process(transaction):
4141
space = nameSplit[0]
4242
project = pPattern.findall(nameSplit[1])[0]
4343
experiment_id = ePattern.findall(nameSplit[2])[0]
44-
#sample_id = experiment_id+'.'
4544
sampleCode = nameSplit[-1]
45+
sample_id = "/" + space + "/" + sampleCode
4646
if not experiment_id:
4747
print "The identifier matching the pattern Q\w{4}E\[0-9]+ was not found in the fileName "+name
4848

49-
ss = transaction.getSearchService()
50-
51-
sc = SearchCriteria()
52-
sc.addMatchClause(SearchCriteria.MatchClause.createAttributeMatch(SearchCriteria.MatchClauseAttribute.CODE, sampleCode))
53-
foundSamples = ss.searchForSamples(sc)
54-
samplehit = foundSamples[0]
55-
sample = transaction.getSampleForUpdate(samplehit.getSampleIdentifier())
56-
49+
sample = transaction.getSampleForUpdate(sample_id)
5750
experiment = transaction.getExperimentForUpdate("/"+space+"/"+project+"/"+experiment_id)
5851
experiment.setPropertyValue("Q_WF_STATUS", "FINISHED")
5952

Diff for: drop-boxes/register-wf-ligandomicsqc/register-ligandomicsqc-dropbox.py

+2-8
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,12 @@ def process(transaction):
4141
space = nameSplit[0]
4242
project = pPattern.findall(nameSplit[1])[0]
4343
experiment_id = ePattern.findall(nameSplit[2])[0]
44-
#sample_id = experiment_id+'.'
4544
sampleCode = nameSplit[-1]
45+
sample_id = "/"+space+"/"+sampleCode
4646
if not experiment_id:
4747
print "The identifier matching the pattern Q\w{4}E\[0-9]+ was not found in the fileName "+name
4848

49-
ss = transaction.getSearchService()
50-
51-
sc = SearchCriteria()
52-
sc.addMatchClause(SearchCriteria.MatchClause.createAttributeMatch(SearchCriteria.MatchClauseAttribute.CODE, sampleCode))
53-
foundSamples = ss.searchForSamples(sc)
54-
samplehit = foundSamples[0]
55-
sample = transaction.getSampleForUpdate(samplehit.getSampleIdentifier())
49+
sample = transaction.getSampleForUpdate(sample_id)
5650

5751
experiment = transaction.getExperimentForUpdate("/"+space+"/"+project+"/"+experiment_id)
5852
experiment.setPropertyValue("Q_WF_STATUS", "FINISHED")

Diff for: drop-boxes/register-wf-mapping/register-mapping-dropbox.py

+3-9
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,16 @@ def process(transaction):
4141
space = nameSplit[0]
4242
project = pPattern.findall(nameSplit[1])[0]
4343
experiment_id = ePattern.findall(nameSplit[2])[0]
44-
#sample_id = experiment_id+'.'
4544
sampleCode = nameSplit[-1]
45+
sample_id = "/"+space+"/"+sampleCode
4646
if not experiment_id:
4747
print "The identifier matching the pattern Q\w{4}E\[0-9]+ was not found in the fileName "+name
4848

49-
ss = transaction.getSearchService()
50-
51-
sc = SearchCriteria()
52-
sc.addMatchClause(SearchCriteria.MatchClause.createAttributeMatch(SearchCriteria.MatchClauseAttribute.CODE, sampleCode))
53-
foundSamples = ss.searchForSamples(sc)
54-
samplehit = foundSamples[0]
55-
sample = transaction.getSampleForUpdate(samplehit.getSampleIdentifier())
49+
sample = transaction.getSampleForUpdate(sample_id)
5650

5751
additionalInfo = sample.getPropertyValue("Q_ADDITIONAL_INFO")
5852

59-
parents = samplehit.getParentSampleIdentifiers()
53+
parents = sample.getParentSampleIdentifiers()
6054
parentcodes = []
6155
for parent in parents:
6256
parentcodes.append(parent.split("/")[-1])

Diff for: drop-boxes/register-wf-maqc/register-wf-maqc.py

+3-9
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,14 @@ def process(transaction):
4141
space = nameSplit[0]
4242
project = pPattern.findall(nameSplit[1])[0]
4343
experiment_id = ePattern.findall(nameSplit[2])[0]
44-
#sample_id = experiment_id+'.'
4544
sampleCode = nameSplit[-1]
45+
sample_id = "/"+space+"/"+sampleCode
4646
if not experiment_id:
4747
print "The identifier matching the pattern Q\w{4}E\[0-9]+ was not found in the fileName "+name
4848

49-
ss = transaction.getSearchService()
49+
sample = transaction.getSampleForUpdate(sample_id)
5050

51-
sc = SearchCriteria()
52-
sc.addMatchClause(SearchCriteria.MatchClause.createAttributeMatch(SearchCriteria.MatchClauseAttribute.CODE, sampleCode))
53-
foundSamples = ss.searchForSamples(sc)
54-
samplehit = foundSamples[0]
55-
sample = transaction.getSampleForUpdate(samplehit.getSampleIdentifier())
56-
57-
parents = samplehit.getParentSampleIdentifiers()
51+
parents = sample.getParentSampleIdentifiers()
5852
if len(parents) > 6:
5953
first = parents[0].split("/")[-1]
6054
parentInfos = first+"_and_"+str(len(parents)-1)+"others"

Diff for: drop-boxes/register-wf-maxquant/register-maxquant-dropbox.py

+3-9
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,14 @@ def process(transaction):
4141
space = nameSplit[0]
4242
project = pPattern.findall(nameSplit[1])[0]
4343
experiment_id = ePattern.findall(nameSplit[2])[0]
44-
#sample_id = experiment_id+'.'
4544
sampleCode = nameSplit[-1]
45+
sample_id = "/"+space+"/"+sampleCode
4646
if not experiment_id:
4747
print "The identifier matching the pattern Q\w{4}E\[0-9]+ was not found in the fileName "+name
4848

49-
ss = transaction.getSearchService()
49+
sample = transaction.getSampleForUpdate(sample_id)
5050

51-
sc = SearchCriteria()
52-
sc.addMatchClause(SearchCriteria.MatchClause.createAttributeMatch(SearchCriteria.MatchClauseAttribute.CODE, sampleCode))
53-
foundSamples = ss.searchForSamples(sc)
54-
samplehit = foundSamples[0]
55-
sample = transaction.getSampleForUpdate(samplehit.getSampleIdentifier())
56-
57-
parents = samplehit.getParentSampleIdentifiers()
51+
parents = sample.getParentSampleIdentifiers()
5852
parentcodes = []
5953
for parent in parents:
6054
parentcodes.append(parent.split("/")[-1])

Diff for: drop-boxes/register-wf-mergenngsdata/register-mergengsdata.py

+3-8
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,13 @@ def process(transaction):
3434
project = pPattern.findall(nameSplit[1])[0]
3535
experiment_id = ePattern.findall(nameSplit[2])[0]
3636
sampleCode = nameSplit[-1]
37+
sample_id = "/"+space+"/"+sampleCode
3738
if not experiment_id:
3839
print "The identifier matching the pattern Q\w{4}E\[0-9]+ was not found in the fileName "+name
3940

40-
ss = transaction.getSearchService()
41+
sample = transaction.getSampleForUpdate(sample_id)
4142

42-
sc = SearchCriteria()
43-
sc.addMatchClause(SearchCriteria.MatchClause.createAttributeMatch(SearchCriteria.MatchClauseAttribute.CODE, sampleCode))
44-
foundSamples = ss.searchForSamples(sc)
45-
samplehit = foundSamples[0]
46-
sample = transaction.getSampleForUpdate(samplehit.getSampleIdentifier())
47-
48-
parents = samplehit.getParentSampleIdentifiers()
43+
parents = sample.getParentSampleIdentifiers()
4944
parentcodes = []
5045
for parent in parents:
5146
parentcodes.append(parent.split("/")[-1])

Diff for: drop-boxes/register-wf-msqc/register-wf-msqc.py

+3-9
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,14 @@ def process(transaction):
4141
space = nameSplit[0]
4242
project = pPattern.findall(nameSplit[1])[0]
4343
experiment_id = ePattern.findall(nameSplit[2])[0]
44-
#sample_id = experiment_id+'.'
4544
sampleCode = nameSplit[-1]
45+
sample_id = "/"+space+"/"+sampleCode
4646
if not experiment_id:
4747
print "The identifier matching the pattern Q\w{4}E\[0-9]+ was not found in the fileName "+name
4848

49-
ss = transaction.getSearchService()
49+
sample = transaction.getSampleForUpdate(sample_id)
5050

51-
sc = SearchCriteria()
52-
sc.addMatchClause(SearchCriteria.MatchClause.createAttributeMatch(SearchCriteria.MatchClauseAttribute.CODE, sampleCode))
53-
foundSamples = ss.searchForSamples(sc)
54-
samplehit = foundSamples[0]
55-
sample = transaction.getSampleForUpdate(samplehit.getSampleIdentifier())
56-
57-
parents = samplehit.getParentSampleIdentifiers()
51+
parents = sample.getParentSampleIdentifiers()
5852
parentcodes = []
5953
for parent in parents:
6054
parentcodes.append(parent.split("/")[-1])

Diff for: drop-boxes/register-wf-ngsqc/register-wf-ngsqc.py

+2-8
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,12 @@ def process(transaction):
4141
space = nameSplit[0]
4242
project = pPattern.findall(nameSplit[1])[0]
4343
experiment_id = ePattern.findall(nameSplit[2])[0]
44-
#sample_id = experiment_id+'.'
4544
sampleCode = nameSplit[-1]
45+
sample_id = "/"+space+"/"+sampleCode
4646
if not experiment_id:
4747
print "The identifier matching the pattern Q\w{4}E\[0-9]+ was not found in the fileName "+name
4848

49-
ss = transaction.getSearchService()
50-
51-
sc = SearchCriteria()
52-
sc.addMatchClause(SearchCriteria.MatchClause.createAttributeMatch(SearchCriteria.MatchClauseAttribute.CODE, sampleCode))
53-
foundSamples = ss.searchForSamples(sc)
54-
samplehit = foundSamples[0]
55-
sample = transaction.getSampleForUpdate(samplehit.getSampleIdentifier())
49+
sample = transaction.getSampleForUpdate(sample_id)
5650

5751
experiment = transaction.getExperimentForUpdate("/"+space+"/"+project+"/"+experiment_id)
5852

Diff for: drop-boxes/register-wf-peakpicking/script.py

+4-8
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,12 @@ def process(transaction):
5454

5555
#Register logs
5656
wfSampleCode = nameSplit[-1]
57+
58+
sample_id = "/"+space+"/"+wfSampleCode
5759
if not experiment_id:
5860
print "The identifier matching the pattern Q\w{4}E\[0-9]+ was not found in the fileName "+name
5961

60-
ss = transaction.getSearchService()
61-
62-
sc = SearchCriteria()
63-
sc.addMatchClause(SearchCriteria.MatchClause.createAttributeMatch(SearchCriteria.MatchClauseAttribute.CODE, wfSampleCode))
64-
foundSamples = ss.searchForSamples(sc)
65-
samplehit = foundSamples[0]
66-
wfSample = transaction.getSampleForUpdate(samplehit.getSampleIdentifier())
62+
wfSample = transaction.getSampleForUpdate(sample_id)
6763

6864
experiment = transaction.getExperimentForUpdate("/"+space+"/"+project+"/"+experiment_id)
6965

@@ -95,4 +91,4 @@ def process(transaction):
9591
sa = transaction.getSampleForUpdate(sampleID)
9692
dataSetRes = transaction.createNewDataSet('Q_MS_MZML_DATA')
9793
dataSetRes.setSample(sa)
98-
transaction.moveFile(mzmlPath, dataSetRes)
94+
transaction.moveFile(mzmlPath, dataSetRes)

Diff for: drop-boxes/register-wf-peptideid/register-wf-peptideid.py

+3-11
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,14 @@ def process(transaction):
4141
space = nameSplit[0]
4242
project = pPattern.findall(nameSplit[1])[0]
4343
experiment_id = ePattern.findall(nameSplit[2])[0]
44-
#sample_id = experiment_id+'.'
4544
sampleCode = nameSplit[-1]
45+
sample_id = "/"+space+"/"+sampleCode
4646
if not experiment_id:
4747
print "The identifier matching the pattern Q\w{4}E\[0-9]+ was not found in the fileName "+name
4848

49-
ss = transaction.getSearchService()
49+
sample = transaction.getSampleForUpdate(sample_id)
5050

51-
sc = SearchCriteria()
52-
#sc.addMatchClause(SearchCriteria.MatchClause.createAttributeMatch(SearchCriteria.MatchClauseAttribute.TYPE, "Q_WF_MS_PEPTIDEID_RUN"))
53-
sc.addMatchClause(SearchCriteria.MatchClause.createAttributeMatch(SearchCriteria.MatchClauseAttribute.CODE, sampleCode))
54-
foundSamples = ss.searchForSamples(sc)
55-
#sample = transaction.createNewSample("/"+space+"/"+sample_id + str(len(foundSamples)+1), "Q_WF_MS_PEPTIDEID_RUN")
56-
samplehit = foundSamples[0]
57-
sample = transaction.getSampleForUpdate(samplehit.getSampleIdentifier())
58-
59-
parents = samplehit.getParentSampleIdentifiers()
51+
parents = sample.getParentSampleIdentifiers()
6052
parentcodes = []
6153
for parent in parents:
6254
parentcodes.append(parent.split("/")[-1])

Diff for: drop-boxes/register-wf-qedda/register-qedda.py

+2-7
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,11 @@ def process(transaction):
3434
project = pPattern.findall(nameSplit[1])[0]
3535
experiment_id = ePattern.findall(nameSplit[2])[0]
3636
sampleCode = nameSplit[-1]
37+
sample_id = "/"+space+"/"+sampleCode
3738
if not experiment_id:
3839
print "The identifier matching the pattern Q\w{4}E\[0-9]+ was not found in the fileName "+name
3940

40-
ss = transaction.getSearchService()
41-
42-
sc = SearchCriteria()
43-
sc.addMatchClause(SearchCriteria.MatchClause.createAttributeMatch(SearchCriteria.MatchClauseAttribute.CODE, sampleCode))
44-
foundSamples = ss.searchForSamples(sc)
45-
sample = foundSamples[0]
46-
sample = transaction.getSampleForUpdate(sample.getSampleIdentifier())
41+
sample = transaction.getSampleForUpdate(sample_id)
4742

4843
experiment = transaction.getExperimentForUpdate("/"+space+"/"+project+"/"+experiment_id)
4944

Diff for: drop-boxes/register-wf-rnaexpressionanalysis/register-wf-rnaexpranalysis.py

+3-8
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,13 @@ def process(transaction):
4242
project = pPattern.findall(nameSplit[1])[0]
4343
experiment_id = ePattern.findall(nameSplit[2])[0]
4444
sampleCode = nameSplit[-1]
45+
sample_id = "/"+space+"/"+sampleCode
4546
if not experiment_id:
4647
print "The identifier matching the pattern Q\w{4}E\[0-9]+ was not found in the fileName "+name
4748

48-
ss = transaction.getSearchService()
49+
sample = transaction.getSampleForUpdate(sample_id)
4950

50-
sc = SearchCriteria()
51-
sc.addMatchClause(SearchCriteria.MatchClause.createAttributeMatch(SearchCriteria.MatchClauseAttribute.CODE, sampleCode))
52-
foundSamples = ss.searchForSamples(sc)
53-
samplehit = foundSamples[0]
54-
sample = transaction.getSampleForUpdate(samplehit.getSampleIdentifier())
55-
56-
parents = samplehit.getParentSampleIdentifiers()
51+
parents = sample.getParentSampleIdentifiers()
5752
parentcodes = []
5853
for parent in parents:
5954
parentcodes.append(parent.split("/")[-1])

Diff for: drop-boxes/register-wf-shrna/register-shrna-dropbox.py

+3-9
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,14 @@ def process(transaction):
4141
space = nameSplit[0]
4242
project = pPattern.findall(nameSplit[1])[0]
4343
experiment_id = ePattern.findall(nameSplit[2])[0]
44-
#sample_id = experiment_id+'.'
4544
sampleCode = nameSplit[-1]
45+
sample_id = "/"+space+"/"+sampleCode
4646
if not experiment_id:
4747
print "The identifier matching the pattern Q\w{4}E\[0-9]+ was not found in the fileName "+name
4848

49-
ss = transaction.getSearchService()
49+
sample = transaction.getSampleForUpdate(sample_id)
5050

51-
sc = SearchCriteria()
52-
sc.addMatchClause(SearchCriteria.MatchClause.createAttributeMatch(SearchCriteria.MatchClauseAttribute.CODE, sampleCode))
53-
foundSamples = ss.searchForSamples(sc)
54-
samplehit = foundSamples[0]
55-
sample = transaction.getSampleForUpdate(samplehit.getSampleIdentifier())
56-
57-
parents = samplehit.getParentSampleIdentifiers()
51+
parents = sample.getParentSampleIdentifiers()
5852
parentcodes = []
5953
for parent in parents:
6054
parentcodes.append(parent.split("/")[-1])

0 commit comments

Comments
 (0)