Skip to content

Commit

Permalink
Merge pull request #1174 from griffithlab/include-mps-with-only-asser…
Browse files Browse the repository at this point in the history
…tions

Include MPs in the TSV if they are linked to an assertion
  • Loading branch information
acoffman authored Jan 14, 2025
2 parents bf88351 + dac4d2a commit 94ceabc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/app/tsv_formatters/molecular_profile_tsv_formatter.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class MolecularProfileTsvFormatter
def self.objects
MolecularProfile.eager_load(:variants, :evidence_items, :assertions, :molecular_profile_aliases)
.joins(:evidence_items)
.where("evidence_items.status = 'accepted'")
.left_joins(:evidence_items)
.where("evidence_items.status = 'accepted' OR assertions.id IS NOT NULL")
end

def self.headers
Expand Down

0 comments on commit 94ceabc

Please sign in to comment.