Question: Fewer tokens than expected error in Plink when using --filter
0
gravatar for tz.rzezniczak
3.1 years ago by
tz.rzezniczak0 wrote:

Hello,

I am working with .bed .bim and .fam files from the Drosophila Genetic Reference Panel. I only used a subset of the 205 individuals in the dataset and am trying to filter these out in PLINK using the --filter comand, however I keep getting an error, indicating that my .txt file which specifies which individuals to filter has fewer tokens then expected. Can anyone help in identifying what is causing this error?

plink --bfile dgrp2 --filter incl_dgrplines.txt 1 --no-pheno --make-bed --out dgrp3

PLINK v1.90b3.43 64-bit (13 Nov 2016)      https://www.cog-genomics.org/plink2
(C) 2005-2016 Shaun Purcell, Christopher Chang   GNU General Public License v3
Logging to dgrp3.log.
Options in effect:
  --bfile dgrp2
  --filter incl_dgrplines.txt 1
  --make-bed
  --no-pheno
  --out dgrp3

3882 MB RAM detected; reserving 1941 MB for main workspace.
4438427 variants loaded from .bim file.
205 people (205 males, 0 females) loaded from .fam.
Error: Line 1 of --filter file has fewer tokens than expected.
plink • 4.0k views
ADD COMMENTlink modified 9 days ago by zx87548.8k • written 3.1 years ago by tz.rzezniczak0
2
gravatar for chrchang523
3.1 years ago by
chrchang5236.2k
United States
chrchang5236.2k wrote:

For the record, the problem here was that the --filter file used UTF-16 encoding, which plink doesn't understand. Conversion to plain ASCII/UTF-8 without a byte-order mark solves the problem.

ADD COMMENTlink written 3.1 years ago by chrchang5236.2k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1687 users visited in the last hour