-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(GUNC): Added GTDB R95 dataset methods.
- Loading branch information
1 parent
8c87e70
commit aff82f6
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import os | ||
|
||
import pandas as pd | ||
|
||
from magna.config import MAGNA_DIR | ||
|
||
|
||
def gunc_max_css_scores_gtdb_r95() -> pd.DataFrame: | ||
path = os.path.join(MAGNA_DIR, 'dataset', 'gunc', 'GUNC.gtdb_95.maxCSS_level.feather') | ||
if not os.path.isfile(path): | ||
raise IOError(f'{path} does not exist.') | ||
return pd.read_feather(path) | ||
|
||
|
||
def gunc_contig_assignment_gtdb_r95() -> pd.DataFrame: | ||
path = os.path.join(MAGNA_DIR, 'dataset', 'gunc', 'GUNC.gtdb_95.contig_assignments.feather') | ||
if not os.path.isfile(path): | ||
raise IOError(f'{path} does not exist.') | ||
return pd.read_feather(path) | ||
|
||
|
||
def gunc_all_levels_gtdb_r95() -> pd.DataFrame: | ||
path = os.path.join(MAGNA_DIR, 'dataset', 'gunc', 'gtdb_95.all_levels.tsv') | ||
if not os.path.isfile(path): | ||
raise IOError(f'{path} does not exist.') | ||
return pd.read_feather(path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters