Questions tagged [plink]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
35 views

How to convert vcf to tbed/tfam and again convert it back to tbed/tfam to vcf using plink

When converting vcf to tbed/tfam format, I am getting error like unrecognized flag<'--transpose'> Code I used: ...
0
votes
0answers
13 views

Association test to get p values and OR in plink2, and file input format

Are there any commands for association testing in plink2 which will output p-value and OR in the resulting output file? If so, what kind of file input do I need to use for such commands...a vcf.gz ...
1
vote
1answer
29 views

Output of allelic association doesn't write the rsID

I'm using plink (1.9b5) to do allelic association. My problem is that my output does not write the rsID (SNP), it just writes a dot. Output: ...
1
vote
1answer
134 views

Error: "fewer tokens than expected" while using --update-name flag in plink

I am trying to update my rsIDs in .bim file by using --update-name flag in plink but getting this error message. what could be the reason of it? ...
1
vote
1answer
36 views

How do I remove allele annotations from SNP Ids in .bim file?

Hello every one i need help in editting my .bim file. So my .bim file looked like following. I want to convert the ids with chromosomal position from chr1_867635_C_T...
1
vote
1answer
21 views

Convert SNP data from GEO into PED and MAP files?

I can easily grab SNP-Chip data from NCBI's GEO database for a given Illumina SNP-Chip array, e.g. from here: https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE52147 GEO provides data as SOFT ...
0
votes
0answers
18 views

Is SNPRelate the goto package for PCA of SNP data in R?

I'm trying to evaluate a method that I'm not familiar with. They used SNPRelate. I'm wondering if this is the best / only choice... what other tools would you recommend? Many thanks,
1
vote
1answer
74 views

Nextflow: Runs without error, produce few but not all output files into output channel

I was trying to develop a pipeline using nextflow and plink. My code runs without any error, but got only two output files instead of 22 (one for each chromosome). Here is part my code block, any help?...
0
votes
1answer
115 views

nextflow: Filter outputs of a process

How could I filter outputs of a process in the input of the next process? Filtering works fine in channel, but if I try to filter outputs I got compilation error. I tried as follows: ...
2
votes
1answer
77 views

Nextflow: No signature of Method: chr() is applicable for argument types; unknown variable

I was trying to use plink in nextflow. My first process will split the input (single bed|bim|fam file) into 22 chromosomes (each with bed|bim|fam files) which would be used in subsequent processes. My ...
1
vote
0answers
12 views

plink doesn't generate a sexcheck-file

I was executing the following command plink.exe --file GWAS --check-sex --noweb Expecthing to get a plink.sexcheck file but I ...
0
votes
0answers
31 views

Reliably create female and male individuals in a -ped file for plink

For a study I need some kind of "decoy" GWAS-data. For this I created a panel with some genes, the same ones as in the real data. From NCBI I fetch some of their SNPs and create my own ...
0
votes
1answer
178 views

Making PLINK compatible files from VCF file without phenotype information

I have a big VCF file that I need to convert to, preferably, bed/bim/fam files that are readable by plink. Currently using plink 2. I am aware that this version of plink can be used to convert VCFs ...
0
votes
0answers
22 views

Question: Imputation information score using PLINK

I am trying to apply 3 QC on my data that is MAF, HWE and Imputation information score (threshold 0.1) using PLINK. I could perform the first 2, but I do not know how I do the third one. I do not know ...
1
vote
0answers
40 views

Merging plink files with divergent allele codings

I have a number of plink files from different arrays (mixed Illumina and Affymetrix) that need to be merged. However, these use different allele codings, so trying to merge without fixing this causes ...
1
vote
1answer
39 views

Random GWAS data generator

I was wondering if there is a tool/script/program that randomly generates GWAS data. The purpose of such a tool would be to use it for educational purposes. So you generate some random .ped, .map and ...
0
votes
0answers
53 views

