Skip to content

Commit 5b14f4b

Browse files
authored
fix: add mane refseq genomic to check status (#416)
Forgot to do this in #412
1 parent 77ed260 commit 5b14f4b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/cool_seq_tool/resources/status.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
DataFile.TRANSCRIPT_MAPPINGS.lower(),
2525
DataFile.MANE_SUMMARY.lower(),
2626
DataFile.LRG_REFSEQGENE.lower(),
27+
DataFile.MANE_REFSEQ_GENOMIC.lower(),
2728
"liftover",
2829
),
2930
)
@@ -37,6 +38,7 @@ async def check_status(
3738
sr: SeqRepo | None = None,
3839
chain_file_37_to_38: str | None = None,
3940
chain_file_38_to_37: str | None = None,
41+
mane_refseq_genomic_path: str | None = None,
4042
) -> ResourceStatus:
4143
"""Perform basic status checks on availability of required data resources.
4244
@@ -62,26 +64,29 @@ async def check_status(
6264
is used for ``agct``. If this is not provided, will check to see if
6365
``LIFTOVER_CHAIN_38_TO_37`` env var is set. If neither is provided, will allow
6466
``agct`` to download a chain file from UCSC
67+
:param mane_refseq_genomic_path: Optional path to MANE RefSeq Genomic GFF data
6568
:return: boolean description of availability of each resource, given current
6669
environment configurations
6770
"""
6871
file_path_params = {
6972
DataFile.TRANSCRIPT_MAPPINGS.lower(): transcript_file_path,
7073
DataFile.LRG_REFSEQGENE.lower(): lrg_refseqgene_path,
7174
DataFile.MANE_SUMMARY.lower(): mane_data_path,
75+
DataFile.MANE_REFSEQ_GENOMIC.lower(): mane_refseq_genomic_path,
7276
}
7377

7478
status = {
7579
DataFile.TRANSCRIPT_MAPPINGS.lower(): False,
7680
DataFile.LRG_REFSEQGENE.lower(): False,
7781
DataFile.MANE_SUMMARY.lower(): False,
82+
DataFile.MANE_REFSEQ_GENOMIC.lower(): False,
7883
"liftover": False,
7984
"uta": False,
8085
"seqrepo": False,
8186
}
8287
for r in list(DataFile):
8388
name_lower = r.lower()
84-
declared_path = file_path_params[name_lower]
89+
declared_path = file_path_params.get(name_lower)
8590
if declared_path and declared_path.exists() and declared_path.is_file():
8691
status[name_lower] = True
8792
continue

0 commit comments

Comments
 (0)