akshayansamy commited on
Commit
d33226c
·
verified ·
1 Parent(s): aa4a230

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +61 -69
README.md CHANGED
@@ -1,23 +1,13 @@
1
  ---
2
- License: Apache-2.0
3
-
4
- tags:
5
- - biology
6
- - protein
7
- - structure
8
- - PDB
9
- - PISCES
10
- - CullPDB
11
- - sequence
12
- - curation
13
- language: en
14
-
15
  configs:
16
- - config_name: main
17
- data_files: curated_csv/cullpdb_compiled.csv
18
- default: true
19
  - config_name: cullpdb_pc15.0_res0.0-1.0_len40-10000_R0.2_Xray_d2026_01_26_chains281
20
  data_files: curated_csv/subsets/cullpdb_pc15.0_res0.0-1.0_len40-10000_R0.2_Xray_d2026_01_26_chains281.csv
 
 
 
21
  - config_name: cullpdb_pc15.0_res0.0-1.0_noBrks_len40-10000_R0.2_Xray_d2026_01_26_chains267
22
  data_files: curated_csv/subsets/cullpdb_pc15.0_res0.0-1.0_noBrks_len40-10000_R0.2_Xray_d2026_01_26_chains267.csv
23
  - config_name: cullpdb_pc15.0_res0.0-1.2_len40-10000_R0.2_Xray_d2026_01_26_chains785
@@ -500,6 +490,21 @@ configs:
500
  data_files: curated_csv/subsets/cullpdb_pc95.0_res0.0-5.0_len40-10000_R1.0_Xray+Nmr+EM_d2026_01_26_chains79005.csv
501
  - config_name: cullpdb_pc95.0_res0.0-5.0_noBrks_len40-10000_R1.0_Xray+Nmr+EM_d2026_01_26_chains62732
502
  data_files: curated_csv/subsets/cullpdb_pc95.0_res0.0-5.0_noBrks_len40-10000_R1.0_Xray+Nmr+EM_d2026_01_26_chains62732.csv
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
503
  dataset_info:
504
  config_name: main
505
  features:
@@ -533,19 +538,13 @@ dataset_info:
533
  num_rows: 4540884
534
  # Main and index paths; full list of subset paths is in dataset_metadata.json
535
  data_paths:
536
- main_csv: curated_csv/cullpdb_compiled.csv
537
  index_csv: curated_csv/cullpdb_list_fasta_index.csv
538
  full_list_csv: curated_csv/cullpdb_full_compiled_list.csv
539
  subsets_dir: curated_csv/subsets
540
  metadata: curated_csv/dataset_metadata.json
541
  ---
542
 
543
- # Dataset Description
544
-
545
- The PISCES dataset provides curated sets of protein sequences from the Protein Data Bank (PDB) based on user-defined sequence identity and structural quality criteria. PISCES allows users to obtain non-redundant subsets of protein chains by applying filters such as sequence identity, resolution, R-value, chain length, and experiment type (e.g., X-ray, NMR).
546
-
547
- Unlike other culling tools that rely on BLAST or global alignments, PISCES uses PSI-BLAST to create position-specific scoring matrices for more accurate detection of homologous relationships, especially below 40% sequence identity. The server supports culling of:
548
-
549
  # PISCES-CulledPDB — Curated chain CSVs
550
 
551
  Curated protein chain tables derived from PISCES/CullPDB-style lists and FASTA files. One row per chain with sequence, metadata, and curation parameters.
@@ -554,46 +553,18 @@ Curated protein chain tables derived from PISCES/CullPDB-style lists and FASTA f
554
 
555
  On the dataset page, use the **subset dropdown** above the table to switch between the main combined table and any of the **242** curation subsets (same columns, different filters).
556
 
