Running STRUCTURE

368 views
Skip to first unread message

Damian Alexandridis

unread,
Jul 10, 2023, 8:46:44 AM7/10/23
to structure-software
Hi all, 
I'm trying to run the STRUCTURE software for the first time but i get errors including my input file.
My data is consisted from 348 individuals and 950 loci. The final2.structure file (input) has in the first column, the individuals, in the 2nd, the corresponding population each individual belongs to and then 950 columns for the loci. Also, the data is organised as two rows per individual. So 696 rows with genotype data and the first row with the marker/loci names.
The error message is in the below screenshot.  
I hope i gave you enough info about my problem.
Thank you in advance.
Damian
 Error in STRUCTURE.pngmainparams.pngextraparams.pngfinal2.stru.png

Josh Banta

unread,
Jul 10, 2023, 9:07:56 AM7/10/23
to structure...@googlegroups.com
Dear Damian,

The STRUCTURE file format is very unforgiving. Any slight deviation will cause it to fail. For instance, you may have a blank line on row 697.

I have a step-by-step tutorial for converting from FASTA to STRUCTURE file format that you may want to check out. It is written for Ubuntu Linux, but it is not required. You can use any operating system, as long as you have R and Rstudio installed.


Best wishes,
Josh

On Jul 10, 2023, at 12:54 AM, Damian Alexandridis <damianosalex...@gmail.com> wrote:

Hi all, 
I'm trying to run the STRUCTURE software for the first time but i get errors including my input file.
My data is consisted from 348 individuals and 950 loci. The final2.structure file (input) has in the first column, the individuals, in the 2nd, the corresponding population each individual belongs to and then 950 columns for the loci. Also, the data is organised as two rows per individual. So 696 rows with genotype data and the first row with the marker/loci names.
The error message is in the below screenshot.  
I hope i gave you enough info about my problem.
Thank you in advance.
Damian
 <Error in STRUCTURE.png><mainparams.png><extraparams.png><final2.stru.png>

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/structure-software/7268b7eb-e25f-4b19-a87b-658e525f765an%40googlegroups.com.
<mainparams.png><extraparams.png><Error in STRUCTURE.png><final2.stru.png>

Damian Alexandridis

unread,
Jul 10, 2023, 12:25:15 PM7/10/23
to structure...@googlegroups.com
Thank you Josh for the help,
I solved the problem by changing a few things :  population IDs should only be integers (i had also some strings), individuals' names were changed to numbers (this step might not be neseccery), and the most important thing was to change the file format to unix with the "dos2unix" command.  The input file was first made in windows environment and then used in unix.  I didnt take that into account.  
Cheers,
Damian

Reply all
Reply to author
Forward
0 new messages