Re: [structure-group] CLUMPP help - unable to read paramfile or indfile??

1,547 views
Skip to first unread message

Vikram Chhatre

unread,
Jan 30, 2013, 12:57:27 PM1/30/13
to structure-software
Hazel -

It would be hard to suggest anything without more information.  If you'd like send a zip archive of all your files off the list and I will try to run it here.

V


On Wed, Jan 30, 2013 at 11:52 AM, Hazel Jackson <hazelja...@yahoo.co.uk> wrote:
I've been trying to use Clumpp on a MAC but cannot get it to run.  I've saved the K*.indfile from structure harvester, and adapted one of the example paramfiles from the download folder.  When I try to run Clumpp it says it cannot read the paramfile...

I have changed the relevant parts of the paramfile (ie, data = 0, name of indfile etc..)

Any ideas would be gratefully recieved.

Thanks all

Hazel

--
You received this message because you are subscribed to the Google Groups "structure-software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to structure-softw...@googlegroups.com.
To post to this group, send email to structure...@googlegroups.com.
Visit this group at http://groups.google.com/group/structure-software?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.



Hazel Jackson

unread,
Jan 31, 2013, 7:18:12 AM1/31/13
to structure...@googlegroups.com
Hi

Apologies for my delayed reply.  That would be great, I've attached the compressed files.  I'm sure it'll be something simple! Once again, many thanks

Hazel



On Wednesday, 30 January 2013 17:57:27 UTC, Vikram Chhatre wrote:
Hazel -

It would be hard to suggest anything without more information.  If you'd like send a zip archive of all your files off the list and I will try to run it here.

V
On Wed, Jan 30, 2013 at 11:52 AM, Hazel Jackson <hazelja...@yahoo.co.uk> wrote:
I've been trying to use Clumpp on a MAC but cannot get it to run.  I've saved the K*.indfile from structure harvester, and adapted one of the example paramfiles from the download folder.  When I try to run Clumpp it says it cannot read the paramfile...

I have changed the relevant parts of the paramfile (ie, data = 0, name of indfile etc..)

Any ideas would be gratefully recieved.

Thanks all

Hazel

--
You received this message because you are subscribed to the Google Groups "structure-software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to structure-software+unsub...@googlegroups.com.
Archive.zip

Vikram Chhatre

unread,
Jan 31, 2013, 8:52:16 AM1/31/13
to structure-software
There were a few problems:

1. The paramfile.txt is not a valid name, unless you tell CLUMPP that name of parameter file has a txt extension.  
2. If you use LargeKGreedy algorithm, that takes a long time (at least in my experience) to permute 
3. I changed the method to Greedy and the # of repeats to 1000

The results archive is attached.  Note that you will have to run analogous analysis for population popfile.  Then use the resulting ind and pop outfiles with Distruct.

V



To unsubscribe from this group and stop receiving emails from it, send an email to structure-softw...@googlegroups.com.
Hazel.zip

Hazel Jackson

unread,
Jan 31, 2013, 9:30:27 AM1/31/13
to structure...@googlegroups.com
Ahh how odd, on my MAC it doesn't show as having a .txt extension.

Thats brilliant, thank you for your help! Much appreciated.

Best wishes

Hazel


On Thursday, 31 January 2013 13:52:16 UTC, Vikram Chhatre wrote:
There were a few problems:

1. The paramfile.txt is not a valid name, unless you tell CLUMPP that name of parameter file has a txt extension.  
2. If you use LargeKGreedy algorithm, that takes a long time (at least in my experience) to permute 
3. I changed the method to Greedy and the # of repeats to 1000

The results archive is attached.  Note that you will have to run analogous analysis for population popfile.  Then use the resulting ind and pop outfiles with Distruct.

V

On Thu, Jan 31, 2013 at 6:18 AM, Hazel Jackson <hazelja...@yahoo.co.uk> wrote:
Hi

Apologies for my delayed reply.  That would be great, I've attached the compressed files.  I'm sure it'll be something simple! Once again, many thanks

Hazel



On Wednesday, 30 January 2013 17:57:27 UTC, Vikram Chhatre wrote:
Hazel -

It would be hard to suggest anything without more information.  If you'd like send a zip archive of all your files off the list and I will try to run it here.

V
On Wed, Jan 30, 2013 at 11:52 AM, Hazel Jackson <hazelja...@yahoo.co.uk> wrote:
I've been trying to use Clumpp on a MAC but cannot get it to run.  I've saved the K*.indfile from structure harvester, and adapted one of the example paramfiles from the download folder.  When I try to run Clumpp it says it cannot read the paramfile...

I have changed the relevant parts of the paramfile (ie, data = 0, name of indfile etc..)

Any ideas would be gratefully recieved.

Thanks all

Hazel

--
You received this message because you are subscribed to the Google Groups "structure-software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to structure-software+unsubscribe@googlegroups.com.
To post to this group, send email to structure...@googlegroups.com.

Vikram Chhatre

unread,
Jan 31, 2013, 9:42:58 AM1/31/13
to structure-software
Yes, sometimes Mac, even after deleting the extension, simply hides it.  I had to use the 'mv' command in terminal.

