Skip to content

Commit 9361f9f

Browse files
Merge pull request #3268 from antgonza/allow-biom-processing
allow biom processing
2 parents ea0b4bd + fe7261f commit 9361f9f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

qiita_db/artifact.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1617,9 +1617,10 @@ def get_commands(self):
16171617
sql += " AND is_analysis = False"
16181618
# get the workflows that match this artifact so we can filter
16191619
# the available commands based on the commands in the worflows
1620-
# for that artifact
1621-
dws = [w for w in qdb.software.DefaultWorkflow.iter()
1622-
if self.data_type in w.data_type]
1620+
# for that artifact - except is the artifact_type == 'BIOM'
1621+
if self.artifact_type != 'BIOM':
1622+
dws = [w for w in qdb.software.DefaultWorkflow.iter()
1623+
if self.data_type in w.data_type]
16231624
else:
16241625
sql += " AND is_analysis = True"
16251626

qiita_pet/templates/artifact_ajax/artifact_summary.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ <h4 style="color: #FF2222;">This artifact is being deleted</h4>
143143

144144
{% if artifact_type == 'BIOM' and not is_from_analysis %}
145145
<input type="button" class="btn btn-default btn-sm" value="Add to Analysis" onclick="send_samples_to_analysis(this, [{{artifact_id}}]);">
146+
<a class="btn btn-default btn-sm" id="process-btn"><span class="glyphicon glyphicon-play"></span> Process</a>
146147
{% elif artifact_type != 'job-output-folder' %}
147148
<a class="btn btn-default btn-sm" id="process-btn"><span class="glyphicon glyphicon-play"></span> Process</a>
148149
{% end %}

0 commit comments

Comments
 (0)