-
Notifications
You must be signed in to change notification settings - Fork 0
Predictors cleanup #121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
stephaniesamm
wants to merge
14
commits into
main
Choose a base branch
from
predictors_cleanup
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Predictors cleanup #121
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
9df5006
Directing all logging to gitignored data/predictions/<predictor>/, ex…
stephaniesamm 91a2599
Refactor TS pipeline for standardized output paths and logging; updat…
stephaniesamm 8fbf33d
Refactor resource paths in miRDB miRTarget pipeline.
stephaniesamm 1b6ad07
Refactor: centralise shared predictor resources.
stephaniesamm ab4f7fc
Refactor: flatten predictor-specific caches.
stephaniesamm 6bf6d18
Docs: explain shared resource cache.
stephaniesamm 22239de
Refactor: harmonize predictor pipeline CLI.
stephaniesamm 1f01a37
Update gitignore; reran all predictor pipelines.
stephaniesamm db2c14b
Updated gitignore.
stephaniesamm ee42a8c
Removed absolute paths from tracking.
stephaniesamm f7049fa
Harmonize logging for targetscan.
stephaniesamm 5f2b7bc
mirbind2 scores: lower is stronger.
stephaniesamm 22eb1f1
Updated Zenodo DOI to new version. Updated mirna expt info TSV.
stephaniesamm da6830d
Updated TSV: swapped GSE179399 for GSE118315.
stephaniesamm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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,29 @@ | ||
| # Common Resources | ||
|
|
||
| This directory contains external biological resources shared by multiple standardized predictor | ||
| pipelines and the benchmark. | ||
|
|
||
| The downloaded resource files are not tracked by Git. A pipeline or benchmark command downloads a | ||
| resource automatically when it is first required, then subsequent runs and other pipelines reuse | ||
| the cached copy. | ||
|
|
||
| Expected directory structure: | ||
|
|
||
| ```text | ||
| data/common_resources/ | ||
| ├── README.md | ||
| ├── mirbase/ | ||
| │ └── mature.fa | ||
| └── ensembl/ | ||
| ├── Homo_sapiens.GRCh38.115.gtf.gz | ||
| └── protein_coding_gene_ids.txt | ||
| ``` | ||
|
|
||
| - `mirbase/mature.fa` is the miRBase 22.1 mature-miRNA FASTA used by all standardized predictor | ||
| pipelines. | ||
| - `ensembl/Homo_sapiens.GRCh38.115.gtf.gz` is the Ensembl release 115 annotation shared by | ||
| microT-CNN, miRAW, TargetScan, and protein-coding benchmark filtering. | ||
| - `ensembl/protein_coding_gene_ids.txt` is derived from the shared GTF and cached by the benchmark. | ||
|
|
||
| Deleting any downloaded file is safe; it will be downloaded or regenerated the next time it is | ||
| needed. |
This file contains hidden or 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,22 @@ | ||
| 2026-07-27 17:01:24,871 INFO pipeline: Starting microT-CNN standardization pipeline | ||
| 2026-07-27 17:01:24,871 INFO pipeline: Step 1/7: Resolve raw microT-CNN predictions and external resources | ||
| 2026-07-27 17:01:24,872 INFO utils: Downloading miRBase mature.fa resource: data/common_resources/mirbase/mature.fa | ||
| 2026-07-27 17:01:26,166 INFO utils: Saved miRBase mature.fa resource: data/common_resources/mirbase/mature.fa | ||
| 2026-07-27 17:01:26,167 INFO utils: Downloading microT-CNN all-score prediction file: pipelines/standardized_predictors/microt_cnn/data/microT_CNN_prediction_result_human_all_scores_gene_level.tsv.gz | ||
| 2026-07-27 17:02:41,903 INFO utils: Saved microT-CNN all-score prediction file: pipelines/standardized_predictors/microt_cnn/data/microT_CNN_prediction_result_human_all_scores_gene_level.tsv.gz | ||
| 2026-07-27 17:02:41,906 INFO pipeline: Step 2/7: Load raw microT-CNN predictions | ||
| 2026-07-27 17:03:08,473 INFO pipeline: Step 3/7: Create miRNA and transcript mapping resources | ||
| 2026-07-27 17:03:08,495 INFO utils: Downloading Ensembl v115 GTF resource: data/common_resources/ensembl/Homo_sapiens.GRCh38.115.gtf.gz | ||
| 2026-07-27 17:03:23,203 INFO utils: Saved Ensembl v115 GTF resource: data/common_resources/ensembl/Homo_sapiens.GRCh38.115.gtf.gz | ||
| 2026-07-27 17:03:40,133 INFO utils: Built Ensembl transcript-to-gene cache from GTF: transcript_rows=509650 | mapped=509650 | output=pipelines/standardized_predictors/microt_cnn/resources/ensembl115_tx2gene.tsv.gz | ||
| 2026-07-27 17:03:40,133 INFO pipeline: Step 4/7: Map prediction miRNA names to MIMAT IDs | ||
| 2026-07-27 17:03:48,679 INFO utils: Drop prediction rows with miRNA names that cannot map to MIMAT IDs: 48281464 -> 48281464 rows | ||
| 2026-07-27 17:03:49,284 INFO pipeline: Step 5/7: Map microT-CNN Ensembl transcript IDs to Ensembl gene IDs | ||
| 2026-07-27 17:04:22,975 INFO utils: Drop prediction rows with Ensembl transcripts that cannot map to genes: 48281464 -> 48281464 rows | ||
| 2026-07-27 17:04:23,770 INFO pipeline: Step 6/7: Build standardized output columns | ||
| 2026-07-27 17:04:32,652 INFO utils: Drop prediction rows with non-numeric scores: 48281464 -> 48281464 rows | ||
| 2026-07-27 17:05:06,643 INFO utils: Collapse transcript rows to one row per Ensembl gene-miRNA pair: 48281464 -> 48281464 rows | ||
| 2026-07-27 17:05:06,948 INFO pipeline: Step 7/7: Validate and write standardized output table | ||
| 2026-07-27 17:06:41,085 INFO pipeline: Output written to: data/predictions/microt_cnn/microt_cnn_standardized.tsv | ||
| 2026-07-27 17:06:41,085 INFO pipeline: Rows written: 48281464 | ||
| 2026-07-27 17:06:41,085 INFO pipeline: Relative output path: data/predictions/microt_cnn/microt_cnn_standardized.tsv |
This file contains hidden or 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,27 @@ | ||
| 2026-07-27 17:16:41,160 INFO miraw_pipeline: Starting miRAW standardization pipeline | ||
| 2026-07-27 17:16:41,160 INFO miraw_pipeline: Step 1/8: Download or reuse raw site-level miRAW predictions | ||
| 2026-07-27 17:16:41,533 INFO miraw_utils: Downloading miRAW predictions from DOI 10.6084/m9.figshare.32982218: pipelines/standardized_predictors/miraw/data/helios_summary.tsv.gz | ||
| 2026-07-27 17:17:30,976 INFO miraw_utils: Saved miRAW predictions from DOI 10.6084/m9.figshare.32982218: pipelines/standardized_predictors/miraw/data/helios_summary.tsv.gz (713928894 bytes) | ||
| 2026-07-27 17:17:30,980 INFO miraw_pipeline: Step 2/8: Resolve miRBase 22.1 and Ensembl release 115 resources | ||
| 2026-07-27 17:17:30,980 INFO miraw_utils: Using cached miRBase 22.1 mature.fa resource: data/common_resources/mirbase/mature.fa | ||
| 2026-07-27 17:17:30,981 INFO miraw_utils: Using cached Ensembl release 115 Homo sapiens GTF: data/common_resources/ensembl/Homo_sapiens.GRCh38.115.gtf.gz | ||
| 2026-07-27 17:17:30,981 INFO miraw_pipeline: Step 3/8: Load and validate raw miRAW prediction rows | ||
| 2026-07-27 17:19:40,927 INFO miraw_utils: Loaded 49223901 miRAW prediction rows generated against Ensembl release 112 and miRBase release 22.1 from pipelines/standardized_predictors/miraw/data/helios_summary.tsv.gz | ||
| 2026-07-27 17:20:29,363 INFO miraw_utils: Validate parsed miRAW rows: 49223901 -> 49223901 rows | ||
| 2026-07-27 17:20:52,821 INFO miraw_utils: Drop exact duplicate parsed miRAW rows: 49223901 -> 49223901 rows | ||
| 2026-07-27 17:20:56,741 INFO miraw_pipeline: Step 4/8: Build miRNA-name-to-MIMAT mapping from miRBase 22.1 | ||
| 2026-07-27 17:20:56,766 INFO miraw_utils: Loaded 2656 unique human miRNA-name-to-MIMAT mappings from 2656 miRBase 22.1 FASTA headers | ||
| 2026-07-27 17:20:56,767 INFO miraw_pipeline: Step 5/8: Build ENSG-to-gene-name mapping from Ensembl release 115 | ||
| 2026-07-27 17:21:08,297 INFO miraw_utils: Loaded 43048 Ensembl release 115 ENSG-to-gene-name mappings from 78899 gene rows; invalid_ids=0, missing_names=35851, conflicts=0 | ||
| 2026-07-27 17:21:08,297 INFO miraw_pipeline: Step 6/8: Retain and annotate miRNAs present in miRBase 22.1 | ||
| 2026-07-27 17:21:14,931 INFO miraw_utils: Retain miRNAs present in miRBase release 22.1: 49223901 -> 49223901 rows | ||
| 2026-07-27 17:21:26,274 INFO miraw_pipeline: Step 7/8: Retain and annotate genes present in Ensembl release 115 | ||
| 2026-07-27 17:21:40,507 INFO miraw_utils: Retain genes present in Ensembl release 115: 49223901 -> 48041969 rows | ||
| 2026-07-27 17:21:40,507 INFO miraw_utils: Dropped 467 unique Ensembl release 112 source IDs absent from release 115; first examples=['ENSG00000100101', 'ENSG00000111780', 'ENSG00000124593', 'ENSG00000125695', 'ENSG00000131152', 'ENSG00000139656', 'ENSG00000141979', 'ENSG00000142539', 'ENSG00000148362', 'ENSG00000159239'] | ||
| 2026-07-27 17:21:48,082 INFO miraw_pipeline: Step 8/8: Finalize one highest-scoring standardized row per Ensembl_ID-miRNA_ID pair | ||
| 2026-07-27 17:22:36,230 INFO miraw_utils: Validate standardized miRAW identifiers and values: 48041969 -> 48041969 rows | ||
| 2026-07-27 17:23:08,797 INFO miraw_utils: Finalize one highest-scoring row per Ensembl_ID-miRNA_ID pair: 48041969 -> 48041969 rows | ||
| 2026-07-27 17:23:15,843 INFO miraw_utils: Final miRAW table uses Ensembl release 115 gene IDs/names and miRBase release 22.1 mature miRNA names/accessions | ||
| 2026-07-27 17:24:55,586 INFO miraw_pipeline: Output written to: data/predictions/miraw/miraw_standardized.tsv | ||
| 2026-07-27 17:24:55,587 INFO miraw_pipeline: Rows written: 48041969 | ||
| 2026-07-27 17:24:55,591 INFO miraw_pipeline: Relative output path: data/predictions/miraw/miraw_standardized.tsv |
This file contains hidden or 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,19 @@ | ||
| 2026-07-27 17:25:38,489 INFO pipeline: Starting miRBind2 standardization pipeline | ||
| 2026-07-27 17:25:38,489 INFO pipeline: Step 1/6: Download or resolve shared miRBase and raw miRBind2 predictions | ||
| 2026-07-27 17:25:38,489 INFO utils: Using cached miRBase mature.fa resource: data/common_resources/mirbase/mature.fa | ||
| 2026-07-27 17:25:38,490 INFO utils: Downloading miRBind2 raw prediction file: pipelines/standardized_predictors/mirbind2/data/3utrs_mirbind2_predictions.tsv.gz | ||
| 2026-07-27 17:26:29,909 INFO utils: Saved miRBind2 raw prediction file: pipelines/standardized_predictors/mirbind2/data/3utrs_mirbind2_predictions.tsv.gz | ||
| 2026-07-27 17:26:29,933 INFO pipeline: Step 2/6: Load raw miRBind2 predictions | ||
| 2026-07-27 17:28:08,400 INFO utils: Drop invalid raw miRBind2 prediction rows: 50171840 -> 50171840 rows | ||
| 2026-07-27 17:28:40,128 INFO utils: Drop exact duplicate raw miRBind2 prediction rows: 50171840 -> 50171840 rows | ||
| 2026-07-27 17:28:40,564 INFO pipeline: Step 3/6: Create miRNA name-to-MIMAT mapping from miRBase mature.fa | ||
| 2026-07-27 17:28:40,588 INFO utils: Loaded 2656 human miRNA name-to-MIMAT mappings from miRBase 22.1 | ||
| 2026-07-27 17:28:40,589 INFO pipeline: Step 4/6: Annotate raw miRNA names to MIMAT IDs | ||
| 2026-07-27 17:28:49,058 INFO utils: Drop prediction rows with miRNA names that cannot map to MIMAT IDs: 50171840 -> 50171840 rows | ||
| 2026-07-27 17:28:50,017 INFO pipeline: Step 5/6: Build standardized output columns | ||
| 2026-07-27 17:31:20,610 INFO utils: Drop standardized rows with invalid canonical values or scores: 50171840 -> 50171840 rows | ||
| 2026-07-27 17:31:56,980 INFO utils: Drop duplicate standardized Ensembl_ID-miRNA_ID pairs after MIMAT mapping: 50171840 -> 50171840 rows | ||
| 2026-07-27 17:31:57,217 INFO pipeline: Step 6/6: Validate and write standardized output table | ||
| 2026-07-27 17:33:19,214 INFO pipeline: Output written to: data/predictions/mirbind2/mirbind2_standardized.tsv | ||
| 2026-07-27 17:33:19,230 INFO pipeline: Rows written: 50171840 | ||
| 2026-07-27 17:33:19,232 INFO pipeline: Relative output path: data/predictions/mirbind2/mirbind2_standardized.tsv |
34 changes: 34 additions & 0 deletions
34
data/predictions/mirdb_mirtarget/mirdb_mirtarget_pipeline.log
This file contains hidden or 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,34 @@ | ||
| 2026-07-27 17:34:39,690 INFO pipeline: Starting miRDB standardization pipeline | ||
| 2026-07-27 17:34:39,690 INFO pipeline: Step 1/9: Resolve raw miRDB predictions and external miRBase/BioMart resources | ||
| 2026-07-27 17:34:39,690 INFO utils: Using cached miRBase mature.fa resource: data/common_resources/mirbase/mature.fa | ||
| 2026-07-27 17:34:39,691 INFO utils: Downloading BioMart NCBI Gene ID/RefSeq-to-Ensembl mapping table: pipelines/standardized_predictors/mirdb_mirtarget/resources/hsapiens_ncbi_gene_id_refseq_to_ensembl.tsv | ||
| 2026-07-27 17:36:14,426 INFO utils: Saved BioMart NCBI Gene ID/RefSeq-to-Ensembl mapping table: pipelines/standardized_predictors/mirdb_mirtarget/resources/hsapiens_ncbi_gene_id_refseq_to_ensembl.tsv | ||
| 2026-07-27 17:36:14,428 INFO utils: Downloading miRDB v6.0 all-score prediction file: pipelines/standardized_predictors/mirdb_mirtarget/data/miRDB_v6.0_prediction_result_human_all_scores.txt.gz | ||
| 2026-07-27 17:36:21,741 INFO utils: Saved miRDB v6.0 all-score prediction file: pipelines/standardized_predictors/mirdb_mirtarget/data/miRDB_v6.0_prediction_result_human_all_scores.txt.gz | ||
| 2026-07-27 17:36:21,765 INFO pipeline: Step 2/9: Load raw miRDB predictions | ||
| 2026-07-27 17:36:38,706 INFO utils: Drop invalid raw miRDB prediction rows: 8255691 -> 8255691 rows | ||
| 2026-07-27 17:36:42,616 INFO utils: Drop exact duplicate raw miRDB prediction rows: 8255691 -> 8255691 rows | ||
| 2026-07-27 17:36:44,848 INFO utils: Check raw miRDB rows for duplicate miRNA-RefSeq transcript prediction pairs: 0 duplicate pairs involving 0 rows | ||
| 2026-07-27 17:36:50,184 INFO utils: Check raw miRDB rows for duplicate miRNA-NCBI Gene ID prediction pairs from raw column 4: 0 duplicate pairs involving 0 rows | ||
| 2026-07-27 17:36:53,372 INFO pipeline: Step 3/9: Create miRNA name-to-MIMAT mapping from miRBase mature.fa | ||
| 2026-07-27 17:36:53,394 INFO pipeline: Step 4/9: Create NCBI Gene ID-to-Ensembl gene mapping from BioMart table | ||
| 2026-07-27 17:36:53,633 INFO utils: Filter NCBI Gene ID-to-Ensembl mapping table to drop invalid rows: 168112 -> 110750 rows | ||
| 2026-07-27 17:36:53,661 INFO utils: Filter NCBI Gene ID-to-Ensembl mapping table to drop exact duplicate rows: 110750 -> 34460 rows | ||
| 2026-07-27 17:36:53,677 INFO utils: Filter NCBI Gene ID-to-Ensembl mapping table to drop NCBI Gene IDs with conflicting Ensembl gene mappings: 34460 -> 23869 rows | ||
| 2026-07-27 17:36:54,116 INFO pipeline: Step 5/9: Create RefSeq-to-Ensembl fallback gene mapping from BioMart table | ||
| 2026-07-27 17:36:54,349 INFO utils: Filter RefSeq-to-Ensembl mapping table to drop invalid rows: 168112 -> 79730 rows | ||
| 2026-07-27 17:36:54,376 INFO utils: Filter RefSeq-to-Ensembl mapping table to drop exact duplicate rows: 79730 -> 74568 rows | ||
| 2026-07-27 17:36:54,418 INFO utils: Filter RefSeq-to-Ensembl mapping table to drop RefSeq IDs with conflicting Ensembl gene mappings: 74568 -> 63157 rows | ||
| 2026-07-27 17:36:55,571 INFO pipeline: Step 6/9: Map prediction miRNA names to MIMAT IDs | ||
| 2026-07-27 17:36:56,819 INFO utils: Drop prediction rows with miRNA names that cannot map to MIMAT IDs: 8255691 -> 8255691 rows | ||
| 2026-07-27 17:36:56,988 INFO pipeline: Step 7/9: Map prediction NCBI Gene IDs to Ensembl gene IDs and gene names | ||
| 2026-07-27 17:37:00,426 INFO utils: Rows left for RefSeq fallback after NCBI Gene ID mapping: 8255691 -> 489329 rows | ||
| 2026-07-27 17:37:00,531 INFO pipeline: Step 8/9: Map remaining prediction RefSeq transcript IDs to Ensembl gene IDs and gene names | ||
| 2026-07-27 17:37:02,250 INFO utils: Rows still unmapped after RefSeq fallback: 489329 -> 451230 rows | ||
| 2026-07-27 17:37:03,225 INFO utils: Drop prediction rows that cannot map to Ensembl genes after NCBI Gene ID mapping and RefSeq fallback: 8255691 -> 7804461 rows | ||
| 2026-07-27 17:37:03,458 INFO pipeline: Step 9/9: Build, validate, and write standardized output table | ||
| 2026-07-27 17:37:11,369 INFO utils: Drop final Ensembl_ID-miRNA_ID pairs with conflicting scores after NCBI/RefSeq-to-gene mapping: 7804461 -> 7799023 rows | ||
| 2026-07-27 17:37:13,648 INFO utils: Drop duplicate final Ensembl_ID-miRNA_ID pairs with identical scores after NCBI/RefSeq-to-gene mapping: 7799023 -> 7795525 rows | ||
| 2026-07-27 17:37:27,314 INFO pipeline: Output written to: data/predictions/mirdb_mirtarget/mirdb_mirtarget_standardized.tsv | ||
| 2026-07-27 17:37:27,315 INFO pipeline: Rows written: 7795525 | ||
| 2026-07-27 17:37:27,315 INFO pipeline: Relative output path: data/predictions/mirdb_mirtarget/mirdb_mirtarget_standardized.tsv |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.