Skip to content

Commit

Permalink
peak indexing eQTL, added ibed file format, BTO ontology, ren-lab-int…
Browse files Browse the repository at this point in the history
…ernal viweing group
  • Loading branch information
Parul-Kudtarkar committed Mar 15, 2020
1 parent 33024f0 commit e898183
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 8 deletions.
1 change: 1 addition & 0 deletions checkfiles/checkfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ def check_format(encValData, job, path):
('wig', None): None,
('hdf5', None): None,
('hic', None): None,
('ibed', None): None,
('gff', None): None,
('vcf', None): None,
('btr', None): None
Expand Down
2 changes: 1 addition & 1 deletion src/encoded/audit/ontology_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
'tissue': ['UBERON'],
'whole organisms': ['UBERON'],
'primary cell': ['CL'],
'cell line': ['CL'],
'cell line': ['CL', 'BTO'],
'stem cell': ['EFO', 'CL'],
'immortalized cell line': ['EFO'],
'in vitro differentiated cells': ['CL', 'EFO'],
Expand Down
11 changes: 7 additions & 4 deletions src/encoded/peak_indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@
},
'chromatin state': {
'file_type': ['bed bed3+', 'bed bed9']
}
},
'eQTL': {
'file_type': ['bed bed3+']
}
}

# Species and references being indexed
Expand Down Expand Up @@ -121,7 +124,7 @@ def get_annotation_type(accession, request):


def all_bed_file_uuids(request):
stmt = text("select distinct(resources.rid) from resources, propsheets where resources.rid = propsheets.rid and resources.item_type='file' and propsheets.properties->>'file_format' = 'bed';")
stmt = text("select distinct(resources.rid) from resources, propsheets where resources.rid = propsheets.rid and resources.item_type='file' and propsheets.properties->>'file_format' = 'bed' and properties->>'status' = 'released';")
connection = request.registry[DBSESSION].connection()
uuids = connection.execute(stmt)
return [str(item[0]) for item in uuids]
Expand All @@ -145,8 +148,8 @@ def index_peaks(uuid, request):
if 'File' not in context['@type'] or 'dataset' not in context:
return

# if 'status' not in context or context['status'] != 'released':
# return
if 'status' not in context or context['status'] != 'released':
return

# Index human data for now
if assembly not in _ASSEMBLIES:
Expand Down
2 changes: 1 addition & 1 deletion src/encoded/schemas/antibody_characterization.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
"description": "Ontology identifier describing biosample.",
"comment": "NTR is a new term request identifier provided by the DCC.",
"type": "string",
"pattern": "^(UBERON|EFO|CL|NTR|FBbt|WBbt):[0-9]{2,8}$"
"pattern": "^(UBERON|EFO|CL|BTO|NTR|FBbt|WBbt):[0-9]{2,8}$"
},
"biosample_term_name": {
"title": "Ontology term",
Expand Down
1 change: 1 addition & 0 deletions src/encoded/schemas/award.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
"GGR",
"AMP",
"gaulton-lab-internal",
"ren-lab-internal",
"reviwer",
"REMC",
"community"
Expand Down
4 changes: 3 additions & 1 deletion src/encoded/schemas/file.json
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@
"gtf",
"hdf5",
"hic",
"ibed",
"idat",
"rcc",
"CEL",
Expand Down Expand Up @@ -1162,14 +1163,15 @@
"gff": ".gff.gz",
"gtf": ".gtf.gz",
"hic": ".hic",
"ibed": ".ibed",
"hdf5": ".h5",
"idat": ".idat",
"PWM":".pwm",
"rcc": ".rcc",
"sra": ".sra",
"tagAlign": ".tagAlign.gz",
"tar": ".tar.gz",
"tsv": ".tsv",
"tsv": ".tsv.gz",
"csv": ".csv",
"vcf": ".vcf.gz",
"wig": ".wig.gz",
Expand Down
2 changes: 1 addition & 1 deletion src/encoded/schemas/mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@
"description": "Ontology identifier describing biosample.",
"comment": "NTR is a new term request identifier provided by the DCC.",
"type": "string",
"pattern": "^(UBERON|EFO|CL|NTR|FBbt|WBbt):[0-9]{2,8}$"
"pattern": "^(UBERON|BTO|EFO|CL|NTR|FBbt|WBbt):[0-9]{2,8}$"
},
"biosample_term_name": {
"title": "Ontology term",
Expand Down
1 change: 1 addition & 0 deletions src/encoded/schemas/namespaces.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"PMID": "https://www.ncbi.nlm.nih.gov/pubmed/?term=",
"PMCID": "https://www.ncbi.nlm.nih.gov/pmc/articles/",
"doi": "http://dx.doi.org/doi:",
"BTO": "http://purl.obolibrary.org/obo/BTO_",
"EFO": "http://www.ebi.ac.uk/efo/EFO_",
"CL": "http://purl.obolibrary.org/obo/CL_",
"UBERON": "http://purl.obolibrary.org/obo/UBERON_",
Expand Down
1 change: 1 addition & 0 deletions src/encoded/schemas/user.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
"REMC",
"AMP",
"gaulton-lab-internal",
"ren-lab-internal",
"reviwer",
"community"
]
Expand Down
1 change: 1 addition & 0 deletions src/encoded/static/components/biosample.js
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ var BiosampleTermId = createReactClass({
// Specific term IDs are appended to these after converting ':' to '_'.
urlMap: {
'EFO': 'http://www.ebi.ac.uk/efo/',
'BTO': 'http://www.ontobee.org/ontology/BTO?iri=http://purl.obolibrary.org/obo/',
'UBERON': 'http://www.ontobee.org/ontology/UBERON?iri=http://purl.obolibrary.org/obo/',
'CL': 'http://www.ontobee.org/ontology/CL?iri=http://purl.obolibrary.org/obo/'
},
Expand Down
1 change: 1 addition & 0 deletions src/encoded/types/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def calculate_assembly(request, files_list, status):
viewable_file_formats = ['bigWig',
'bigBed',
'hic',
'ibed',
'long range chromatin interactions',
'narrowPeak',
'broadPeak',
Expand Down

0 comments on commit e898183

Please sign in to comment.