Changes in tensorqtl_postprocessor.R#406
Merged
gaow merged 1 commit intoStatFunGen:mainfrom Jul 25, 2025
Merged
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Changes in
tensorqtl_postprocessor.RChromosome and position extraction
If
chromandposcolumns are missing in the cis pair files (e.g., in Xiaoling's data), these values are now automatically extracted from thevariant_idcolumn.Flexible file reading
Optimized file I/O to handle different formats:
.gzand.parquetformatsRefined q-value recalculation logic
-qvalue-patternis missing in cis pair files:molecular_id_col-additional_pvalue_colsis provided, also compute q-values for those columns.qvalue_computed.tsv.gz-pvalue-threshold < 1, filter based on the thresholdgc()to clean up memory after processing each chromosomeMWE and message:
INFO: Running default:
Archive setting - input: 'False', converted: FALSE
Extracting 'chrom' and 'pos' from 'variant_id' column
Successfully extracted chrom and pos for 429 variants
Found 'tests_emt' column in regional data, converting to n_variants
workdir is /mnt/vast/hpc/homes/al4225/xqtl_data/cis_association_xiaoling/ROSMAP/eQTL/DLPFC/interaction/age_mwe
Loaded gene coordinates with 60668 entries
Computing q-values for QTL files...
Q-value column not found, computing q-values...
Processing 2 files with main p-value column: pval_gi → qval_gi
Additional p-value columns: pval_g, pval_i → qval_g, qval_i
Will apply p-value filter < 0.05 during processing to save memory
Processing file 1/2: age_int_21.cis_qtl_pairs.21.parquet
Extracting 'chrom' and 'pos' from 'variant_id' column
Successfully extracted chrom and pos for 621590 variants
Computed pval_g → qval_g for age_int_21.cis_qtl_pairs.21.parquet
Computed pval_i → qval_i for age_int_21.cis_qtl_pairs.21.parquet
Saving computed q-values for file: age_int_21.cis_qtl_pairs.21.parquet
Saved complete q-value computed file: age_int_21.cis_qtl_pairs.21.qvalue_computed.tsv.gz
Applied p-value filter: 621590 → 31172 rows
Processing file 2/2: age_int_22.cis_qtl_pairs.22.parquet
Extracting 'chrom' and 'pos' from 'variant_id' column
Successfully extracted chrom and pos for 1647452 variants
Computed pval_g → qval_g for age_int_22.cis_qtl_pairs.22.parquet
Computed pval_i → qval_i for age_int_22.cis_qtl_pairs.22.parquet
Saving computed q-values for file: age_int_22.cis_qtl_pairs.22.parquet
Saved complete q-value computed file: age_int_22.cis_qtl_pairs.22.qvalue_computed.tsv.gz
Applied p-value filter: 1647452 → 81837 rows
Using pre-computed and pre-filtered q-value data
Column 'chrom' already exists, no extraction needed
Combined data from 2 files: 113009 total rows
Applying Bonferroni local adjustment (filter applied: No)...
Original data: 113009 rows (avg n_variants per event: 1513)
Applying both FDR and qvalue global adjustments...
Identifying significant SNPs using Bonferroni adjusted p-value thresholds...
No significant events identified at fdr_bonferroni_min threshold 0.25
Identifying significant SNPs using q-value per event method...
Using Bonferroni-based q_bonferroni_min for significant events in qvalue-based QTL identification
No significant events found using q_bonferroni_min threshold 0.25
There were 50 or more warnings (use warnings() to see the first 50)
INFO: default is completed.
INFO: default output: /home/al4225/xqtl_data/cis_association_xiaoling/output/DLPFC/interaction/age_mwe/DLPFC_multiple_testing_consolidated.rds
INFO: Workflow default (ID=w3ee5c2d25e3f8458) is executed successfully with 1 completed step.