Skip to content

Commit 531340b

Browse files
authored
[GEN-2368] Deprecate meta_fusions.txt (#630)
* deprecate meta_fusions.txt * lint
1 parent df16508 commit 531340b

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

genie/consortium_to_public.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import sys
66

77
import pandas as pd
8-
import synapseclient
98
import synapseutils
109
from genie import (
1110
create_case_lists,
@@ -14,14 +13,14 @@
1413
load,
1514
process_functions,
1615
)
16+
from genie.load import _copyRecursive
1717

1818
logger = logging.getLogger(__name__)
1919
stdout_handler = logging.StreamHandler(stream=sys.stdout)
2020
stdout_handler.setLevel(logging.INFO)
2121
logger.addHandler(stdout_handler)
22-
from typing import Dict
2322

24-
from genie.load import _copyRecursive
23+
DEPRECATED_PUBLIC_RELEASE_FILES = ["data_fusions.txt", "meta_fusions.txt"]
2524

2625

2726
# TODO: Add to transform.py
@@ -213,7 +212,7 @@ def consortiumToPublic(
213212
)
214213
genePanelEntities = []
215214
for entName, entId in consortiumRelease[2]:
216-
is_deprecated_file = entName in ["data_fusions.txt"]
215+
is_deprecated_file = entName in DEPRECATED_PUBLIC_RELEASE_FILES
217216
# skip files to convert
218217
if (
219218
entName.startswith("data_linear")

genie/database_to_staging.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@
102102
"mutationInCis_Flag",
103103
]
104104

105+
DEPRECATED_CONSORTIUM_RELEASE_FILES = ["data_fusions.txt", "meta_fusions.txt"]
106+
105107

106108
# TODO: Add to transform.py
107109
def _to_redact_interval(df_col: pd.Series) -> Tuple[pd.Series, pd.Series]:
@@ -1978,7 +1980,7 @@ def revise_metadata_files(syn, consortiumid, genie_version=None):
19781980
i["id"], downloadLocation=GENIE_RELEASE_DIR, ifcollision="overwrite.local"
19791981
)
19801982
for i in release_files
1981-
if "meta" in i["name"] and i["name"] != "meta_fusions.txt"
1983+
if "meta" in i["name"] and i["name"] not in DEPRECATED_CONSORTIUM_RELEASE_FILES
19821984
]
19831985

19841986
for meta_ent in meta_file_ents:
@@ -2091,7 +2093,7 @@ def create_link_version(
20912093
release_file["name"] != "data_clinical.txt" or release_type == "consortium"
20922094
)
20932095
is_gene_panel = release_file["name"].startswith("data_gene_panel")
2094-
is_deprecated_file = release_file["name"] in ["data_fusions.txt"]
2096+
is_deprecated_file = release_file["name"] in DEPRECATED_CONSORTIUM_RELEASE_FILES
20952097

20962098
if not_folder and not_public and not is_gene_panel and not is_deprecated_file:
20972099
syn.store(

0 commit comments

Comments
 (0)