Datasets:
id int32 1 833 | target_locus_tag stringlengths 7 9 | target_symbol stringlengths 2 12 | experiment_hops float64 0 611 | background_hops float64 0 120 | background_total_hops float64 104k 104k | experiment_total_hops float64 1 65.7k | callingcards_enrichment float64 0 73.8k | poisson_pval float64 0 1 | hypergeometric_pval float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|
344 | YAL069W | unknown_1 | 0 | 2 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL068W-A | unknown_2 | 0 | 4 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL068C | PAU8 | 0 | 1 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL067W-A | unknown_4 | 0 | 1 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL067C | SEO1 | 0 | 11 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL066W | unknown_6 | 0 | 8 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL065C | unknown_7 | 0 | 0 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL064W-B | unknown_8 | 0 | 0 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL064C-A | TDA8 | 0 | 2 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL064W | unknown_10 | 1 | 9 | 103,922 | 7,717 | 1.47985 | 0.491222 | 0.511457 |
344 | YAL063C-A | unknown_11 | 0 | 1 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL063C | FLO9 | 0 | 2 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL062W | GDH3 | 0 | 27 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL061W | BDH2 | 0 | 25 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL060W | BDH1 | 1 | 29 | 103,922 | 7,717 | 0.462771 | 0.884778 | 0.883421 |
344 | YAL059W | ECM1 | 0 | 2 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL059C-A | unknown_16 | 0 | 0 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL058W | CNE1 | 0 | 0 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL056C-A | unknown_19 | 0 | 3 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL056W | GPB2 | 0 | 3 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL055W | PEX22 | 0 | 8 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL054C | ACS1 | 0 | 29 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL053W | FLC2 | 0 | 29 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL051W | OAF1 | 0 | 7 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL049C | AIM2 | 0 | 7 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL047W-A | unknown_27 | 0 | 0 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL048C | GEM1 | 0 | 1 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL047C | SPC72 | 0 | 4 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL046C | BOL3 | 0 | 0 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL044W-A | BOL1 | 0 | 0 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL045C | unknown_30 | 0 | 2 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL044C | GCV3 | 0 | 5 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL043C | PTA1 | 0 | 4 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL042W | ERV46 | 0 | 6 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL042C-A | unknown_34 | 0 | 3 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL041W | CDC24 | 0 | 5 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL040C | CLN3 | 9 | 18 | 103,922 | 7,717 | 6.696115 | 0.000012 | 0.000053 |
344 | YAL039C | CYC3 | 6 | 53 | 103,922 | 7,717 | 1.521653 | 0.206038 | 0.221768 |
344 | YAL038W | CDC19 | 6 | 36 | 103,922 | 7,717 | 2.238221 | 0.055193 | 0.067334 |
344 | YAL037C-B | unknown_40 | 0 | 0 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL037C-A | unknown_41 | 0 | 4 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL037W | unknown_42 | 0 | 4 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL036C | RBG1 | 0 | 6 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL035W | FUN12 | 0 | 6 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL034W-A | MTW1 | 0 | 2 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL034C-B | unknown_45 | 0 | 4 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL034C | FUN19 | 0 | 16 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL033W | POP5 | 0 | 16 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL032C | PRP45 | 0 | 1 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL031W-A | unknown_50 | 0 | 1 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL031C | GIP4 | 0 | 2 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL030W | SNC1 | 0 | 2 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL029C | MYO4 | 0 | 5 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL028W | FRT2 | 0 | 5 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL027W | SAW1 | 0 | 1 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL026C-A | unknown_56 | 0 | 0 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL026C | DRS2 | 0 | 3 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL025C | MAK16 | 0 | 3 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL024C | LTE1 | 1 | 1 | 103,922 | 7,717 | 12.242393 | 0.078436 | 0.133472 |
344 | YAL023C | PMT2 | 0 | 3 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL022C | FUN26 | 0 | 0 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL021C | CCR4 | 0 | 5 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL019W-A | unknown_65 | 0 | 2 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL020C | ATS1 | 0 | 3 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL019W | FUN30 | 0 | 1 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL018C | LDS1 | 0 | 5 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL017W | PSK1 | 0 | 5 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL016C-B | unknown_69 | 0 | 1 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL016W | TPD3 | 0 | 1 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL016C-A | unknown_70 | 0 | 1 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL015C | NTG1 | 0 | 2 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL014C | SYN8 | 1 | 2 | 103,922 | 7,717 | 6.412682 | 0.14439 | 0.193371 |
344 | YAL013W | DEP1 | 1 | 2 | 103,922 | 7,717 | 6.412682 | 0.14439 | 0.193371 |
344 | YAL012W | CYS3 | 0 | 15 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL011W | SWC3 | 0 | 4 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL010C | MDM10 | 0 | 0 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL009W | SPO7 | 0 | 0 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL008W | FUN14 | 0 | 2 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL007C | ERP2 | 0 | 8 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL004W | unknown_83 | 0 | 0 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL005C | SSA1 | 0 | 30 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL003W | EFB1 | 0 | 30 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL002W | VPS8 | 0 | 13 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAL001C | TFC3 | 0 | 37 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAR002W | NUP60 | 0 | 28 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAR002C-A | ERP1 | 0 | 4 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAR003W | SWD1 | 0 | 4 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAR007C | RFA1 | 0 | 4 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAR008W | SEN34 | 0 | 4 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAR009C | unknown_93 | 0 | 0 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAR010C | unknown_94 | 0 | 4 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAR014C | BUD14 | 0 | 6 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAR015W | ADE1 | 0 | 6 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAR018C | KIN3 | 0 | 5 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAR019W-A | unknown_100 | 0 | 1 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAR019C | CDC15 | 0 | 0 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAR020C | PAU7 | 0 | 2 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAR023C | unknown_102 | 0 | 11 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAR027W | UIP3 | 0 | 6 | 103,922 | 7,717 | 0 | 1 | 1 |
344 | YAR028W | unknown_106 | 0 | 4 | 103,922 | 7,717 | 0 | 1 | 1 |
Calling Cards
This is data produced in both the Brent Lab and Mitra Lab at Washington University
This repo provides 2 dataset and associated metadata:
- annotated_features: This data scores promoter regions associated with the nearest gene
- genome_map: The binding location data in qbed format
In the annotated features, in order to get the analysis set (you can use duckdb directory instead
of tfbpapi -- see the usage section below):
import pandas as pd
from tfbpapi.HfQueryAPI import HfQueryAPI
# Initialize the Hugging Face query API with the calling cards dataset
callingcards_hf = HfQueryAPI(
repo_id="BrentLab/callingcards",
repo_type="dataset"
)
# Set a filter to only include records where data quality passes QC
callingcards_hf.set_filter("annotated_features", data_usable="pass")
# Query all columns from the annotated_features table
# Returns the data as a pandas DataFrame
callingcards_data = callingcards_hf.query(
"SELECT * FROM annotated_features",
"annotated_features"
)
analysis_data = (
callingcards_data
.assign(
# Create a flag: does this regulator have any composite binding?
has_composite = lambda df: df.groupby('regulator_locus_tag')['composite_binding']
.transform(lambda x: x.notna().any())
)
.query(
# If composite exists for this regulator, require composite to be non-null
# Otherwise, require single_binding to be non-null
'(has_composite & composite_binding.notna()) | '
'(~has_composite & single_binding.notna())'
)
.drop(columns=['has_composite']) # Remove the helper column
)
Usage
The python package tfbpapi provides an interface to this data which eases
examining the datasets, field definitions and other operations. You may also
download the parquet datasets directly from hugging face by clicking on
"Files and Versions", or by using the huggingface_cli and duckdb directly.
In both cases, this provides a method of retrieving dataset and field definitions.
tfbpapi
After installing tfbpapi, you can adapt this tutorial in order to explore the contents of this repository.
huggingface_cli/duckdb
You can retrieves and displays the file paths for each configuration of the "BrentLab/callingcards" dataset from Hugging Face Hub.
from huggingface_hub import ModelCard
from pprint import pprint
card = ModelCard.load("BrentLab/callingcards", repo_type="dataset")
# cast to dict
card_dict = card.data.to_dict()
# Get partition information
dataset_paths_dict = {d.get("config_name"): d.get("data_files")[0].get("path") for d in card_dict.get("configs")}
pprint(dataset_paths_dict)
The entire repository is large. It may be preferable to only retrieve specific files or partitions. You can use the metadata files to choose which files to pull.
from huggingface_hub import snapshot_download
import duckdb
import os
# Download only the metadata first
repo_path = snapshot_download(
repo_id="BrentLab/callingcards",
repo_type="dataset",
allow_patterns="annotated_features_meta.parquet"
)
dataset_path = os.path.join(repo_path, "annotated_features_meta.parquet")
conn = duckdb.connect()
meta_res = conn.execute("SELECT * FROM read_parquet(?) LIMIT 10", [dataset_path]).df()
print(meta_res)
We might choose to take a look at the file with id = 1:
# Download only a specific sample's genome coverage data
repo_path = snapshot_download(
repo_id="BrentLab/callingcards",
repo_type="dataset",
allow_patterns="annotated_features/id=1/*.parquet"
)
# Query the specific partition
dataset_path = os.path.join(repo_path, "annotated_features")
result = conn.execute("SELECT * FROM read_parquet(?) LIMIT 10",
[f"{dataset_path}/**/*.parquet"]).df()
print(result)
If you wish to pull the entire repo, due to its size you may need to use an authentication token. If you do not have one, try omitting the token related code below and see if it works. Else, create a token and provide it like so:
repo_id = "BrentLab/callingcards"
hf_token = os.getenv("HF_TOKEN")
# Download entire repo to local directory
repo_path = snapshot_download(
repo_id=repo_id,
repo_type="dataset",
token=hf_token
)
print(f"\n✓ Repository downloaded to: {repo_path}")
# Construct path to the annotated_features_meta parquet file
parquet_path = os.path.join(repo_path, "annotated_features_meta.parquet")
print(f"✓ Parquet file at: {parquet_path}")
- Downloads last month
- 318