Skip to content

Commit b7f8163

Browse files
committed
deprecate meta_fusions.txt
1 parent c53089f commit b7f8163

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

genie/consortium_to_public.py

Lines changed: 3 additions & 5 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,15 +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
23-
24-
from genie.load import _copyRecursive
2522

23+
DEPRECATED_PUBLIC_RELEASE_FILES = ["data_fusions.txt", "meta_fusions.txt"]
2624

2725
# TODO: Add to transform.py
2826
def commonVariantFilter(mafDf):
@@ -213,7 +211,7 @@ def consortiumToPublic(
213211
)
214212
genePanelEntities = []
215213
for entName, entId in consortiumRelease[2]:
216-
is_deprecated_file = entName in ["data_fusions.txt"]
214+
is_deprecated_file = entName in DEPRECATED_PUBLIC_RELEASE_FILES
217215
# skip files to convert
218216
if (
219217
entName.startswith("data_linear")

genie/database_to_staging.py

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

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

106107
# TODO: Add to transform.py
107108
def _to_redact_interval(df_col: pd.Series) -> Tuple[pd.Series, pd.Series]:
@@ -1978,7 +1979,7 @@ def revise_metadata_files(syn, consortiumid, genie_version=None):
19781979
i["id"], downloadLocation=GENIE_RELEASE_DIR, ifcollision="overwrite.local"
19791980
)
19801981
for i in release_files
1981-
if "meta" in i["name"] and i["name"] != "meta_fusions.txt"
1982+
if "meta" in i["name"] and i["name"] not in DEPRECATED_CONSORTIUM_RELEASE_FILES
19821983
]
19831984

19841985
for meta_ent in meta_file_ents:
@@ -2091,7 +2092,7 @@ def create_link_version(
20912092
release_file["name"] != "data_clinical.txt" or release_type == "consortium"
20922093
)
20932094
is_gene_panel = release_file["name"].startswith("data_gene_panel")
2094-
is_deprecated_file = release_file["name"] in ["data_fusions.txt"]
2095+
is_deprecated_file = release_file["name"] in DEPRECATED_CONSORTIUM_RELEASE_FILES
20952096

20962097
if not_folder and not_public and not is_gene_panel and not is_deprecated_file:
20972098
syn.store(

0 commit comments

Comments
 (0)