Skip to content

Commit

Permalink
Merge 88d6455 into 57b1e72
Browse files Browse the repository at this point in the history
  • Loading branch information
MalinAhlberg committed Jun 27, 2019
2 parents 57b1e72 + 88d6455 commit eef7cac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions backend/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,10 @@ class Meta:

class VariantMate(BaseModel):
class Meta:
table_name = "mate"
table_name = "mates"
schema = 'data'

dataset_version = ForeignKeyField(DatasetVersion, column_name="dataset_version", backref="mate")
dataset_version = ForeignKeyField(DatasetVersion, column_name="dataset_version", backref="mates")
chrom = CharField(max_length=10)
pos = IntegerField()
ref = CharField()
Expand Down
2 changes: 1 addition & 1 deletion sql/beacon_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ CREATE OR REPLACE VIEW beacon.beacon_mate_table AS
dm.allele_freq as frequency,
dm.mate_start - 1 as "end",
'BND' as variantType
FROM data.mate AS dm
FROM data.mates AS dm
JOIN beacon.available_datasets as av
ON dm.dataset_version = av.id
JOIN data.datasets as d
Expand Down
2 changes: 1 addition & 1 deletion sql/data_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ CREATE TABLE IF NOT EXISTS data.variants (
);

-- For storing breakends
CREATE TABLE IF NOT EXISTS data.mate (
CREATE TABLE IF NOT EXISTS data.mates (
id integer PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY,
dataset_version integer REFERENCES data.dataset_versions,
chrom_id varchar(128), -- column 3 in vcf
Expand Down

0 comments on commit eef7cac

Please sign in to comment.