You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to annotate finemapping results against brain tissue marks from ROADMAP, but there is this bug at the end of the query
Expected behaviour
2. Reproducible example
Code
(Please add the steps to reproduce the bug here. See here for an intro to making a reproducible example (i.e. reprex) and why they're important! This will help us to help you much faster.)
┌──────────────────────────────────────────┐
│ │
│ )))> 🦇 TRIM22 [locus 1 / 1] 🦇 <((( │
│ │
└──────────────────────────────────────────┘
────────────────────────────────────────────────────────────────────────────────
── Step 1 ▶▶▶ Query 🔎 ─────────────────────────────────────────────────────────
────────────────────────────────────────────────────────────────────────────────
+ Query Method: tabix
Constructing GRanges query using min/max ranges within a single chromosome.
query_dat is already a GRanges object. Returning directly.
========= echotabix::convert =========
Converting full summary stats file to tabix format for fast querying.
Inferred format: 'table'
Explicit format: 'table'
Inferring comment_char from tabular header: 'SNP'
Determining chrom type from file header.
Chromosome format: 1
Detecting column delimiter.
Identified column separator: \t
Sorting rows by coordinates via bash.
Searching for header row with grep.
( grep ^'SNP' .../QC_SNPs_COLMAP.txt; grep
-v ^'SNP' .../QC_SNPs_COLMAP.txt | sort
-k2,2n
-k3,3n ) > .../filedd61f50654_sorted.tsv
Constructing outputs
Using existing bgzipped file: /home/rstudio/echolocatoR/echolocatoR_will/QC_SNPs_COLMAP.txt.bgz
Set force_new=TRUE to override this.
Tabix-indexing file using: Rsamtools
Data successfully converted to bgzip-compressed, tabix-indexed format.
========= echotabix::query =========
query_dat is already a GRanges object. Returning directly.
Inferred format: 'table'
Querying tabular tabix file using: Rsamtools.
Checking query chromosome style is correct.
Chromosome format: 1
Retrieving data.
Converting query results to data.table.
Processing query: 11:4724803-6724803
Adding 'query' column to results.
Retrieved data with 7,013 rows
Saving query ==> /home/rstudio/echolocatoR/echolocatoR_will/RESULTS/GWAS/LID_COX/TRIM22/TRIM22_LID_COX_subset.tsv.gz
+ Query: 7,013 SNPs x 12 columns.
Standardizing summary statistics subset.
Standardizing main column names.
++ Preparing A1,A1 cols
++ Preparing MAF,Freq cols.
++ Removing SNPs with MAF== 0 | NULL | NA or >1
++ Preparing N_cases,N_controls cols.
++ Preparing proportion_cases col.
++ Calculating proportion_cases from N_cases and N_controls.
Loading required namespace: MungeSumstats
Preparing sample size column (N).
Using existing 'N' column.
+ Imputing t-statistic from Effect and StdErr.
+ leadSNP missing. Assigning new one by min p-value.
++ Ensuring Effect,StdErr,P are numeric.
++ Ensuring 1 SNP per row and per genomic coordinate.
++ Removing extra whitespace
+ Standardized query: 7,013 SNPs x 15 columns.
++ Saving standardized query ==> /home/rstudio/echolocatoR/echolocatoR_will/RESULTS/GWAS/LID_COX/TRIM22/TRIM22_LID_COX_subset.tsv.gz
────────────────────────────────────────────────────────────────────────────────
── Step 2 ▶▶▶ Extract Linkage Disequilibrium 🔗 ────────────────────────────────
────────────────────────────────────────────────────────────────────────────────
LD_reference identified as: 1kg.
Previously computed LD_matrix detected. Importing: /home/rstudio/echolocatoR/echolocatoR_will/RESULTS/GWAS/LID_COX/TRIM22/LD/TRIM22.1KGphase3_LD.RDS
LD_reference identified as: r.
Converting obj to sparseMatrix.
+ FILTER:: Filtering by LD features.
────────────────────────────────────────────────────────────────────────────────
── Step 3 ▶▶▶ Filter SNPs 🚰 ───────────────────────────────────────────────────
────────────────────────────────────────────────────────────────────────────────
FILTER:: Filtering by SNP features.
+ FILTER:: Removing SNPs with MAF < 0.001
+ FILTER:: Post-filtered data: 6997 x 15
+ Subsetting LD matrix and dat to common SNPs...
Removing unnamed rows/cols
Replacing NAs with 0
+ LD_matrix = 6997 SNPs.
+ dat = 6997 SNPs.
+ 6997 SNPs in common.
Converting obj to sparseMatrix.
────────────────────────────────────────────────────────────────────────────────
── Step 4 ▶▶▶ Fine-map 🔊 ──────────────────────────────────────────────────────
────────────────────────────────────────────────────────────────────────────────
Gathering method sources.
Gathering method citations.
++ Previously multi-finemapped results identified. Importing: /home/rstudio/echolocatoR/echolocatoR_will/RESULTS/GWAS/LID_COX/TRIM22/Multi-finemap/1KGphase3_LD.Multi-finemap.tsv.gz
+ Fine-mapping with 'FINEMAP, SUSIE' completed:
────────────────────────────────────────────────────────────────────────────────
── Step 5 ▶▶▶ Plot 📈 ──────────────────────────────────────────────────────────
────────────────────────────────────────────────────────────────────────────────
+-------- Locus Plot: TRIM22 --------+
+ support_thresh = 2
+ Calculating mean Posterior Probability (mean.PP)...
+ 2 fine-mapping methods used.
+ 3 Credible Set SNPs identified.
+ 0 Consensus SNPs identified.
+ Filling NAs in CS cols with 0.
+ Filling NAs in PP cols with 0.
LD_matrix detected. Coloring SNPs by LD with lead SNP.
++ echoplot:: GWAS full window track
++ echoplot:: GWAS track
++ echoplot:: Merged fine-mapping track
Melting PP and CS from 3 fine-mapping methods.
++ echoplot:: Adding Gene model track.
Converting dat to GRanges object.
Loading required namespace: EnsDb.Hsapiens.v75
max_transcripts= 1 .
82 transcripts from 82 genes returned.
Loading required namespace: pals
Fetching data...OK
Parsing exons...OK
Defining introns...OK
Defining UTRs...OK
Defining CDS...OK
aggregating...
Done
Constructing graphics...
echoannot:: Plotting ROADMAP annotations.
Converting dat to GRanges object.
+ ROADMAP:: 13 annotation(s) identified that match: brain
Querying subset from Roadmap API: E053 - 1/13
Constructing GRanges query using min/max ranges across one or more chromosomes.
+ as_blocks=TRUE: Will query a single range per chromosome that covers all regions requested (plus anything in between).
Querying subset from Roadmap API: E054 - 2/13
Constructing GRanges query using min/max ranges across one or more chromosomes.
+ as_blocks=TRUE: Will query a single range per chromosome that covers all regions requested (plus anything in between).
Downloading Roadmap Chromatin Marks: E053
Preexisting file detected. Set force_overwrite=TRUE to override this.
Querying subset from Roadmap API: E067 - 3/13
Constructing GRanges query using min/max ranges across one or more chromosomes.
+ as_blocks=TRUE: Will query a single range per chromosome that covers all regions requested (plus anything in between).
Downloading Roadmap Chromatin Marks: E054
Preexisting file detected. Set force_overwrite=TRUE to override this.
Querying subset from Roadmap API: E068 - 4/13
Constructing GRanges query using min/max ranges across one or more chromosomes.
+ as_blocks=TRUE: Will query a single range per chromosome that covers all regions requested (plus anything in between).
Downloading Roadmap Chromatin Marks: E067
Preexisting file detected. Set force_overwrite=TRUE to override this.
Downloading Roadmap Chromatin Marks: E068
Preexisting file detected. Set force_overwrite=TRUE to override this.
Querying subset from Roadmap API: E069 - 5/13
Constructing GRanges query using min/max ranges across one or more chromosomes.
+ as_blocks=TRUE: Will query a single range per chromosome that covers all regions requested (plus anything in between).
Querying subset from Roadmap API: E070 - 6/13
Downloading Roadmap Chromatin Marks: E069
Constructing GRanges query using min/max ranges across one or more chromosomes.
Preexisting file detected. Set force_overwrite=TRUE to override this.
+ as_blocks=TRUE: Will query a single range per chromosome that covers all regions requested (plus anything in between).
Downloading Roadmap Chromatin Marks: E070
Querying subset from Roadmap API: E071 - 7/13
Preexisting file detected. Set force_overwrite=TRUE to override this.
Constructing GRanges query using min/max ranges across one or more chromosomes.
+ as_blocks=TRUE: Will query a single range per chromosome that covers all regions requested (plus anything in between).
Querying subset from Roadmap API: E072 - 8/13
Constructing GRanges query using min/max ranges across one or more chromosomes.
+ as_blocks=TRUE: Will query a single range per chromosome that covers all regions requested (plus anything in between).
Downloading Roadmap Chromatin Marks: E071
Preexisting file detected. Set force_overwrite=TRUE to override this.
Querying subset from Roadmap API: E073 - 9/13
Constructing GRanges query using min/max ranges across one or more chromosomes.
+ as_blocks=TRUE: Will query a single range per chromosome that covers all regions requested (plus anything in between).
Downloading Roadmap Chromatin Marks: E072
Preexisting file detected. Set force_overwrite=TRUE to override this.
Downloading Roadmap Chromatin Marks: E073
Preexisting file detected. Set force_overwrite=TRUE to override this.
Querying subset from Roadmap API: E074 - 10/13
Constructing GRanges query using min/max ranges across one or more chromosomes.
+ as_blocks=TRUE: Will query a single range per chromosome that covers all regions requested (plus anything in between).
Downloading Roadmap Chromatin Marks: E074
Preexisting file detected. Set force_overwrite=TRUE to override this.
Querying subset from Roadmap API: E081 - 11/13
Constructing GRanges query using min/max ranges across one or more chromosomes.
+ as_blocks=TRUE: Will query a single range per chromosome that covers all regions requested (plus anything in between).
Querying subset from Roadmap API: E082 - 12/13
Constructing GRanges query using min/max ranges across one or more chromosomes.
+ as_blocks=TRUE: Will query a single range per chromosome that covers all regions requested (plus anything in between).
Downloading Roadmap Chromatin Marks: E081
Preexisting file detected. Set force_overwrite=TRUE to override this.
Querying subset from Roadmap API: E125 - 13/13
Constructing GRanges query using min/max ranges across one or more chromosomes.
+ as_blocks=TRUE: Will query a single range per chromosome that covers all regions requested (plus anything in between).
Downloading Roadmap Chromatin Marks: E082
Preexisting file detected. Set force_overwrite=TRUE to override this.
Downloading Roadmap Chromatin Marks: E125
Preexisting file detected. Set force_overwrite=TRUE to override this.
Annotating chromatin states.
unable to find an inherited method for function 'mcols' for signature '"try-error"'Locus TRIM22 complete in: 1.66 min
────────────────────────────────────────────────────────────────────────────────
── Step 6 ▶▶▶ Postprocess data 🎁 ──────────────────────────────────────────────
────────────────────────────────────────────────────────────────────────────────
Returning results as nested list.
All loci done in: 1.66 min
$TRIM22
NULL
$merged_dat
Null data.table (0 rows and 0 cols)
Warning message:
In parallel::mclapply(seq_len(length(eid_list)), function(i) { :
all scheduled cores encountered errors in user code
Data
rstudio@3e36fec3eec9:~/echolocatoR/echolocatoR_will/RESULTS/GWAS/LID_COX/TRIM22$ head ../../../../QC_SNPs_COLMAP.txt
SNP CHR BP A1 A2 MAF BETA SE P N N_CAS N_CON
rs3131972 1 752721 A G 0.1806 0.07177 0.1482 0.6281 2696 588 2108
rs11240777 1 798959 A G 0.2068 0.02904 0.1454 0.8417 2572 510 2062
rs28482280 1 834056 C A 0.01188 -1.013 0.6109 0.09743 2610 568 2042
rs7518581 1 834956 A G 0.01187 -1.02 0.6109 0.09504 2612 570 2042
rs149737509 1 837657 C G 0.01343 -0.609 0.578 0.292 2606 560 2046
rs28678693 1 838665 C T 0.01331 -0.7232 0.5261 0.1693 2630 580 2050
rs28477624 1 838732 A G 0.01257 -0.6727 0.5515 0.2225 2626 578 2048
rs28437697 1 838890 G A 0.01257 -0.6727 0.5515 0.2225 2626 578 2048
rs28539852 1 838916 T A 0.0126 -0.6755 0.551 0.2202 2620 576 2044
1. Bug description
I am trying to annotate finemapping results against brain tissue marks from ROADMAP, but there is this bug at the end of the query
Expected behaviour
2. Reproducible example
Code
(Please add the steps to reproduce the bug here. See here for an intro to making a reproducible example (i.e. reprex) and why they're important! This will help us to help you much faster.)
Console output
Data
3. Session info
The text was updated successfully, but these errors were encountered: