Comments (6)
Anyone can help?
from tensorqtl.
Hi,
Can you please provide a more specific, reproducible example? I don't see this error when running the example notebook.
from tensorqtl.
from tensorqtl.
Can you please post the scripts in the issue here on GitHub? email attachments don't work for these.
from tensorqtl.
Sorry.
This is the run_tensorQTL_cis_empirical.sh script.
#!/bin/bash
#SBATCH -c 4
#SBATCH --gres=gpu:1 # Number of GPUs (per node)
#SBATCH -p gpu
#SBATCH --mem=50G # memory (per node)
#SBATCH --time=48:00:00
#activate conda environment which installed the tensorQTL
source activate tensorQTL_new
WKDIR=${SLURM_SUBMIT_DIR}/GEUVADIS.445
python ${SLURM_SUBMIT_DIR}/tensorQTL_cis_empirical.py ${WKDIR}
And this is the tensorQTL_cis_empirical.py script.
#!/usr/bin/env python
import os, glob, sys
import pandas as pd
from logging import debug, warning, error, getLogger
from optparse import OptionParser
import numpy as np
import tensorqtl
from tensorqtl import genotypeio, cis, trans
import matplotlib.pyplot as plt
#Variables
wk_dir=sys.argv[1]
# path to data
plink_prefix_path = '%s/GEUVADIS.445_samples.GRCh38.20170504.maf01.filtered' % (wk_dir)
expression_bed = '%s/GEUVADIS.445_samples.expression.bed.gz' % (wk_dir)
covariates_file = '%s/GEUVADIS.445_samples.covariates.txt' % (wk_dir)
prefix = '%s/GEUVADIS.445_samples' % (wk_dir)
# load phenotypes and covariates
phenotype_df, phenotype_pos_df = tensorqtl.read_phenotype_bed(expression_bed)
covariates_df = pd.read_csv(covariates_file, sep='\t', index_col=0).T
# PLINK reader for genotypes
pr = genotypeio.PlinkReader(plink_prefix_path)
genotype_df = pr.load_genotypes()
variant_df = pr.bim.set_index('snp')[['chrom', 'pos']]
# cis_empirical
cis_df = cis.map_cis(genotype_df, variant_df, phenotype_df, phenotype_pos_df, covariates_df, nperm=100, seed = 1234)
Thanks.
from tensorqtl.
This script runs fine on my end. I suspect it might be the input files -- can you please download the files from the example notebook again? The PLINK files should end with .filtered.nodup.*
. And please make sure to run the latest version of tensorQTL.
Here's the output you should see:
cis-QTL mapping: empirical p-values for phenotypes
* 445 samples
* 19836 phenotypes
* 26 covariates
* 13369268 variants
* using seed 1234
* checking phenotypes: 19836/19836
** dropping 38 phenotypes without variants in cis-window
* computing permutations
processing phenotype 19798/19798
Time elapsed: 5.33 min
done.
from tensorqtl.
Related Issues (20)
- pgenlib error HOT 1
- Expected format for --interaction parameter HOT 2
- How to use Plink2 files including multiallelic file HOT 2
- An error in tensorqtl_examples.ipynb ? HOT 1
- Reproduce GTEx v8 HOT 3
- Interaction mode: k variable overwrite in cis.py script (v1.0.7) HOT 1
- nominal p value threshold for non-top eVariants in interaction mode
- missing pval_nominal_threshold column in output cis_qtl.txt file HOT 1
- Output Documentation HOT 3
- TensorQTL load Plink2 files in command line HOT 1
- Can we use tensorqtl without a covariate? HOT 1
- Cannot run cis.map_independent HOT 4
- TypeError of interaction mode when removing the command "--best-only" HOT 1
- problematic variant HOT 1
- NaN values in some mQTLs parquet file HOT 5
- Allele frequency reported in nominal cis-mQTLs output HOT 1
- TensorQTL for non-genomic data HOT 4
- Regression with phenotype containing 4 expressed genes HOT 1
- Limit the number of multi-threading HOT 1
- Question - genetic data from related HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tensorqtl.