Skip to content
Snippets Groups Projects
Commit cfa247c0 authored by cramakri's avatar cramakri
Browse files

LMS-2391 Updated scripts to create container data sets.

SVN: 22048
parent c18bfcc8
No related branches found
No related tags found
No related merge requests found
...@@ -65,10 +65,18 @@ metadata = timeSeriesData.getMetadataMap() ...@@ -65,10 +65,18 @@ metadata = timeSeriesData.getMetadataMap()
# Strains are not in the metadata, but in the data, so extract them # Strains are not in the metadata, but in the data, so extract them
metadata["STRAIN_NAMES"] = extract_strains() metadata["STRAIN_NAMES"] = extract_strains()
assign_properties(dataset, metadata) assign_properties(dataset, metadata)
# Convert the data into a tsv file, and put that and the original data into the data set # Store the original and tsv data in data sets
convert_data_to_tsv(tr, dataset, "data/tsv") original_dataset = tr.createNewDataSet("EXCEL_ORIGINAL")
store_original_data(tr, dataset, "data/xls") store_original_data(tr, original_dataset, "xls")
tsv_dataset = tr.createNewDataSet("TSV_MULTISTRAIN_EXPORT")
convert_data_to_tsv(tr, tsv_dataset, "tsv-multi")
# Make the original contain these
contained_codes = [original_dataset.getDataSetCode(), tsv_dataset.getDataSetCode()]
dataset.setContainedDataSetCodes(contained_codes)
# If no experiment has been set, then get the experiment from the excel file # If no experiment has been set, then get the experiment from the excel file
if dataset.getExperiment() is None: if dataset.getExperiment() is None:
......
...@@ -53,9 +53,17 @@ dataset = tr.createNewDataSet("METABOLITE_INTENSITIES") ...@@ -53,9 +53,17 @@ dataset = tr.createNewDataSet("METABOLITE_INTENSITIES")
metadata = timeSeriesData.getMetadataMap() metadata = timeSeriesData.getMetadataMap()
assign_properties(dataset, metadata) assign_properties(dataset, metadata)
# Convert the data into a tsv file, and put that and the original data into the data set # Store the original and tsv data in data sets
convert_data_to_tsv(tr, dataset, "data/tsv") original_dataset = tr.createNewDataSet("EXCEL_ORIGINAL")
store_original_data(tr, dataset, "data/xls") store_original_data(tr, original_dataset, "xls")
tsv_dataset = tr.createNewDataSet("TSV_EXPORT")
convert_data_to_tsv(tr, tsv_dataset, "tsv")
# Make the original contain these
contained_codes = [original_dataset.getDataSetCode(), tsv_dataset.getDataSetCode()]
dataset.setContainedDataSetCodes(contained_codes)
# If no experiment has been set, then get the experiment from the excel file # If no experiment has been set, then get the experiment from the excel file
if dataset.getExperiment() is None: if dataset.getExperiment() is None:
......
...@@ -53,10 +53,18 @@ timeSeriesData = TimeSeriesDataExcel.createTimeSeriesDataExcel(incoming.getAbsol ...@@ -53,10 +53,18 @@ timeSeriesData = TimeSeriesDataExcel.createTimeSeriesDataExcel(incoming.getAbsol
dataset = tr.createNewDataSet("PROTEIN_QUANTIFICATIONS") dataset = tr.createNewDataSet("PROTEIN_QUANTIFICATIONS")
metadata = timeSeriesData.getMetadataMap() metadata = timeSeriesData.getMetadataMap()
assign_properties(dataset, metadata) assign_properties(dataset, metadata)
# Convert the data into a tsv file, and put that and the original data into the data set # Store the original and tsv data in data sets
convert_data_to_tsv(tr, dataset, "data/tsv") original_dataset = tr.createNewDataSet("EXCEL_ORIGINAL")
store_original_data(tr, dataset, "data/xls") store_original_data(tr, original_dataset, "xls")
tsv_dataset = tr.createNewDataSet("TSV_EXPORT")
convert_data_to_tsv(tr, tsv_dataset, "tsv")
# Make the original contain these
contained_codes = [original_dataset.getDataSetCode(), tsv_dataset.getDataSetCode()]
dataset.setContainedDataSetCodes(contained_codes)
# If no experiment has been set, then get the experiment from the excel file # If no experiment has been set, then get the experiment from the excel file
if dataset.getExperiment() is None: if dataset.getExperiment() is None:
......
...@@ -94,10 +94,18 @@ dataset = tr.createNewDataSet("TRANSCRIPTOMICS") ...@@ -94,10 +94,18 @@ dataset = tr.createNewDataSet("TRANSCRIPTOMICS")
metadata = timeSeriesData.getMetadataMap() metadata = timeSeriesData.getMetadataMap()
metadata["STRAIN_NAMES"] = extract_strains(dataStart[0], dataStart[1]) metadata["STRAIN_NAMES"] = extract_strains(dataStart[0], dataStart[1])
assign_properties(dataset, metadata) assign_properties(dataset, metadata)
# Convert the data into a tsv file, and put that and the original data into the data set # Store the original and tsv data in data sets
convert_data_to_tsv(tr, dataStart[0], dataStart[1], dataset, "data/tsv") original_dataset = tr.createNewDataSet("EXCEL_ORIGINAL")
store_original_data(tr, dataset, "data/xls") store_original_data(tr, original_dataset, "xls")
tsv_dataset = tr.createNewDataSet("TSV_MULTISTRAIN_EXPORT")
convert_data_to_tsv(tr, dataStart[0], dataStart[1], tsv_dataset, "tsv-multi")
# Make the original contain these
contained_codes = [original_dataset.getDataSetCode(), tsv_dataset.getDataSetCode()]
dataset.setContainedDataSetCodes(contained_codes)
# If no experiment has been set, then get the experiment from the excel file # If no experiment has been set, then get the experiment from the excel file
if dataset.getExperiment() is None: if dataset.getExperiment() is None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment