vcf file processing
I have a vcf file, have run SnpEff for annotation. I need to group these snps based on their belong genes. such as x, y and z snps belong to gene w, for all gene.
snp
next-gen
gene
• 2,203 views
•
link
updated
by
GenoMax
•
written
by
neeraj4biotech •
0 answers
No answers yet.
Log in to answer this question.
More posts like this
-
problem with classification genes using Random Forest Classifier
written by sadaf •I have 7000 gene entries with their numeric attributes such as time, .... in an excel file and I want to get a small set …
-
Considerations when merging a gVCF with a VCF?
written by jon.klonowskiI have a gVCF of ~2.5k samples from a study **W**. then I have a VCF of ~8k joint called samples from 3 different studies: …
-
To keep the model of minimum p-value from the file
written by khnHello My file lists a millions of SNPs with their p-values by additive, dominant, and recessive models. I want to keep the SNPs with a …
-
How to create snpEff data base for newly assembled genome?
written by nadiabeg.comsats •Hi all, I have my own de-novo assembled reference genome and gff file. I aligned my data on newly assembled reference genome. I have now …
-
Gene based analysis methods, tools
written by zx8754Any suggestions on tool/methods for gene based analysis? **Data**: I have all the GWAS data for case-control samples n=100K: - genotyped GWAS (~600K SNPs, maybe …
-
How to perform functional gene clustering?
written by ThePresidentLet's say I have a gene "A" and I want to know what is a genomic context around it in different bacterial genomes. So, I …
-
Problem including additional annotations to vcf using snpEff
written by sumudu_rangika •Hi, I annotated my vcf files with SNPs using snpEff which has a pre-built database for the species I work on. But my annotated vcf …
-
Map snps to its genes
written by foreverHow to map snps in my ped file to their genes using plink? I need to group these snps based on their belong genes. such …
-
How to annotate SNPs, identified against scaffolds (draft genome)
written by inayat45shaikh •Hello group, I had identified SNPs by mapping reads to scaffolds (closely related organism) and generated VCF file. The problem I am facing is in …
-
Getting The Number Of Chromosome From Gene Id For A Lot Of Genes
written by thjnant<p>Hello, </p> <p>I have a vcf file that instead of the number of the chromosomes, I have the gene IDs, such as this:</p> <p>ENSGALG00000000011|ENSGALT00000000012|57|1123|1125 <br …
Are you trying to extract them into separate files per gene or are you trying to run a burden test or something sophisticated?
Thanks Vivek for quick response. Have vcf file and bed/gff file as input file. Actually I want separate files per gene.
There are more elegant solutions if you can do some scripting but here's a crude workflow:
If you have one line per gene in the bed file, you can initially split the BED file into one file per gene like this:
Depending on the number of genes, you might produce a lot of files here.
Rename to bed extension
Then use Tabix to split your VCF
It always helps if you can post some example data. Use datamash to group by gene and collapse all SNPs.
output:
input:
Install datamash either from here or from distro repos (for debian based; sudo apt install datamash -y; for conda, conda install datamash -y).
Neeraj, can you post few lines of the data? I know it should be a standard vcf, still it helps !