All the best
V



To unsubscribe from this group and stop receiving emails from it, send an email to structure-softw...@googlegroups.com.

Hazel Jackson

unread,
Jan 31, 2013, 10:59:08 AM1/31/13
to structure...@googlegroups.com
Sorry V, I'm having another problem

I understand I should be getting the popq file from my structure harvester output but no luck.  I've been looking on the forum but can't figure out what i'm doing wrong again.

any tips...?

Thanks AGAIN
Hazel

Vikram Chhatre

unread,
Jan 31, 2013, 11:24:52 AM1/31/13
to structure-software
.popfile looks like .indfile, except that it shows memberships in respective clusters for populations, not individuals.  See below for an example.  The last column is number of individuals in each population.

V

1:     0.486  0.514 41
 2:     0.514  0.486 14
 3:     0.535  0.465 10
 4:     0.529  0.471 80
 
 1:     0.514  0.486 41
 2:     0.485  0.515 14
 3:     0.464  0.536 10
 4:     0.471  0.529 80
 


To unsubscribe from this group and stop receiving emails from it, send an email to structure-softw...@googlegroups.com.

Hazel Jackson

unread,
Jan 31, 2013, 11:59:29 AM1/31/13
to structure...@googlegroups.com
Ah right ok, i've been through all the files output by structure harvester and i don't get anything like that.

Do you think it could be something wrong with the way I've run structure?

Thank you!

Hazel

Vikram Chhatre

unread,
Jan 31, 2013, 12:02:48 PM1/31/13
to structure-software
Search for a thread by 'Caroline Duffie' on the list archive.  Your answer might be in there.

V


To unsubscribe from this group and stop receiving emails from it, send an email to structure-softw...@googlegroups.com.

Hazel Jackson

unread,
Jan 31, 2013, 12:33:07 PM1/31/13
to structure...@googlegroups.com
PERFECT!! It seems my original input file was slightly incorrect (I had an extra two tabs on the first line).

Problems sorted.

Thanks again for all your help!

Hazel

Hazel Jackson

unread,
Feb 5, 2013, 6:15:56 AM2/5/13
to structure...@googlegroups.com
Hi again

I'm SO FRUSTRATED.  I just cannot get the program to work on my MAC.  Everytime i try i get an error message that it cannot read the paramfile.  V, I have tried running the files you did for me and those won't work either.  I notice you mentioned you used some command in terminal.  Can you help here? I attach the files again.  I cannot find that the paramfile has a txt extension as you found last time either? I'm really stumped again and can't understand why i'm having such trouble with this.

Many thanks
Hazel
Archive.zip

Vikram Chhatre

unread,
Feb 5, 2013, 9:58:10 AM2/5/13
to structure...@googlegroups.com
I havent looked at your files yet, but make sure the paramfile is readable. Try the following in a terminal. 

chmod +rw paramfile 

V
--

Vikram Chhatre

unread,
Feb 5, 2013, 10:21:40 AM2/5/13
to structure...@googlegroups.com
Hazel -

Your paramfile is named K2.paramfile.  No wonder the program cannot see it.  You can change the name of the paramfile, but then you have to explicitly call for it, e.g.

./CLUMPP K2.paramfile

V

Hazel Jackson

unread,
Feb 5, 2013, 10:23:44 AM2/5/13
to structure...@googlegroups.com
Hi

I have tried with just the file called paramfile and this doesn't work either. I tried changing the name to k2.paramfile to see if that would help (after looking at the download examples). 

Sent from my iPhone

Julie Hebert

unread,
Feb 6, 2013, 9:42:00 AM2/6/13
to structure...@googlegroups.com
Hazel,
I noticed your "POPFILE" did not have a "#" before it. If you're working with individuals instead of populations, you can put a # in front of the POPFILE to make it text instead of a command. Likewise, if you're running populations, change the INDFILE to a comment by putting a # in front of it and remove the # in front of the POPFILE. Once I did that, I was able to run CLUMPP on your data. I'm attaching the files.
Julie
V
To unsubscribe from this group and stop receiving emails from it, send an email to structure-software+unsub...@googlegroups.com.
To post to this group, send email to structure-software@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "structure-software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to structure-software+unsub...@googlegroups.com.
Archive (1).zip

Junli Zhang

unread,
Feb 6, 2013, 10:58:13 AM2/6/13
to structure...@googlegroups.com
Hi Hazel,

I downloaded your data, and tried running CLUMPP in my Ubuntu 12.10. I have CLUMPP installed in my machine. So I tried "clumpp K2.paramfile", it worked. If I changed "K2.paramfile" to "paramfile", then just ran "clumpp" without any parameters, it also worked. So the content of the "paramfile" or the file name should be not a problem. Attached is a output file from your data.

I do not have a Mac and I never used a Mac. But I know it is also a Unix system. So you can try: 1) check whether file "paramfile" is readable (as suggested by Vikram); 2) 'save as' the "paramfile" as a Mac text file format and encoding; 3) recompile the CLUMPP on your Mac. Hope it helps. Good luck.

Junli