GWAS phenotype data format and preprocessing

I have a set of different phenotypes which I want to use for a GWAS analysis (general linear model). I have a couple of questions and uncertainty about the phenotype data input. I have control and ...
1
vote
2answers
103 views

Interpreting GWAS results with different settings

I did a bunch of GWAS analysis (linear model without covariates) with applying different quality controls. How to choose the optimal settings when filtering for minor allele frequency (maf), Hardy-...
0
votes
0answers
74 views

plink: Error: ALT allele duplicates REF allele on line 37074 of .vcf file

I am working with the public WGS files from the HGDP from here: ftp://ngs.sanger.ac.uk/production/hgdp/hgdp_wgs.20190516/ I want to convert the VCFs to plink binary format (bed, bim, fam). However, ...
2
votes
2answers
257 views

Lifting from hg38 to hg37

I am having strange issues lifting this dataset to hg37 from hg38. I am using the HGDP WGS data from ftp://ngs.sanger.ac.uk/production/hgdp/hgdp_wgs.20190516/. The data set split by chromosome, so I ...
0
votes
2answers
521 views

plink: --update-name vs. editing the BIM

I am working with data from the HGDP public files. These are massive VCFs from whole genome sequencing. To begin with, I converted these to BEDs using plink (1.9). The next problem is that these files ...
0
votes
0answers
20 views

GWAS Rooted PCA analysis problem

I'm fairly new to plink software and wanted to get some additional practice after doing several tutorials. I obtained the data from this paper (I'm not using this paper's methods) to do some QC with ...
2
votes
1answer
388 views

Converting aligned fasta to plink ped/bed

I have an alignment of multiple sequences in a FASTA file (output from MAFFT), for which I would like to simulate a phenotype using plink, but for that I need to have my alignment in a PED file or ...
1
vote
1answer
144 views

Plink 1.9 equivalent of --score sum in Plink 2.0

I have previously performing Allelic scoring in Plink 1.9 using: plink \ --score sum sumstats.txt\ However, it seems this has changed in Plink 2.0. What is the ...
2
votes
1answer
71 views

How to calculate average minor allele frequency (MAF) difference between two populations (i.e. European, Hispanic)

The data is present in the PLINK format .bed (individual genotypes), .bim (genetic markers) and .fam (sample IDs and disease phenotype file). I have also separate text files containing information on ...
0
votes
1answer
116 views

How to simulate phenotype from real genetic data for GWAS purpose?

I'm trying to simulate binary phenotypes from the 1000 Genome Phase 3 datasets using gcta64 --simu-cc, but no success. Everything seems to be going well, but in the end I get: ...
0
votes
1answer
33 views

Why my bim file doesn't match to my ped file as the Plink documentation suggests?

Plink documentation about .bim says the columns 5 and 6 are the Allele 1 and Allele 2 respectively. The documentation about the .ped in turn, says "...The first six fields are the same as those in a ....
1
vote
1answer
57 views

Question: How to simulate 100k samples having 40 million SNPs in a proportion of case:control=30:70?

Note: this question can also be found on Biostars I need to perform a stress test in a GWAS tool and the duty demands a dataset (plink format) having 100 thousand samples, having 40 million SNPs in a ...
0
votes
1answer
666 views

Wrong format .ped in PLINK

I know that I don't have the correct format in my .ped file for PLINK but I don't know how to convert it. My actual file is something like: ...
1
vote
0answers
232 views

Running IBD using PLINK --parallel (v2)

I have merged two huge .gen files with roughly 500k samples in total - around 3 TB. I wish to run an IBD (identity by descent) check to identify if there are ...
1
vote
1answer
64 views

Sibling vs Parent/Child relationship detection using whole-genome sequence data

I am analyzing a family-based whole-genome sequence (WGS) dataset. My identity-by-descent(IBD) analysis shows they share about 50% of their DNA. I think my pedigree structure may have gotten mixed up ...
0
votes
2answers
502 views

