File tree 19 files changed +57
-164
lines changed
register-wf-16staxonomicprofiling
register-wf-epitopeprediction
register-wf-individualizedproteome
register-wf-ligandomicsid
register-wf-ligandomicsqc
register-wf-mergenngsdata
register-wf-rnaexpressionanalysis
register-wf-variantannotation
register-wf-variantcalling
19 files changed +57
-164
lines changed Original file line number Diff line number Diff line change @@ -56,18 +56,12 @@ def process(transaction):
56
56
space = nameSplit [0 ]
57
57
project = pPattern .findall (nameSplit [1 ])[0 ]
58
58
experiment_id = ePattern .findall (nameSplit [2 ])[0 ]
59
- #sample_id = experiment_id+'.'
60
59
sampleCode = nameSplit [- 1 ]
60
+ sample_id = "/" + space + "/" + sampleCode
61
61
if not experiment_id :
62
62
print "The identifier matching the pattern Q\w{4}E\[0-9]+ was not found in the fileName " + name
63
63
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 )
71
65
72
66
experiment = transaction .getExperimentForUpdate ("/" + space + "/" + project + "/" + experiment_id )
73
67
experiment .setPropertyValue ("Q_WF_STATUS" , "FINISHED" )
Original file line number Diff line number Diff line change @@ -34,18 +34,14 @@ def process(transaction):
34
34
project = pPattern .findall (nameSplit [1 ])[0 ]
35
35
experiment_id = ePattern .findall (nameSplit [2 ])[0 ]
36
36
sampleCode = nameSplit [- 1 ]
37
+ sample_id = "/" + space + "/" + sampleCode
38
+
37
39
if not experiment_id :
38
40
print "The identifier matching the pattern Q\w{4}E\[0-9]+ was not found in the fileName " + name
39
41
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 ()
49
45
parentcodes = []
50
46
for parent in parents :
51
47
parentcodes .append (parent .split ("/" )[- 1 ])
Original file line number Diff line number Diff line change @@ -57,18 +57,13 @@ def process(transaction):
57
57
project = pPattern .findall (name )[0 ]
58
58
experiment_id = ePattern .findall (name )[0 ]
59
59
sampleCode = nameSplit [- 1 ]
60
+ sample_id = "/" + space + "/" + sampleCode
60
61
if not experiment_id :
61
62
print "The identifier matching the pattern Q\w{4}E\[0-9]+ was not found in the fileName " + name
62
63
63
- ss = transaction .getSearchService ( )
64
+ sample = transaction .getSampleForUpdate ( sample_id )
64
65
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 ()
72
67
parentcodes = []
73
68
for parent in parents :
74
69
parentcodes .append (parent .split ("/" )[- 1 ])
Original file line number Diff line number Diff line change @@ -41,20 +41,14 @@ def process(transaction):
41
41
space = nameSplit [0 ]
42
42
project = pPattern .findall (nameSplit [1 ])[0 ]
43
43
experiment_id = ePattern .findall (nameSplit [2 ])[0 ]
44
- #sample_id = experiment_id+'.'
45
44
sampleCode = nameSplit [- 1 ]
45
+ sample_id = "/" + space + "/" + sampleCode
46
+
46
47
if not experiment_id :
47
48
print "The identifier matching the pattern Q\w{4}E\[0-9]+ was not found in the fileName " + name
48
49
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 ()
58
52
parentcodes = []
59
53
for parent in parents :
60
54
parentcodes .append (parent .split ("/" )[- 1 ])
Original file line number Diff line number Diff line change @@ -41,19 +41,12 @@ def process(transaction):
41
41
space = nameSplit [0 ]
42
42
project = pPattern .findall (nameSplit [1 ])[0 ]
43
43
experiment_id = ePattern .findall (nameSplit [2 ])[0 ]
44
- #sample_id = experiment_id+'.'
45
44
sampleCode = nameSplit [- 1 ]
45
+ sample_id = "/" + space + "/" + sampleCode
46
46
if not experiment_id :
47
47
print "The identifier matching the pattern Q\w{4}E\[0-9]+ was not found in the fileName " + name
48
48
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 )
57
50
experiment = transaction .getExperimentForUpdate ("/" + space + "/" + project + "/" + experiment_id )
58
51
experiment .setPropertyValue ("Q_WF_STATUS" , "FINISHED" )
59
52
Original file line number Diff line number Diff line change @@ -41,18 +41,12 @@ def process(transaction):
41
41
space = nameSplit [0 ]
42
42
project = pPattern .findall (nameSplit [1 ])[0 ]
43
43
experiment_id = ePattern .findall (nameSplit [2 ])[0 ]
44
- #sample_id = experiment_id+'.'
45
44
sampleCode = nameSplit [- 1 ]
45
+ sample_id = "/" + space + "/" + sampleCode
46
46
if not experiment_id :
47
47
print "The identifier matching the pattern Q\w{4}E\[0-9]+ was not found in the fileName " + name
48
48
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 )
56
50
57
51
experiment = transaction .getExperimentForUpdate ("/" + space + "/" + project + "/" + experiment_id )
58
52
experiment .setPropertyValue ("Q_WF_STATUS" , "FINISHED" )
Original file line number Diff line number Diff line change @@ -41,22 +41,16 @@ def process(transaction):
41
41
space = nameSplit [0 ]
42
42
project = pPattern .findall (nameSplit [1 ])[0 ]
43
43
experiment_id = ePattern .findall (nameSplit [2 ])[0 ]
44
- #sample_id = experiment_id+'.'
45
44
sampleCode = nameSplit [- 1 ]
45
+ sample_id = "/" + space + "/" + sampleCode
46
46
if not experiment_id :
47
47
print "The identifier matching the pattern Q\w{4}E\[0-9]+ was not found in the fileName " + name
48
48
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 )
56
50
57
51
additionalInfo = sample .getPropertyValue ("Q_ADDITIONAL_INFO" )
58
52
59
- parents = samplehit .getParentSampleIdentifiers ()
53
+ parents = sample .getParentSampleIdentifiers ()
60
54
parentcodes = []
61
55
for parent in parents :
62
56
parentcodes .append (parent .split ("/" )[- 1 ])
Original file line number Diff line number Diff line change @@ -41,20 +41,14 @@ def process(transaction):
41
41
space = nameSplit [0 ]
42
42
project = pPattern .findall (nameSplit [1 ])[0 ]
43
43
experiment_id = ePattern .findall (nameSplit [2 ])[0 ]
44
- #sample_id = experiment_id+'.'
45
44
sampleCode = nameSplit [- 1 ]
45
+ sample_id = "/" + space + "/" + sampleCode
46
46
if not experiment_id :
47
47
print "The identifier matching the pattern Q\w{4}E\[0-9]+ was not found in the fileName " + name
48
48
49
- ss = transaction .getSearchService ( )
49
+ sample = transaction .getSampleForUpdate ( sample_id )
50
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 ()
51
+ parents = sample .getParentSampleIdentifiers ()
58
52
if len (parents ) > 6 :
59
53
first = parents [0 ].split ("/" )[- 1 ]
60
54
parentInfos = first + "_and_" + str (len (parents )- 1 )+ "others"
Original file line number Diff line number Diff line change @@ -41,20 +41,14 @@ def process(transaction):
41
41
space = nameSplit [0 ]
42
42
project = pPattern .findall (nameSplit [1 ])[0 ]
43
43
experiment_id = ePattern .findall (nameSplit [2 ])[0 ]
44
- #sample_id = experiment_id+'.'
45
44
sampleCode = nameSplit [- 1 ]
45
+ sample_id = "/" + space + "/" + sampleCode
46
46
if not experiment_id :
47
47
print "The identifier matching the pattern Q\w{4}E\[0-9]+ was not found in the fileName " + name
48
48
49
- ss = transaction .getSearchService ( )
49
+ sample = transaction .getSampleForUpdate ( sample_id )
50
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 ()
51
+ parents = sample .getParentSampleIdentifiers ()
58
52
parentcodes = []
59
53
for parent in parents :
60
54
parentcodes .append (parent .split ("/" )[- 1 ])
Original file line number Diff line number Diff line change @@ -34,18 +34,13 @@ def process(transaction):
34
34
project = pPattern .findall (nameSplit [1 ])[0 ]
35
35
experiment_id = ePattern .findall (nameSplit [2 ])[0 ]
36
36
sampleCode = nameSplit [- 1 ]
37
+ sample_id = "/" + space + "/" + sampleCode
37
38
if not experiment_id :
38
39
print "The identifier matching the pattern Q\w{4}E\[0-9]+ was not found in the fileName " + name
39
40
40
- ss = transaction .getSearchService ( )
41
+ sample = transaction .getSampleForUpdate ( sample_id )
41
42
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 ()
49
44
parentcodes = []
50
45
for parent in parents :
51
46
parentcodes .append (parent .split ("/" )[- 1 ])
Original file line number Diff line number Diff line change @@ -41,20 +41,14 @@ def process(transaction):
41
41
space = nameSplit [0 ]
42
42
project = pPattern .findall (nameSplit [1 ])[0 ]
43
43
experiment_id = ePattern .findall (nameSplit [2 ])[0 ]
44
- #sample_id = experiment_id+'.'
45
44
sampleCode = nameSplit [- 1 ]
45
+ sample_id = "/" + space + "/" + sampleCode
46
46
if not experiment_id :
47
47
print "The identifier matching the pattern Q\w{4}E\[0-9]+ was not found in the fileName " + name
48
48
49
- ss = transaction .getSearchService ( )
49
+ sample = transaction .getSampleForUpdate ( sample_id )
50
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 ()
51
+ parents = sample .getParentSampleIdentifiers ()
58
52
parentcodes = []
59
53
for parent in parents :
60
54
parentcodes .append (parent .split ("/" )[- 1 ])
Original file line number Diff line number Diff line change @@ -41,18 +41,12 @@ def process(transaction):
41
41
space = nameSplit [0 ]
42
42
project = pPattern .findall (nameSplit [1 ])[0 ]
43
43
experiment_id = ePattern .findall (nameSplit [2 ])[0 ]
44
- #sample_id = experiment_id+'.'
45
44
sampleCode = nameSplit [- 1 ]
45
+ sample_id = "/" + space + "/" + sampleCode
46
46
if not experiment_id :
47
47
print "The identifier matching the pattern Q\w{4}E\[0-9]+ was not found in the fileName " + name
48
48
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 )
56
50
57
51
experiment = transaction .getExperimentForUpdate ("/" + space + "/" + project + "/" + experiment_id )
58
52
Original file line number Diff line number Diff line change @@ -54,16 +54,12 @@ def process(transaction):
54
54
55
55
#Register logs
56
56
wfSampleCode = nameSplit [- 1 ]
57
+
58
+ sample_id = "/" + space + "/" + wfSampleCode
57
59
if not experiment_id :
58
60
print "The identifier matching the pattern Q\w{4}E\[0-9]+ was not found in the fileName " + name
59
61
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 )
67
63
68
64
experiment = transaction .getExperimentForUpdate ("/" + space + "/" + project + "/" + experiment_id )
69
65
@@ -95,4 +91,4 @@ def process(transaction):
95
91
sa = transaction .getSampleForUpdate (sampleID )
96
92
dataSetRes = transaction .createNewDataSet ('Q_MS_MZML_DATA' )
97
93
dataSetRes .setSample (sa )
98
- transaction .moveFile (mzmlPath , dataSetRes )
94
+ transaction .moveFile (mzmlPath , dataSetRes )
Original file line number Diff line number Diff line change @@ -41,22 +41,14 @@ def process(transaction):
41
41
space = nameSplit [0 ]
42
42
project = pPattern .findall (nameSplit [1 ])[0 ]
43
43
experiment_id = ePattern .findall (nameSplit [2 ])[0 ]
44
- #sample_id = experiment_id+'.'
45
44
sampleCode = nameSplit [- 1 ]
45
+ sample_id = "/" + space + "/" + sampleCode
46
46
if not experiment_id :
47
47
print "The identifier matching the pattern Q\w{4}E\[0-9]+ was not found in the fileName " + name
48
48
49
- ss = transaction .getSearchService ( )
49
+ sample = transaction .getSampleForUpdate ( sample_id )
50
50
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 ()
60
52
parentcodes = []
61
53
for parent in parents :
62
54
parentcodes .append (parent .split ("/" )[- 1 ])
Original file line number Diff line number Diff line change @@ -34,16 +34,11 @@ def process(transaction):
34
34
project = pPattern .findall (nameSplit [1 ])[0 ]
35
35
experiment_id = ePattern .findall (nameSplit [2 ])[0 ]
36
36
sampleCode = nameSplit [- 1 ]
37
+ sample_id = "/" + space + "/" + sampleCode
37
38
if not experiment_id :
38
39
print "The identifier matching the pattern Q\w{4}E\[0-9]+ was not found in the fileName " + name
39
40
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 )
47
42
48
43
experiment = transaction .getExperimentForUpdate ("/" + space + "/" + project + "/" + experiment_id )
49
44
Original file line number Diff line number Diff line change @@ -42,18 +42,13 @@ def process(transaction):
42
42
project = pPattern .findall (nameSplit [1 ])[0 ]
43
43
experiment_id = ePattern .findall (nameSplit [2 ])[0 ]
44
44
sampleCode = nameSplit [- 1 ]
45
+ sample_id = "/" + space + "/" + sampleCode
45
46
if not experiment_id :
46
47
print "The identifier matching the pattern Q\w{4}E\[0-9]+ was not found in the fileName " + name
47
48
48
- ss = transaction .getSearchService ( )
49
+ sample = transaction .getSampleForUpdate ( sample_id )
49
50
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 ()
57
52
parentcodes = []
58
53
for parent in parents :
59
54
parentcodes .append (parent .split ("/" )[- 1 ])
Original file line number Diff line number Diff line change @@ -41,20 +41,14 @@ def process(transaction):
41
41
space = nameSplit [0 ]
42
42
project = pPattern .findall (nameSplit [1 ])[0 ]
43
43
experiment_id = ePattern .findall (nameSplit [2 ])[0 ]
44
- #sample_id = experiment_id+'.'
45
44
sampleCode = nameSplit [- 1 ]
45
+ sample_id = "/" + space + "/" + sampleCode
46
46
if not experiment_id :
47
47
print "The identifier matching the pattern Q\w{4}E\[0-9]+ was not found in the fileName " + name
48
48
49
- ss = transaction .getSearchService ( )
49
+ sample = transaction .getSampleForUpdate ( sample_id )
50
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 ()
51
+ parents = sample .getParentSampleIdentifiers ()
58
52
parentcodes = []
59
53
for parent in parents :
60
54
parentcodes .append (parent .split ("/" )[- 1 ])
You can’t perform that action at this time.
0 commit comments