On Wed, Feb 6, 2013 at 6:50 AM, dwhr <dwh...@gmail.com> wrote:
Hi Hazel,
I've been having the same issue - no matter the file name and/or extension, I can't get CLUMPP to take mt paramfile.  But, when I transferred to a PC it started right up.  This was exciting, until it told me I had 2billion permutations to test and was still "running" after three days.  Time will tell?
Dan


--
You received this message because you are subscribed to the Google Groups "structure-software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to structure-softw...@googlegroups.com.
To post to this group, send email to structure...@googlegroups.com.
Visit this group at http://groups.google.com/group/structure-software?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.





--
Junli
K2.miscfile

Julie Hebert

unread,
Feb 7, 2013, 10:25:53 AM2/7/13
to structure...@googlegroups.com
One more note: in general, I suggest running both CLUMPP and distruct using the command line (via terminal or cmd depending on your operating system). If you just double click on the program, it closes before you can get any errors, so you can't trouble shoot why it is not working.
Julie

Julie Hebert

unread,
Aug 6, 2013, 1:57:36 PM8/6/13
to structure...@googlegroups.com
Following up on Hazel's problem a while back. I'm working with someone trying to run CLUMPP on a mac (and I've tried it on a mac in my lab as well) and we can't get it to run. There is no extension (hidden or otherwise) on the paramfile, and I've made sure the permissions are correct. I get the same error message: 
Error: Unable to open paramfile ' ' paramfile ' '
Please check the  name of the paramfile.

So, has anyone figured out how to get this to run? (I even tried running the original version, freshly downloaded.)
Julie

Julie Hebert

unread,
Aug 6, 2013, 2:02:28 PM8/6/13
to structure...@googlegroups.com
Nevermind. I figured it out: for those of you who don't use macs regularly (like myself) apparently CLUMPP won't run if you use the typical double click or typing "open CLUMPP" in terminal. However, if you type "./CLUMPP" in terminal, it works just fine.
grumble. :)
Julie

D Israel

unread,
Aug 13, 2013, 11:41:16 AM8/13/13
to structure...@googlegroups.com
Thanks everyone.  I am new at this and all of the comments were helpful!

Maya

unread,
Aug 14, 2013, 10:49:17 AM8/14/13
to structure...@googlegroups.com
Hi,

I am having problems running CLUMPP on my Mac. I use Mountain Lion (OSX v 10.8.4).

The paramfile reads fine, but there seems to be a problem with the Structure Harvester output files I am using.

When I try to run my indfile, I get the following error:

Running...
----------------------------------
Best estimate of H' Repeat number (of 100)
Bus error: 10

When I try to run the popfile, I get the following error:

Error: Premature end of popfile ''K5.popfile''

Note: This problem could also be caused by giving any of
the parameters R, K and C the wrong number.

However, I already checked the number of R, K and C and it is correct on the paramfile. Any thoughts?

Files are attached...

Thanks in advance,
Maya

Vikram Chhatre

unread,
Aug 14, 2013, 10:51:52 AM8/14/13
to structure-software
Maya -

Feel free to send the files to me off the list.  I will be happy to take a look.

V


--
You received this message because you are subscribed to the Google Groups "structure-software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to structure-softw...@googlegroups.com.
To post to this group, send email to structure...@googlegroups.com.

Laura Tensen

unread,
Jan 14, 2015, 8:36:29 AM1/14/15
to structure...@googlegroups.com
Op woensdag 30 januari 2013 19:52:20 UTC+2 schreef Hazel Jackson:
> I've been trying to use Clumpp on a MAC but cannot get it to run. I've saved the K*.indfile from structure harvester, and adapted one of the example paramfiles from the download folder. When I try to run Clumpp it says it cannot read the paramfile...
>
> I have changed the relevant parts of the paramfile (ie, data = 0, name of indfile etc..)
>
> Any ideas would be gratefully recieved.
>
> Thanks all
>
> Hazel

Hi Vikram and co.,

Are you still active in saving lost CLUMPP souls? Ive read the whole manual and discussion and though useful, none of the changes I applied make any difference.. the program still wont read my paramfile. Can I maybe send the paramfile to anyone?

Thanks a lot!

Cheers Laura

Vikram Chhatre

unread,
Jan 14, 2015, 9:05:36 AM1/14/15
to structure-software
Hi Laura,

What is the error message you are receiving?  Make sure that your paramfile isn't actually paramfile.txt.  Sometimes on Apple computers, Finder does not show filename extensions.

V

--
You received this message because you are subscribed to the Google Groups "structure-software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to structure-softw...@googlegroups.com.
To post to this group, send email to structure...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Laura Tensen

unread,
Jan 19, 2015, 3:13:34 AM1/19/15
to structure...@googlegroups.com
Hi Vikram,
 
I tried to make sure its not a txt extension and checked. Im working on windows as well
 
All the best,
 
Laura

--
You received this message because you are subscribed to a topic in the Google Groups "structure-software" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/structure-software/d9Cpu8DQ1yM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to structure-softw...@googlegroups.com.

Vikram Chhatre

unread,
Jan 19, 2015, 2:06:47 PM1/19/15
to structure-software
What is the error message?
Reply all
Reply to author
Forward
0 new messages