fastStructure input file error

470 views
Skip to first unread message

jtc...@bucknell.edu

unread,
Jan 8, 2016, 4:54:42 PM1/8/16
to structure-software
Hi all,

I've been attempting to run fastStructure on a large SNP dataset all day and have successfully built it and ran the test data. But, I keep running into an input file error with my own data via the following:

$ python structure.py -K 6 --input=solanum9/batch_44.structure_Solanum9 --output=solanum9/batch_44.structure_Solanum9output_simple --format=str --full --seed=123
Traceback (most recent call last):
File "structure.py", line 172, in <module>
G = parse_str.load(params['inputfile'])
File "parse_str.pyx", line 7, in parse_str.load (parse_str.c:1334)
handle = open(file+'.str','r')
IOError: [Errno 2] No such file or directory: 'solanum9/batch_44.structure_Solanum9.str'

I'm at a loss as what to do next. Any help you can give would be great

The input file is 603 MB and I assume is too large for the Structure front end to load (perpetually stuck in the final steps of the new project wizard when inputing data).

Thanks,

Jason

Vikram Chhatre

unread,
Jan 8, 2016, 4:57:20 PM1/8/16
to structure-software
Jason -

Try renaming your file by removing the period.

batch_44_structure_Solanum9.str

Also make sure that the formatting requirements are met.  FastStructure format has several empty columns in the beginning.

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

Omar Hamarsheh

unread,
Jan 25, 2016, 8:59:29 PM1/25/16
to structure-software
I experienced the same problem, I think the point is removing hidden formats added by the txt editor. any suggestion would be greatly appreciated.

thanks
omar

Vikram Chhatre

unread,
Jan 25, 2016, 9:13:08 PM1/25/16
to structure-software
Omar -

The error in the post you replied to is not of that nature.  You need to tell us a bit more about the errors you are getting running fastStructure.

V

--

Omar Hamarsheh

unread,
Jan 29, 2016, 8:22:44 AM1/29/16
to structure-software
Hi Vikram

the error is 

File "/fastStructure/structure.py", line 172, in <module>
    G = parse_str.load(params['inputfile'])
  File "parse_str.pyx", line 22, in parse_str.load (parse_str.c:1692)
    major = alleles[0]

the input file has been generated from VCF file using PGDspider

thank you




On Monday, January 25, 2016 at 9:13:08 PM UTC-5, Vikram Chhatre wrote:
Omar -

The error in the post you replied to is not of that nature.  You need to tell us a bit more about the errors you are getting running fastStructure.

V
On Mon, Jan 25, 2016 at 8:57 PM, Omar Hamarsheh <ohama...@gmail.com> wrote:
I experienced the same problem, I think the point is removing hidden formats added by the txt editor. any suggestion would be greatly appreciated.

thanks
omar



On Friday, January 8, 2016 at 4:54:42 PM UTC-5, jtc...@bucknell.edu wrote:
Hi all,

I've been attempting to run fastStructure on a large SNP dataset all day and have successfully built it and ran the test data. But, I keep running into an input file error with my own data via the following:

$ python structure.py -K 6 --input=solanum9/batch_44.structure_Solanum9 --output=solanum9/batch_44.structure_Solanum9output_simple --format=str --full --seed=123
Traceback (most recent call last):
  File "structure.py", line 172, in <module>
    G = parse_str.load(params['inputfile'])
  File "parse_str.pyx", line 7, in parse_str.load (parse_str.c:1334)
    handle = open(file+'.str','r')
IOError: [Errno 2] No such file or directory: 'solanum9/batch_44.structure_Solanum9.str'

I'm at a loss as what to do next. Any help you can give would be great

The input file is 603 MB and I assume is too large for the Structure front end to load (perpetually stuck in the final steps of the new project wizard when inputing data).

Thanks,

Jason

--
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,
Jan 29, 2016, 8:23:40 AM1/29/16
to structure-software
Most likely you have some monomorphic sites left in the data.  Need to remove those before FS will run.

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 https://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-softw...@googlegroups.com.

Omar Hamarsheh

unread,
Jan 29, 2016, 8:35:14 AM1/29/16
to structure-software
thanks Vikram 
any suggestion on how to get them removed...I have huge dataset about 1.2 G

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...@googlegroups.com.
Visit this group at https://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,
Jan 29, 2016, 8:49:42 AM1/29/16
to structure...@googlegroups.com
There is an option in PGD to exclude monomorphic sites. 
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 https://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-softw...@googlegroups.com.

To post to this group, send email to structure...@googlegroups.com.
Visit this group at https://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-softw...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages