Hi Vikram, thanks for your patience. I have amended the mainparam file
to
#define INFILE testdata1 //(str) name of input data file
#define OUTFILE outfile //(str) name of output data file
Data file format
#define NUMINDS 200 //(int) number of diploid indiviuals in data
file
#define NUMLOCI 5 // (int) number of loci in data file
#define PLOIDY 2 // (int) ploidy of data
#define MISSING -9 // (int) value given to missing genotype
data
#define ONEROWPERIND 0 // (B) store data for individuals in a
single line
#define LABEL 1 // (B) Input file contains individual labels
#define POPDATA 0 // (B) Input file contains a population
identifier
#define POPFLAG 0 // (B) Input file contains a flag which says
whether to use popinfo when
USEPOPINFO==1
#define LOCDATA 0 // (B) Input file contains a location
identifier
#define PHENOTYPE 0 // (B) Input file contains phenotype
information
#define EXTRACOLS 0 // (int) Number of additional columns of data
before the genotype data start.
#define MARKERNAMES 1 // (B) data file contains row of marker
names
#define RECESSIVEALLELES 0 // (B) data file contains dominant markers
(eg AFLPs)
// and a row to indicate which alleles are
recessive
#define MAPDISTANCES 0 // (B) data file contains row of map
distances
// between loci
Advanced data file options
#define PHASED 0 // (B) Data are in correct phase (relevant
for linkage model only)
#define PHASEINFO 0 // (B) the data for each individual
contains a line
indicating phase (linkage model)
but i still get an error
----------------------------------------------------
STRUCTURE by Pritchard, Stephens and Donnelly (2000)
and Falush, Stephens and Pritchard (2003)
Code by Pritchard, Falush and Hubisz
Version 2.3.2.1 (Oct 2009)
----------------------------------------------------
Reading file "mainparams".
datafile is
testdata1
Reading file "extraparams".
Note: RANDOMIZE is set to 1. The random number generator will be
initialized using the system clock, ignoring any specified value of
SEED.
Reading file "testdata1".
WARNING: There may be more data in the input file
than indicated by the program constants. Check the values
entered for NUMLOCI and NUMINDS, etc, in the program constants.
----------------------------------
There were errors in the input file (listed above). According to
"mainparams" the input file should contain one row of markernames with
5 entries,
400 rows with 6 entries .
There are 400 rows of data in the input file, with an average of 8.00
entries per line. The following shows the number of entries in each
line of the input file:
# Entries: Line numbers
8: 1--400
----------------------------------
Exiting the program due to error(s) listed above.
Sorry for the confusion before but I interpreted the install
instructions to mean that structure was already setup to run the
testdata1 file
Thanks (yet again)
Jos
> The mainparams you're using is not set up for usingtestdata1data
> file. Thetestdata1contains data for 200 individuals typed at 5
> loci, whereas the default unedited mainrams is set up for 100
> individuals typed at 100 loci. Hence the problem.
>
> You will need to edit mainparams to reflect information intestdata1.
>
> V
>
>
>
>
>
>
>
> On Mon, Mar 5, 2012 at 3:22 PM, jos matejus <
matejus...@googlemail.com> wrote:
> > Hi Vikram,
>
> > Many thanks for your reply. I am using the sample data 'testdata1'
> > file that came with the installation of structure as I am just testing
> > the install.
>
> > %:~/structure/console$ headtestdata1
> > 1 1 0 0 1 3 8 9
> > 1 1 0 1 -1 -1 7 -3
> > 2 1 0 -1 2 2 6 7
> > 2 1 0 0 5 0 9 7
> > 3 1 0 -1 2 0 2 8
> > 3 1 0 0 2 4 10 9
> > 4 1 0 -1 2 -1 8 6
> > 4 1 0 -1 -2 0 9 9
> > 5 1 0 0 1 3 7 8
> > 5 1 0 -1 2 1 5 7
>
> > I thought that structure is setup to automatically run thistestdata1
> > file with the mainparam file by using
> > ./structure
>
> > (installation instructions from the website
> >
http://pritch.bsd.uchicago.edu/structure_software/release_versions/v2...)