Skip to content

Commit

Permalink
Deleted previously commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
ptth222 committed Mar 20, 2024
1 parent e78f621 commit 945241a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 38 deletions.
26 changes: 0 additions & 26 deletions isatools/isatab/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,32 +515,6 @@ def get_object_column_map(isatab_header, df_columns):
return object_column_map


# def get_column_header(protocol_type_term, protocol_types_dict):
# column_header = None
# if protocol_type_term.lower() in \
# protocol_types_dict["nucleic acid sequencing"][SYNONYMS] \
# + protocol_types_dict["phenotyping"][SYNONYMS] \
# + protocol_types_dict["data acquisition"][SYNONYMS]:
# column_header = "Assay Name"
# elif protocol_type_term.lower() in protocol_types_dict["data collection"][SYNONYMS]:
# column_header = "Scan Name"
# elif protocol_type_term.lower() in protocol_types_dict["mass spectrometry"][SYNONYMS]:
# column_header = "MS Assay Name"
# elif protocol_type_term.lower() in protocol_types_dict["nmr spectroscopy"][SYNONYMS]:
# column_header = "NMR Assay Name"
# elif protocol_type_term.lower() in \
# protocol_types_dict["data transformation"][SYNONYMS] \
# + protocol_types_dict["sequence analysis data transformation"][SYNONYMS] \
# + protocol_types_dict["metabolite identification"][SYNONYMS] \
# + protocol_types_dict["protein identification"][SYNONYMS]:
# column_header = "Data Transformation Name"
# elif protocol_type_term.lower() in protocol_types_dict["normalization"][SYNONYMS]:
# column_header = "Normalization Name"
# if protocol_type_term.lower() == "unknown protocol":
# column_header = "Unknown Protocol Name"
# return column_header


def get_value_columns(label, x):
""" Generates the appropriate columns based on the value of the object.
For example, if the object's .value value is an OntologyAnnotation,
Expand Down
12 changes: 0 additions & 12 deletions isatools/model/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,18 +307,6 @@ def from_assay_dict(self, process, technology_type):
self.name = process.get('name', '')
self.executes_protocol = indexes.get_protocol(process['executesProtocol']['@id'])
self.load_comments(process.get('comments', []))
# allowed_protocol_type_terms = [
# "nucleic acid sequencing",
# "nmr spectroscopy",
# "mass spectrometry",
# "nucleic acid hybridization",
# "data transformation",
# "data normalization"
# ]
# if self.executes_protocol.protocol_type.term in allowed_protocol_type_terms or (
# self.executes_protocol.protocol_type.term == 'data collection'
# and technology_type.term == 'DNA microarray'):
# self.name = process['name']

# Inputs / Outputs
for io_data_target in ['inputs', 'outputs']:
Expand Down

0 comments on commit 945241a

Please sign in to comment.