Ejemplo n.º 1
0
    def to_pandas(self, out_file_path, write_metadata=True, id_label="corems:"):

        if isinstance(out_file_path, str):
            out_file_path = Path(out_file_path)
        # pickle dataframe (pkl extension)
        exportMS = LowResGCMSExport(out_file_path, self)
        exportMS.to_pandas(id_label=id_label, write_metadata=write_metadata)

        return out_file_path.with_suffix('.pkl')
Ejemplo n.º 2
0
    def to_excel(self, out_file_path, write_mode='ab', write_metadata=True, id_label="corems:"):

        if isinstance(out_file_path, str):
            out_file_path = Path(out_file_path)

        exportMS = LowResGCMSExport(out_file_path, self)
        exportMS.to_excel(id_label=id_label, write_mode=write_mode, write_metadata=write_metadata)

        return out_file_path.with_suffix('.xlsx')
Ejemplo n.º 3
0
    def to_csv(self, out_file_path, separate_output=False, write_metadata=True, id_label="corems:"):

        if isinstance(out_file_path, str):
            out_file_path = Path(out_file_path)

        exportMS = LowResGCMSExport(out_file_path, self)
        exportMS.to_csv(id_label=id_label, separate_output=separate_output, write_metadata=write_metadata)

        return out_file_path.with_suffix('.csv')
Ejemplo n.º 4
0
    def to_hdf(self, id_label="corems:"):

        # returns pandas dataframe
        exportMS = LowResGCMSExport(self.sample_name, self)
        return exportMS.to_hdf(id_label=id_label)
Ejemplo n.º 5
0
    def parameters_json(self, id_label="corems:", output_path=" "):

        # returns json string
        exportMS = LowResGCMSExport(self.sample_name, self)
        return exportMS.get_parameters_json(self, id_label, output_path)
Ejemplo n.º 6
0
    def processing_stats(self):

        # returns json string
        exportMS = LowResGCMSExport(self.sample_name, self)
        return exportMS.get_data_stats(self)
Ejemplo n.º 7
0
    def to_hdf(self, highest_score=True):

        #returns pandas dataframe
        exportMS = LowResGCMSExport(self.sample_name, self)
        return exportMS.to_hdf(highest_score=highest_score)
Ejemplo n.º 8
0
    def to_pandas(self, out_file_path, highest_score=True):

        #pickle dataframe (pkl extension)
        exportMS = LowResGCMSExport(out_file_path, self)
        exportMS.to_pandas(highest_score=highest_score)
Ejemplo n.º 9
0
    def to_csv(self, out_file_path, write_mode='ab', highest_score=True):

        exportMS = LowResGCMSExport(out_file_path, self)
        exportMS.to_csv(highest_score=highest_score)
Ejemplo n.º 10
0
 def to_json(self,highest_score=True, id_label="corems:"):
     
     #returns pandas dataframe
     exportMS= LowResGCMSExport(self.sample_name, self)
     return exportMS.get_json(highest_score=highest_score, id_label=id_label)
Ejemplo n.º 11
0
 def to_csv(self, out_file_path, write_mode='ab', highest_score=True, id_label="corems:"):
     
     exportMS= LowResGCMSExport(out_file_path, self)
     exportMS.to_csv(highest_score=highest_score, id_label=id_label)