Rename the before_edit() and after_edit() metadata related methods to be more appropriately named before_setting_metadata() and after_setting_metadata(), and add the metthods to all datatype classes. Move sorting of Bam files from the Bam set_meta() method to this new method.

This commit is contained in:
Greg Von Kuster
2009-12-08 09:05:35 -05:00
parent bcd6751cdf
commit 7051ce7dd5
20 changed files with 271 additions and 87 deletions
+1
View File
@@ -46,6 +46,7 @@ def exec_after_process(app, inp_data, out_data, param_dict, tool=None, stdout=No
fp.close()
#Set meta data, format file to be valid interval type
if isinstance(data.datatype, datatypes.interval.Interval):
data.datatype.before_setting_metadata( data )
data.set_meta(first_line_is_header=True)
#check for missing meta data, if all there, comment first line and process file
if not data.missing_meta():