Skip to content

Commit

Permalink
removed some commented out obsolete code
Browse files Browse the repository at this point in the history
  • Loading branch information
proost committed Oct 26, 2017
1 parent 184cf9a commit 0544a8b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions planet/controllers/expression_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,6 @@ def __generate(species_id, method_id, condition):
:param condition: Condition to be exported
:return: output
"""
# output = ["Sequence\tAvg.Expression\tMin.Expression\tMax.Expression"]
yield "Sequence\tAvg.Expression\tMin.Expression\tMax.Expression\n"

profiles = ExpressionProfile.query.filter(ExpressionProfile.species_id == species_id). \
Expand All @@ -290,16 +289,13 @@ def __generate(species_id, method_id, condition):
data, use_means=True)
values = converted_profile["data"][condition]

# output.append("%s\t%f\t%f\t%f" % (p.sequence.name, mean(values), min(values), max(values)))
yield "%s\t%f\t%f\t%f\n" % (p.sequence.name, mean(values), min(values), max(values))

except Exception as e:
print("An error occured exporting a profile with conditions %s for species %d." % (condition, species_id),
file=sys.stderr)
print(e, file=sys.stderr)

# return '\n'.join(output)


@expression_profile.route('/export/species', methods=['GET', 'POST'])
def export_expression_levels():
Expand Down

0 comments on commit 0544a8b

Please sign in to comment.