plink 1.9 --homozyg options error

140 views
Skip to first unread message

Nathalie Smogeli

unread,
Nov 17, 2023, 4:07:59 AM11/17/23
to plink2-users
Hello, i am trying to get some ROH from my data and first i haf written all options into my scripts even though i decided to use default values. I get the error of where it says <parameter> only accepts 1 parameter. This confuses me very much because i think i have given it one parameter and that it states so before giving me the error. Now i have kept only the parameters im changing and it looks like this:


Screenshot 2023-11-17 100732.png

Nathalie Smogeli

unread,
Nov 17, 2023, 4:10:51 AM11/17/23
to plink2-users
heres the code for this particular section if it helps:
Screenshot 2023-11-17 101033.png

Nathalie Smogeli

unread,
Nov 17, 2023, 4:15:54 AM11/17/23
to plink2-users
ohno, i see i forgot that plink 1.9 may not accept pfiles. so I will have to change them all to bfiles or something else it will accept. Could that be whats causing this error?

Nathalie Smogeli

unread,
Nov 17, 2023, 8:30:01 AM11/17/23
to plink2-users
even if i run it with --vcf files then I get same error

Christopher Chang

unread,
Nov 17, 2023, 11:43:44 AM11/17/23
to plink2-users
There are MANY differences between your "code for this particular section" screenshot and the screenshot before that; the main thing in common between them is that both have (different!) mistakes that are UNRELATED to --homozyg-gap.

I cannot help you until you post a .log file describing a specific command that is failing, along with all the input files for that command, so I can reproduce on my end.  While what you've posted is better than nothing, in this case it's still too imprecise.

Nathalie Smogeli

unread,
Nov 20, 2023, 3:16:04 AM11/20/23
to plink2-users

The code and outfile when dropping other parameters
Screenshot 2023-11-20 090749.pngScreenshot 2023-11-20 090337.png

When i drop "group verbose and extend" also I get the error
Screenshot 2023-11-20 091224.pngScreenshot 2023-11-20 091154.png

Are there still mistakes besides the gap that need changing or what is going on?

Christopher Chang

unread,
Nov 20, 2023, 10:57:04 AM11/20/23
to plink2-users
Still can't help you, I can't reproduce what you're seeing.  I asked for ACTUAL INPUT FILES, not screenshots.

Christopher Chang

unread,
Nov 20, 2023, 10:57:51 AM11/20/23
to plink2-users
(including a literal .log file, because something funny may be going on with invisible characters)
Message has been deleted
Message has been deleted

Christopher Chang

unread,
Nov 21, 2023, 3:16:36 AM11/21/23
to plink2-users
Looking at the .out file, there are in fact extra spaces after "--homozyg-gap 10" in the log.  So I'm guessing that you have spaces after the backslash on the "--homozyg-gap 10" line of your script, and if you get rid of them you will no longer see this error message.

Nathalie Smogeli

unread,
Nov 21, 2023, 7:41:14 AM11/21/23
to plink2-users
yup, that was it. The one braincell left was not functioning. I apologize for that!
Reply all
Reply to author
Forward
0 new messages