How to compute LD for pairs of variants with Plink

I have a set of SNPs (single nucleotide polymorphisms) { S1, S2, ..., SN } from approximately 200 humans. I wish to determine the linkage disequilibrium (LD) for a defined subset of these SNPs. By ...
2
votes
1answer
119 views

PLINK - Transposed BED file?

I'm currently working with the PLINK file system to store large amounts of genotype data. The plain format consists of three files, two files for storing phenotype and marker information as well as ...
1
vote
1answer
807 views

Plink 1.9 --merge-list changing order of fam file

I am doing some whole-genome sequence analysis and to speed things up split the data into chromosomes and also into regions within those chromosomes. (So I have my dataset split into ~300ish files) I ...
1
vote
2answers
70 views

Calculate average parental genotype

I am interested in creating an averaged value for genotype across two parents: E.g. Input (three unrelated couples, 1, 2 and 3): ...
2
votes
1answer
154 views

Parallel in PLINK for linear association for SNP effects

I am doing linear association calculations for SNP effects, I see it take a lot of time to do, does anyone have any experience in parallelizing this job. I have used ...
1
vote
0answers
46 views

What should I use as a reference file for clumping?

I'm new to using PLINK and I have 2 basic questions about clumping. I'm computing polygenic risk scores for psychiatric diseases and will be using the following command to clump: ...
2
votes
1answer
300 views

Visualize PLINK pedigree files

Is there a pedigree viewer that works with PLINK pedigree files? I saw an old post by Pierre, but I don't see the script on his blog.
1
vote
0answers
226 views

Error filtering SNPs with Plink

Im trying to filter SNPs using PLINK with this command. Also, the .map and .ped files were converted to a plink format from a vcf file (...
10
votes
2answers
11k views

Converting VCF file to PLINK bed/bim/fam files

I am trying to find the best way to convert VCF files to PLINK binary bed/bim/fam files, but it seems like there are many varied ways to do this. (For example, using Plink 1.9 --vcf tag, bcftools, ...
2
votes
1answer
146 views

How to create artificial or dummy phenotype data

I have whole genome sequence (human) data (SNP data), but don't have phenotype data ready for any traits yet. Hopefully, I will get real phenotype data soon. To run GWAS (genome-wide-association study)...
3
votes
1answer
1k views

removing indels in plink

I have data in Plink format. I removed Indels using --snps-only command in Plink, but still some snps are as below: rs58119544;rs5746975 0 16915280 T A ...
6
votes
4answers
1k views

Convert rs ID of one hg build to rs IDs of another build

I have a list of dbSNP rsIDs for GRCh37 and I want to convert them to the equivalent IDs in GRCh38. This is using the most recent dbSNP build (150 as of the time of this post). Is there any ID mapping ...
5
votes
1answer
1k views

LD analysis in PLINK based on reference and a SNP list

I'm new to PLINK and genetics, and getting confused with two PLINK commands for LD analysis: plink --bfile hapmap --r2 --ld-window-r2 --ld-snp-list --ld-window <...
1
vote
1answer
2k views

Using PLINK to find SNPs in LD (Linkage Disequilibrium) with another set of SNPs

I have a list of SNPs (index SNPs). As my tagging SNPs, I want to use SNP data from here. The data has the following column headers: Chromosome, Position, MarkerName, Effect_allele, ...
6
votes
2answers
1k views

PLINK clump behavior on missing SNPs?

I have a long list of autoimmune-associated SNPs, and I want to boil it down so that I get one SNP representing each LD block. I chose to use PLINK's --clump option for this. I'm roughly following ...
4
votes
3answers
1k views

Is there any difference between SNPs 'AG' and 'GA' in association analyses?

I am using plink to check the association between a phenotype and the SNPs of a gene. plink says the phenotype is significantly associated with a SNP on that gene, and when I check the SNP alleles, ...