Problems with fastStructure

1,210 views
Skip to first unread message

DIANA LOPEZ

unread,
Apr 4, 2014, 7:42:37 AM4/4/14
to structure...@googlegroups.com
Hi.

I´m trying to run fastStructure

python structure.py -K 10 --input=structure_tsv --output=prueba

but i obtained.

Traceback (most recent call last):
File "structure.py", line 3, in <module>
import fastStructure
File "admixprop.pxd", line 5, in init fastStructure (fastStructure.c:8424)
File "allelefreq.pxd", line 7, in init vars.admixprop (admixprop.c:5328)
ImportError: libgsl.so.0: cannot open shared object file: No such file or directory

Which may be happening?.

thanks in advance.

Vikram Chhatre

unread,
Apr 4, 2014, 7:49:20 AM4/4/14
to structure...@googlegroups.com
It appears you either don't have GNU Scientific Library or Python doesn't know where it is. Did you follow the tutorial for installation on Github pages?

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.
Visit this group at http://groups.google.com/group/structure-software.
For more options, visit https://groups.google.com/d/optout.

DIANA LOPEZ

unread,
Apr 7, 2014, 7:37:52 AM4/7/14
to structure...@googlegroups.com
Yes I am. I have repeated all the process 

Now Appears:

Traceback (most recent call last):
  File "structure.py", line 163, in <module>
    G = parse_bed.load(params['inputfile'])
  File "parse_bed.pyx", line 18, in parse_bed.load (parse_bed.c:1675)
    handle = open(file+'.fam','r')

Thanks in advance.

El viernes, 4 de abril de 2014 12:49:20 UTC+1, Vikram Chhatre escribió:
It appears you either don't have GNU Scientific Library or Python doesn't know where it is. Did you follow the tutorial for installation on Github pages?

V

On Friday, April 4, 2014, DIANA LOPEZ <dianal...@gmail.com> wrote:
Hi.

I´m trying to run fastStructure

python structure.py -K 10 --input=structure_tsv --output=prueba

but i obtained.

Traceback (most recent call last):
  File "structure.py", line 3, in <module>
    import fastStructure
  File "admixprop.pxd", line 5, in init fastStructure (fastStructure.c:8424)
  File "allelefreq.pxd", line 7, in init vars.admixprop (admixprop.c:5328)
ImportError: libgsl.so.0: cannot open shared object file: No such file or directory

Which may be happening?.

thanks in advance.

--
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.
To post to this group, send email to structure-software@googlegroups.com.

Vikram Chhatre

unread,
Apr 7, 2014, 7:42:21 AM4/7/14
to structure-software
Diana -

This is a different error from what you posted last time.

This error is related to parsing of the plink bed format data.  Anil may have some input for you on this matter.  In the meantime, you may want to make sure that your data is correctly formatted.

Vikram


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.

DIANA LOPEZ

unread,
Apr 7, 2014, 9:03:39 AM4/7/14
to structure...@googlegroups.com
Thanks.
I think this is my problem i don't sure about of the format of my data and if the instructions is Ok.

python structure.py -K 1 --input=structure_hyb --output=prueba 


or i need additional the numbers of individual or loci?

Thanks.

V
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-software@googlegroups.com.
Visit this group at http://groups.google.com/group/structure-software.
For more options, visit https://groups.google.com/d/optout.

--
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.

Vikram Chhatre

unread,
Apr 7, 2014, 9:12:31 AM4/7/14
to structure-software
The error has nothing to do with number of individuals or loci.  The program is unable to parse the bed format files correctly.  It assumes that you have three files in the current directory:

1. structure_hyb.bed
2. structure_hyb.bim
3. structure_hyb.fam

You can check the integrity of these files in PLINK.

V




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

DIANA LOPEZ

unread,
Apr 7, 2014, 9:35:43 AM4/7/14
to structure...@googlegroups.com
Ok.

Now I understand my problem is that i have a file .txt that i obtained of stacks, but i don't had these files .bed .bim and .fam how i convert mi file txt to these it.

Thanks and sorry but i new with this program 
To post to this group, send email to structure...@googlegroups.com.

DIANA LOPEZ

unread,
Apr 8, 2014, 5:44:16 AM4/8/14
to structure...@googlegroups.com
I continue to need to know how to transform my data in format .Txt to  .Bed .Fam and .Bim

Thanks

unread,
Aug 4, 2014, 8:31:33 PM8/4/14
to structure...@googlegroups.com
use plink to create the binary files. 

zeamne T

unread,
Aug 5, 2014, 1:33:40 PM8/5/14
to structure...@googlegroups.com
Hi Diana,

I could be wrong.. but I think faststructure also has the option to use input files in the structure format, just that you have to remove the header of the locus names. I found this much easier to do than to use PLINK, because you first have to use PLINK-SEQ then PLINK...


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.
For more options, visit https://groups.google.com/d/optout.



--
yujie
Reply all
Reply to author
Forward
0 new messages