557
-
558
- PISCES was created to provide high-quality, non-redundant sets of protein chains for computational analysis. The goal is to maximize structural reliability while minimizing sequence redundancy.
559
-
560
- **Source Data**
561
-
562
- Protein sequences from the RCSB PDB (mmCIF format, Uniformity Project).
563
-
564
- Sequence identity matrices generated using PSI-BLAST against the non-redundant protein database.
565
-
566
- PISCES: A Protein Sequence Culling Server https://dunbrack.fccc.edu/pisces/
567
-
568
- @article{wang2003pisces,
569
- title={PISCES: a protein sequence culling server},
570
- author={Wang, Guoying and Dunbrack, Roland L. Jr.},
571
- journal={Bioinformatics},
572
- volume={19},
573
- number={12},
574
- pages={1589--1591},
575
- year={2003},
576
- publisher={Oxford University Press}
577
- }
578
-
579
- Authors contact
580
- Qifang Xu: Qifang.Xu@fccc.edu
581
- Roland Dunbrack: Roland.Dunbrack@fccc.edu
582
-
583
-
584
- Recurated in Hugging Face by: Akshaya Narayanasamy (akshayanarayanasamy[at]gmail.com)
585
  ## Dataset Summary
586
 
587
  | Item | Description |
588
  |------|-------------|
589
- | **Main CSV** | `curated_csv/cullpdb_compiled.csv` — single table with **4,540,884** chains (one row per chain). |
590
  | **Subset CSVs** | `curated_csv/subsets/*.csv` — **242** files, one per curation subset (same columns as main). |
591
  | **Index** | `curated_csv/cullpdb_list_fasta_index.csv` — **242** rows; maps subset basenames to list/FASTA paths and parameters. |
592
 
593
  ## Data paths (metadata)
594
 
595
  **Main and index files:**
596
- - `curated_csv/cullpdb_compiled.csv` — master chain table
597
  - `curated_csv/cullpdb_list_fasta_index.csv` — subset index
598
  - `curated_csv/cullpdb_full_compiled_list.csv` — full compiled list
599
  - `curated_csv/subsets/` — directory containing one CSV per subset (**242** files)
