projects
/
htsworkflow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a generator that returns analysis nodes from a result map.
[htsworkflow.git]
/
htsworkflow
/
submission
/
submission.py
diff --git
a/htsworkflow/submission/submission.py
b/htsworkflow/submission/submission.py
index 640443557f8d50a574816ce33ba417de35054da5..12a5154c33a01bf15d1349040e7bfd2f71f51df8 100644
(file)
--- a/
htsworkflow/submission/submission.py
+++ b/
htsworkflow/submission/submission.py
@@
-57,6
+57,13
@@
class Submission(object):
pathname = os.path.abspath(os.path.join(analysis_dir, filename))
self.construct_file_attributes(analysis_dir, libNode, pathname)
pathname = os.path.abspath(os.path.join(analysis_dir, filename))
self.construct_file_attributes(analysis_dir, libNode, pathname)
+ def analysis_nodes(self, result_map):
+ """Return an iterable of analysis nodes
+ """
+ for result_dir in result_map.values():
+ an_analysis = self.get_submission_node(result_dir)
+ yield an_analysis
+
def construct_file_attributes(self, analysis_dir, libNode, pathname):
"""Looking for the best extension
The 'best' is the longest match
def construct_file_attributes(self, analysis_dir, libNode, pathname):
"""Looking for the best extension
The 'best' is the longest match