@@ -604,21 +575,21 @@ Recurated in Hugging Face by: Akshaya Narayanasamy (akshayanarayanasamy[at]gmail
604
 
605
  Each chain row has the following columns:
606
 
607
- | Column |Description |
608
- |--------|-------------|
609
- | **pdb_chain** |PDB chain ID (e.g. 1ABC_A) |
610
- | **pdb** | PDB ID (first 4 chars) |
611
- | **chain** |Chain ID |
612
- | **sequence** |Amino acid sequence (one-letter) |
613
- | **len** |Sequence length |
614
- | **method** |Experimental method (e.g. XRAY, NMR) |
615
- | **resolution** |Resolution in Å (per structure) |
616
- | **rfac** |R-factor |
617
- | **freerfac** |Free R-factor |
618
- | **pc** |Sequence identity cutoff % used for this subset |
619
- | **no_breaks** | Whether chain has no breaks (yes/no) |
620
- | **R** |R-factor cutoff used for this subset |
621
- | **source_list** |Subset list basename (identifies curation parameters) |
622
 
623
  Subset CSVs use the same schema; each file corresponds to one row in the index (one set of parameters: pc, resolution range, no_breaks, R, Nmethods).
624
 
@@ -652,12 +623,14 @@ Subset list basenames follow:
652
 
653
  ## Usage
654
 
 
 
655
  ```python
656
  from huggingface_hub import hf_hub_download
657
  import pandas as pd
658
 
659
  # Download main CSV (large)
660
- path = hf_hub_download(repo_id="PRMegathon26/PISCES-CulledPDB", filename="curated_csv/cullpdb_compiled.csv", repo_type="dataset")
661
  df = pd.read_csv(path)
662
 
663
  # Or load a single subset
@@ -665,9 +638,28 @@ path = hf_hub_download(repo_id="PRMegathon26/PISCES-CulledPDB", filename="curate
665
  df = pd.read_csv(path)
666
  ```
667
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
668
  ## Curation workflow
669
 
670
  1. **Index**: List/FASTA pairs scanned → `cullpdb_list_fasta_index.csv`
671
  2. **Build**: For each index row, list and FASTA aligned 1:1 → one chain CSV per subset + combined master CSV
672
  3. **Filter/visualize**: Optional filtering and summary figures from the master CSV
673
 
 
 
 
 
1
  ---
2
+ # Dataset Viewer: configs first so the viewer shows the table and subset dropdown
3
+ viewer: true
4
+ # Dataset Viewer dropdown; default = small subset so preview loads (main has 4.5M rows)
 
 
 
 
 
 
 
 
 
 
5
  configs:
 
 
 
6
  - config_name: cullpdb_pc15.0_res0.0-1.0_len40-10000_R0.2_Xray_d2026_01_26_chains281
7
  data_files: curated_csv/subsets/cullpdb_pc15.0_res0.0-1.0_len40-10000_R0.2_Xray_d2026_01_26_chains281.csv
8
+ default: true
9
+ - config_name: main
10
+ data_files: curated_csv/cullpdb_combined_chains.csv
11
  - config_name: cullpdb_pc15.0_res0.0-1.0_noBrks_len40-10000_R0.2_Xray_d2026_01_26_chains267
12
  data_files: curated_csv/subsets/cullpdb_pc15.0_res0.0-1.0_noBrks_len40-10000_R0.2_Xray_d2026_01_26_chains267.csv
13
  - config_name: cullpdb_pc15.0_res0.0-1.2_len40-10000_R0.2_Xray_d2026_01_26_chains785
 
490
  data_files: curated_csv/subsets/cullpdb_pc95.0_res0.0-5.0_len40-10000_R1.0_Xray+Nmr+EM_d2026_01_26_chains79005.csv
491
  - config_name: cullpdb_pc95.0_res0.0-5.0_noBrks_len40-10000_R1.0_Xray+Nmr+EM_d2026_01_26_chains62732
492
  data_files: curated_csv/subsets/cullpdb_pc95.0_res0.0-5.0_noBrks_len40-10000_R1.0_Xray+Nmr+EM_d2026_01_26_chains62732.csv
493
+ license: cc-by-4.0
494
+ task_categories:
495
+ - other
496
+ tags:
497
+ - biology
498
+ - protein
499
+ - structure
500
+ - PDB
501
+ - PISCES
502
+ - CullPDB
503
+ - sequence
504
+ - curation
505
+ language: en
506
+ size_categories:
507
+ - n>1M
508
  dataset_info:
509
  config_name: main
510
  features:
 
538
  num_rows: 4540884
539
  # Main and index paths; full list of subset paths is in dataset_metadata.json
540
  data_paths:
541
+ main_csv: curated_csv/cullpdb_combined_chains.csv
542
  index_csv: curated_csv/cullpdb_list_fasta_index.csv
543
  full_list_csv: curated_csv/cullpdb_full_compiled_list.csv
544
  subsets_dir: curated_csv/subsets
545
  metadata: curated_csv/dataset_metadata.json
546
  ---
547
 
 
 
 
 
 
 
548
  # PISCES-CulledPDB — Curated chain CSVs
549
 
550
  Curated protein chain tables derived from PISCES/CullPDB-style lists and FASTA files. One row per chain with sequence, metadata, and curation parameters.
 
553
 
554
  On the dataset page, use the **subset dropdown** above the table to switch between the main combined table and any of the **242** curation subsets (same columns, different filters).
555
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
556
  ## Dataset Summary
557
 
558
  | Item | Description |
559
  |------|-------------|
560
+ | **Main CSV** | `curated_csv/cullpdb_combined_chains.csv` — single table with **4,540,884** chains (one row per chain). |
561
  | **Subset CSVs** | `curated_csv/subsets/*.csv` — **242** files, one per curation subset (same columns as main). |
562
  | **Index** | `curated_csv/cullpdb_list_fasta_index.csv` — **242** rows; maps subset basenames to list/FASTA paths and parameters. |
563
 
564
  ## Data paths (metadata)
565
 
566
  **Main and index files:**
567
+ - `curated_csv/cullpdb_combined_chains.csv` — master chain table
568
  - `curated_csv/cullpdb_list_fasta_index.csv` — subset index
569
  - `curated_csv/cullpdb_full_compiled_list.csv` — full compiled list
570
  - `curated_csv/subsets/` — directory containing one CSV per subset (**242** files)
 
575
 
576
  Each chain row has the following columns:
577
 
578
+ | Column | Type | Description |
579
+ |--------|------|-------------|
580
+ | **pdb_chain** | string/number | PDB chain ID (e.g. 1ABC_A) |
581
+ | **pdb** | string/number | PDB ID (first 4 chars) |
582
+ | **chain** | string/number | Chain ID |
583
+ | **sequence** | string/number | Amino acid sequence (one-letter) |
584
+ | **len** | string/number | Sequence length |
585
+ | **method** | string/number | Experimental method (e.g. XRAY, NMR) |
586
+ | **resolution** | string/number | Resolution in Å (per structure) |
587
+ | **rfac** | string/number | R-factor |
588
+ | **freerfac** | string/number | Free R-factor |
589
+ | **pc** | string/number | Sequence identity cutoff % used for this subset |
590
+ | **no_breaks** | string/number | Whether chain has no breaks (yes/no) |
591
+ | **R** | string/number | R-factor cutoff used for this subset |
592
+ | **source_list** | string/number | Subset list basename (identifies curation parameters) |
593
 
594
  Subset CSVs use the same schema; each file corresponds to one row in the index (one set of parameters: pc, resolution range, no_breaks, R, Nmethods).
595
 
 
623
 
624
  ## Usage
625
 
626
+ ### Load in Python
627
+
628
  ```python
629
  from huggingface_hub import hf_hub_download
630
  import pandas as pd
631
 
632
  # Download main CSV (large)
633
+ path = hf_hub_download(repo_id="PRMegathon26/PISCES-CulledPDB", filename="curated_csv/cullpdb_combined_chains.csv", repo_type="dataset")
634
  df = pd.read_csv(path)
635
 
636
  # Or load a single subset
 
638
  df = pd.read_csv(path)
639
  ```
640
 
641
+ ### Filter chains (filter_chains_csv.py)
642
+
643
+ After downloading the repo or the main/subset CSVs, run the filter script to build a custom CSV by pc, resolution, no_breaks, R, method, and length:
644
+
645
+ ```bash
646
+ # From the repo root (e.g. after git clone or having curated_csv/ locally)
647
+ python src/filter_chains_csv.py --input curated_csv/cullpdb_combined_chains.csv --output my_filtered.csv \
648
+ --pc 20 --resolution-max 2.0 --no-breaks yes --R 0.25
649
+
650
+ # Or filter a subset directory (merges all subset CSVs then filters)
651
+ python src/filter_chains_csv.py --input curated_csv/subsets --output high_res.csv \
652
+ --resolution-max 1.5 --len-min 100
653
+ ```
654
+
655
+ Options: `--pc`, `--pc-min`, `--pc-max`, `--resolution-min`, `--resolution-max`, `--no-breaks` (yes/no), `--R`, `--method`, `--len-min`, `--len-max`. Omit a filter to leave that dimension unrestricted.
656
+
657
  ## Curation workflow
658
 
659
  1. **Index**: List/FASTA pairs scanned → `cullpdb_list_fasta_index.csv`
660
  2. **Build**: For each index row, list and FASTA aligned 1:1 → one chain CSV per subset + combined master CSV
661
  3. **Filter/visualize**: Optional filtering and summary figures from the master CSV
662
 
663
+ ## License
664
+
665
+ CC BY 4.0 (or as specified in the repo).